projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b38a134
)
xfs: correct error sign on COLLAPSE_RANGE errors
author
Dave Chinner
<
[email protected]
>
Wed, 14 May 2014 23:22:07 +0000
(09:22 +1000)
committer
Dave Chinner
<
[email protected]
>
Wed, 14 May 2014 23:22:07 +0000
(09:22 +1000)
Signed-off-by: Dave Chinner <
[email protected]
>
Reviewed-by: Jie Liu <
[email protected]
>
Signed-off-by: Dave Chinner <
[email protected]
>
fs/xfs/xfs_file.c
patch
|
blob
|
history
diff --git
a/fs/xfs/xfs_file.c
b/fs/xfs/xfs_file.c
index 37f98c6d81aa06b43ef3977f102a528d1183233e..830c1c937b8888e7adba5557997d8d30dfc91713 100644
(file)
--- a/
fs/xfs/xfs_file.c
+++ b/
fs/xfs/xfs_file.c
@@
-837,7
+837,7
@@
xfs_file_fallocate(
unsigned blksize_mask = (1 << inode->i_blkbits) - 1;
if (offset & blksize_mask || len & blksize_mask) {
- error =
-
EINVAL;
+ error = EINVAL;
goto out_unlock;
}
@@
-846,7
+846,7
@@
xfs_file_fallocate(
* in which case it is effectively a truncate operation
*/
if (offset + len >= i_size_read(inode)) {
- error =
-
EINVAL;
+ error = EINVAL;
goto out_unlock;
}