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:
4577b01
)
Btrfs: reset intwrite on transaction abort
author
Josef Bacik
<jbacik@fusionio.com>
Sat, 21 Sep 2013 02:26:29 +0000
(22:26 -0400)
committer
Chris Mason
<chris.mason@fusionio.com>
Tue, 12 Nov 2013 02:53:29 +0000
(21:53 -0500)
If we abort a transaction in the middle of a commit we weren't undoing the
intwrite locking. This patch fixes that problem.
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/transaction.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/transaction.c
b/fs/btrfs/transaction.c
index
8c81bdc
..
7138d6a
100644
(file)
--- a/
fs/btrfs/transaction.c
+++ b/
fs/btrfs/transaction.c
@@
-1552,6
+1552,8
@@
static void cleanup_transaction(struct btrfs_trans_handle *trans,
root->fs_info->running_transaction = NULL;
spin_unlock(&root->fs_info->trans_lock);
+ if (trans->type & __TRANS_FREEZABLE)
+ sb_end_intwrite(root->fs_info->sb);
put_transaction(cur_trans);
put_transaction(cur_trans);