diff options
author | Sage Weil <sage@inktank.com> | 2012-08-30 16:26:16 -0600 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-10-01 15:19:08 -0400 |
commit | e209db7ace281ca347b1ac699bf1fb222eac03fe (patch) | |
tree | 4e60ba25a75cc0319a602cfa65239fedda758a10 /fs/btrfs/transaction.c | |
parent | 6fc4e3548598d10a5e947797a09cbc1b257a22ab (diff) |
Btrfs: set journal_info in async trans commit worker
We expect current->journal_info to point to the trans handle we are
committing.
Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 730c94590c9..ffc6b5202d5 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -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); } |