commit | 86f1ca3889142d5959362c5694db3f3dc26f377a | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Fri Apr 18 11:52:11 2014 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Fri Apr 18 11:52:11 2014 -0400 |
tree | 84992693be4208b0bfbe2cc0f4694850ba9e518d | |
parent | 6c5e73d3a26b73bfcac0b4a932cb918177d067f2 [diff] |
ext4: use EINVAL if not a regular file in ext4_collapse_range() Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 2f49b12a..9b9251a 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c
@@ -5404,7 +5404,7 @@ return -EINVAL; if (!S_ISREG(inode->i_mode)) - return -EOPNOTSUPP; + return -EINVAL; trace_ext4_collapse_range(inode, offset, len);