commit | 0abd5b17249ea5ca49a3a9ad4285cac3dfa8c30b | [log] [tgz] |
---|---|---|
author | Liu Bo <bo.li.liu@oracle.com> | Tue Apr 16 09:20:28 2013 +0000 |
committer | Josef Bacik <jbacik@fusionio.com> | Mon May 06 15:54:55 2013 -0400 |
tree | 26b1399cc7b83ddabd2427d283a5a39a1dd878c5 | |
parent | 3c59ccd32abb8f636b1573533d3e77972e80a9c9 [diff] |
Btrfs: return error when we specify wrong start to defrag We need such a sanity check for wrong start when we defrag a file, otherwise, even with a wrong start that's larger than file size, we can end up changing not only inode's force compress flag but also FS's incompat flags. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: David Sterba <dsterba@suse.cz> Signed-off-by: Josef Bacik <jbacik@fusionio.com>