commit | 9a019196ecaa57780141ef5d1f0bb31050d6ed5b | [log] [tgz] |
---|---|---|
author | Sage Weil <sage@newdream.net> | Fri Oct 29 15:37:33 2010 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Fri Oct 29 15:37:33 2010 -0400 |
tree | abd838acff1d6407d2d91efeb38e76e53271aadb | |
parent | d8e39c457bc1ca2a7304bc086c7b0f0c10854921 [diff] |
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>