]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Btrfs: Add btrfs_duplicate_item
authorYan, Zheng <zheng.yan@oracle.com>
Thu, 12 Nov 2009 09:33:58 +0000 (09:33 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:19:52 +0000 (13:19 -0700)
commit8bf364c4ebe756cd32fc62a642e406b01c39d40c
tree4f4fab37a62e04b957bb81a4d0e9e9a1e491b930
parent4a77a16b9fb8a17affc6963c97470514df2be56e
Btrfs: Add btrfs_duplicate_item

commit ad48fd754676bfae4139be1a897b1ea58f9aaf21 upstream.

btrfs_duplicate_item duplicates item with new key, guaranteeing
the source item and the new items are in the same tree leaf and
contiguous. It allows us to split file extent in place, without
using lock_extent to prevent bookend extent race.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/btrfs/ctree.c
fs/btrfs/ctree.h