diff options
author | Filipe David Borba Manana <fdmanana@gmail.com> | 2013-09-22 22:54:55 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-12 03:53:01 +0100 |
commit | 703c88e035242202e3ab48fcbbbe0a7bc62fb7bb (patch) | |
tree | 06ea46ed4a0492754e8b0be82f43b60b2322c1f8 /fs/btrfs/extent-tree.c | |
parent | Btrfs: export btrfs space shared info to userspace (diff) | |
download | linux-703c88e035242202e3ab48fcbbbe0a7bc62fb7bb.tar.xz linux-703c88e035242202e3ab48fcbbbe0a7bc62fb7bb.zip |
Btrfs: fix tracking of orphan inode count
In inode.c:btrfs_orphan_add() if we failed to insert the orphan
item, we would return without decrementing the orphan count that
we just incremented before attempting the insertion, leaving the
orphan inode count wrong.
In inode.c:btrfs_orphan_del(), we were decrementing the inode
orphan count if the bit BTRFS_INODE_ORPHAN_META_RESERVED was set,
which is logically wrong because it should be decremented if the
bit BTRFS_INODE_HAS_ORPHAN_ITEM was set - after all we increment
the count when we set the bit BTRFS_INODE_HAS_ORPHAN_ITEM elsewhere.
Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
0 files changed, 0 insertions, 0 deletions