]> bbs.cooldavid.org Git - net-next-2.6.git/commit
Btrfs: fix delalloc checks in clone ioctl
authorSage Weil <sage@newdream.net>
Fri, 29 Oct 2010 19:37:33 +0000 (15:37 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 29 Oct 2010 19:37:33 +0000 (15:37 -0400)
commit9a019196ecaa57780141ef5d1f0bb31050d6ed5b
treeabd838acff1d6407d2d91efeb38e76e53271aadb
parentd8e39c457bc1ca2a7304bc086c7b0f0c10854921
Btrfs: fix delalloc checks in clone ioctl

The lookup_first_ordered_extent() was done on the wrong inode, and the
->delalloc_bytes test was wrong, as the following
btrfs_wait_ordered_range() would only invoke a range write and wouldn't
write the entire file data range. Also, a bad parameter was passed to
btrfs_wait_ordered_range().

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c