]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Add btrfs_duplicate_item
authorYan, Zheng <zheng.yan@oracle.com>
Thu, 12 Nov 2009 09:33:58 +0000 (09:33 +0000)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Dec 2009 02:24:25 +0000 (21:24 -0500)
commitbbf9f4d6580d6be134e0ed1dbd089ffaf8e85756
treea48a051fa8716ba4be8f148f6d7d8ca47d93ab07
parent54b54f68b3155b6c43d317029b15fe2bdc6709b2
Btrfs: Add btrfs_duplicate_item

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>
fs/btrfs/ctree.c
fs/btrfs/ctree.h