summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dir-item.c
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2013-04-16 11:20:28 +0200
committerJosef Bacik <jbacik@fusionio.com>2013-05-06 21:54:55 +0200
commit0abd5b17249ea5ca49a3a9ad4285cac3dfa8c30b (patch)
tree26b1399cc7b83ddabd2427d283a5a39a1dd878c5 /fs/btrfs/dir-item.c
parentBtrfs: fix reada debug code compilation (diff)
downloadlinux-0abd5b17249ea5ca49a3a9ad4285cac3dfa8c30b.tar.xz
linux-0abd5b17249ea5ca49a3a9ad4285cac3dfa8c30b.zip
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>
Diffstat (limited to 'fs/btrfs/dir-item.c')
0 files changed, 0 insertions, 0 deletions