projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cff2852
)
f2fs: report -ENOENT for unreached data indices
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 3 Mar 2015 00:28:16 +0000
(16:28 -0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 10 Apr 2015 22:08:34 +0000
(15:08 -0700)
If inode has inline_data, it should report -ENOENT when accessing out-of-bound
region.
This is used by f2fs_fiemap which treats -ENOENT with no error.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/node.c
b/fs/f2fs/node.c
index 35a911722d59658b3cd2a1d9d811f0dd3266c162..4687eae6c11632802c7154d8a828148af0d82dbf 100644
(file)
--- a/
fs/f2fs/node.c
+++ b/
fs/f2fs/node.c
@@
-501,7
+501,7
@@
int get_dnode_of_data(struct dnode_of_data *dn, pgoff_t index, int mode)
/* if inline_data is set, should not report any block indices */
if (f2fs_has_inline_data(dn->inode) && index) {
- err = -E
INVAL
;
+ err = -E
NOENT
;
f2fs_put_page(npage[0], 1);
goto release_out;
}