dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Sage Weil 2012-08-30 16:26:16 -06:00 committed by Chris Mason
parent 6fc4e35485
commit e209db7ace
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}