Skip to content

Commit

Permalink
Btrfs: set journal_info in async trans commit worker
Browse files Browse the repository at this point in the history
We expect current->journal_info to point to the trans handle we are
committing.

Signed-off-by: Sage Weil <sage@inktank.com>
  • Loading branch information
Sage Weil authored and Chris Mason committed Oct 1, 2012
1 parent 6fc4e35 commit e209db7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/btrfs/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,8 @@ static void do_async_commit(struct work_struct *work)
&ac->root->fs_info->sb->s_writers.lock_map[SB_FREEZE_FS-1],
0, 1, _THIS_IP_);

current->journal_info = ac->newtrans;

btrfs_commit_transaction(ac->newtrans, ac->root);
kfree(ac);
}
Expand Down

0 comments on commit e209db7

Please sign in to comment.