projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c5e73d
)
ext4: use EINVAL if not a regular file in ext4_collapse_range()
author
Theodore Ts'o
<tytso@mit.edu>
Fri, 18 Apr 2014 15:52:11 +0000
(11:52 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Fri, 18 Apr 2014 15:52:11 +0000
(11:52 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/extents.c
b/fs/ext4/extents.c
index 2f49b12a4c40f66b6ec2700a5655d16bc30fc5cf..9b9251adb400771d3827059ffbad06d764cb37fc 100644
(file)
--- a/
fs/ext4/extents.c
+++ b/
fs/ext4/extents.c
@@
-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 -E
OPNOTSUPP
;
+ return -E
INVAL
;
trace_ext4_collapse_range(inode, offset, len);