commit | ad48fd754676bfae4139be1a897b1ea58f9aaf21 | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zheng.yan@oracle.com> | Thu Nov 12 09:33:58 2009 +0000 |
committer | Chris Mason <chris.mason@oracle.com> | Tue Dec 15 21:24:25 2009 -0500 |
tree | a48a051fa8716ba4be8f148f6d7d8ca47d93ab07 | |
parent | 8cef4e160d74920ad1725f58c89fd75ec4c4ac38 [diff] |
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>