]> git.baikalelectronics.ru Git - kernel.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>
Fri, 11 Nov 2011 01:45:04 +0000 (20:45 -0500)
commit84e3a0b67b0a2a6eab862704e755c40803bebd8f
treec31afbc9ba7dbc27eea43a0319a64732d180a3d2
parentc598b9539b47749238dff9e1721932f2b6bca348
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