From: Sage Weil Date: Thu, 30 Aug 2012 22:26:16 +0000 (-0600) Subject: Btrfs: set journal_info in async trans commit worker X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e209db7ace281ca347b1ac699bf1fb222eac03fe;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 --- diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 730c94590c9f..ffc6b5202d5c 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); }