]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: fix nocow when deleting the item
authorMiao Xie <miaox@cn.fujitsu.com>
Fri, 11 Nov 2011 01:45:04 +0000 (20:45 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:59 +0000 (21:20 -0500)
commitf970fce1327d2c95c44960cc4caf5f1d1c6105dd
tree13472684f8c919e9ec22759582e8a7fe3a5ff3b4
parentc6504d6875f139f4d81d5e293371f98c3a39b5fd
Btrfs: fix nocow when deleting the item

btrfs_previous_item() just search the b+ tree, do not COW the nodes or leaves,
if we modify the result of it, the meta-data will be broken. fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
(cherry picked from commit 924cd8fbe41851eda2b68bf2ed501b2777fd77b4)
fs/btrfs/volumes.c