Btrfs: Rewrite btrfs_drop_extents
authorYan, Zheng <zheng.yan@oracle.com>
Thu, 12 Nov 2009 09:34:08 +0000 (09:34 +0000)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Dec 2009 02:24:52 +0000 (21:24 -0500)
commit920bbbfb05c9fce22e088d20eb9dcb8f96342de9
treeb972b3f39ebefb9c026300c1981d18cad769e431
parentad48fd754676bfae4139be1a897b1ea58f9aaf21
Btrfs: Rewrite btrfs_drop_extents

Rewrite btrfs_drop_extents by using btrfs_duplicate_item, so we can
avoid calling lock_extent within transaction.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/tree-log.c