Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332589
b: refs/heads/master
c: e8830e6
h: refs/heads/master
i:
  332587: 717db96
v: v3
  • Loading branch information
Miao Xie authored and Chris Mason committed Oct 9, 2012
1 parent 9711ccb commit 1ae1f1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d24bec3ae528a47149b838aad76c006d40fe8a39
refs/heads/master: e8830e606ffee383f073e32313f11fc5692813fe
4 changes: 3 additions & 1 deletion trunk/fs/btrfs/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,10 @@ static struct btrfs_trans_handle *start_transaction(struct btrfs_root *root,
*/
if (type != TRANS_JOIN_NOLOCK &&
!__sb_start_write(root->fs_info->sb, SB_FREEZE_FS, false)) {
if (type == TRANS_JOIN_FREEZE)
if (type == TRANS_JOIN_FREEZE) {
kmem_cache_free(btrfs_trans_handle_cachep, h);
return ERR_PTR(-EPERM);
}
sb_start_intwrite(root->fs_info->sb);
}

Expand Down

0 comments on commit 1ae1f1b

Please sign in to comment.