ext4: COLLAPSE_RANGE only works on extent-based files
authorTheodore Ts'o <tytso@mit.edu>
Sun, 13 Apr 2014 02:53:53 +0000 (22:53 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 13 Apr 2014 02:53:53 +0000 (22:53 -0400)
commit40c406c74eb9eed58ae7d4d12a0197f7279c9499
tree157b73fd979f8a95d0f15d0ca721113fdd21b66d
parent847c6c422aa0ae81a5517a9558ec2737806dca48
ext4: COLLAPSE_RANGE only works on extent-based files

Unfortunately, we weren't checking to make sure of this the inode was
extent-based before attempt operate on it.  Hilarity ensues.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Namjae Jeon <namjae.jeon@samsung.com>
fs/ext4/extents.c