提交 e209db7a 编写于 作者: S Sage Weil 提交者: Chris Mason

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: NSage Weil <sage@inktank.com>
上级 6fc4e354
...@@ -1237,6 +1237,8 @@ static void do_async_commit(struct work_struct *work) ...@@ -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], &ac->root->fs_info->sb->s_writers.lock_map[SB_FREEZE_FS-1],
0, 1, _THIS_IP_); 0, 1, _THIS_IP_);
current->journal_info = ac->newtrans;
btrfs_commit_transaction(ac->newtrans, ac->root); btrfs_commit_transaction(ac->newtrans, ac->root);
kfree(ac); kfree(ac);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册