projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e2f84e
)
Btrfs: fix wrong orphan count of the fs/file tree
author
Miao Xie
<miaox@cn.fujitsu.com>
Wed, 29 Aug 2012 04:13:02 +0000
(22:13 -0600)
committer
Chris Mason
<chris.mason@fusionio.com>
Mon, 1 Oct 2012 19:19:05 +0000
(15:19 -0400)
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>
fs/btrfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/inode.c
b/fs/btrfs/inode.c
index 878116d9625d71f36d59c0cbf09fd41a7e8ccc88..a6824bd044938bcb3fd3f6af575ad33d641a8561 100644
(file)
--- a/
fs/btrfs/inode.c
+++ b/
fs/btrfs/inode.c
@@
-2228,7
+2228,7
@@
int btrfs_orphan_add(struct btrfs_trans_handle *trans, struct inode *inode)
insert = 1;
#endif
insert = 1;
- atomic_
de
c(&root->orphan_inodes);
+ atomic_
in
c(&root->orphan_inodes);
}
if (!test_and_set_bit(BTRFS_INODE_ORPHAN_META_RESERVED,