From: Sage Weil Date: Fri, 29 Oct 2010 19:37:33 +0000 (-0400) Subject: Btrfs: fix delalloc checks in clone ioctl X-Git-Tag: v2.6.37-rc1~19^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a019196ecaa57780141ef5d1f0bb31050d6ed5b;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed