summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2008-05-02 14:43:14 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:02 -0400
commitf2eb0a241f0e5c135d93243b0236cb1f14c305e0 (patch)
treedd3141efb9142a294222b9195593371887519207 /fs/btrfs/file.c
parentd6bfde8765668c8687de72f7a40f52acdf4f2f19 (diff)
downloadlinux-stable-f2eb0a241f0e5c135d93243b0236cb1f14c305e0.tar.gz
linux-stable-f2eb0a241f0e5c135d93243b0236cb1f14c305e0.tar.bz2
linux-stable-f2eb0a241f0e5c135d93243b0236cb1f14c305e0.zip
Btrfs: Clone file data ioctl
Add a new ioctl to clone file data Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 8effdf4f5d6f..a50507f3056d 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -285,7 +285,7 @@ static int noinline dirty_and_release_pages(struct btrfs_trans_handle *trans,
err = btrfs_insert_file_extent(trans, root,
inode->i_ino,
last_pos_in_file,
- 0, 0, hole_size);
+ 0, 0, hole_size, 0);
btrfs_drop_extent_cache(inode, last_pos_in_file,
last_pos_in_file + hole_size -1);
btrfs_check_file(root, inode);