Commit 86f1ca38 authored by Theodore Ts'o's avatar Theodore Ts'o

ext4: use EINVAL if not a regular file in ext4_collapse_range()

Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 6c5e73d3
......@@ -5404,7 +5404,7 @@ int ext4_collapse_range(struct inode *inode, loff_t offset, loff_t len)
return -EINVAL;
if (!S_ISREG(inode->i_mode))
return -EOPNOTSUPP;
return -EINVAL;
trace_ext4_collapse_range(inode, offset, len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment