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>
Fri, 11 Nov 2011 01:45:04 +0000 (20:45 -0500)
commit924cd8fbe41851eda2b68bf2ed501b2777fd77b4
treec31afbc9ba7dbc27eea43a0319a64732d180a3d2
parentf7d572188b7b2a6d07081688f8602dc407186e64
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>
fs/btrfs/volumes.c