OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fc4e35
)
Btrfs: set journal_info in async trans commit worker
author
Sage Weil
<sage@inktank.com>
Thu, 30 Aug 2012 22:26:16 +0000
(16:26 -0600)
committer
Chris Mason
<chris.mason@fusionio.com>
Mon, 1 Oct 2012 19:19:08 +0000
(15:19 -0400)
We expect current->journal_info to point to the trans handle we are
committing.
Signed-off-by: Sage Weil <sage@inktank.com>
fs/btrfs/transaction.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/transaction.c
b/fs/btrfs/transaction.c
index
730c945
..
ffc6b52
100644
(file)
--- 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);
}