commit | 321f0e70225abc792d74902a2bc4a60164265fd4 | [log] [tgz] |
---|---|---|
author | Miao Xie <miaox@cn.fujitsu.com> | Tue Aug 28 22:13:02 2012 -0600 |
committer | Chris Mason <chris.mason@fusionio.com> | Mon Oct 01 15:19:05 2012 -0400 |
tree | 07562dc275a2f29f2162ece6afcc1e90515420b9 | |
parent | 4e2f84e63dc138eca91e89ccbc34f37732ce58f7 [diff] [blame] |
Btrfs: fix wrong orphan count of the fs/file tree If we add a new orphan item, we should increase the atomic counter, not decrease it. Fix it. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 878116d..a6824bd 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c
@@ -2228,7 +2228,7 @@ insert = 1; #endif insert = 1; - atomic_dec(&root->orphan_inodes); + atomic_inc(&root->orphan_inodes); } if (!test_and_set_bit(BTRFS_INODE_ORPHAN_META_RESERVED,