aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-03-02 19:28:16 -0500
committerJaegeuk Kim <jaegeuk@kernel.org>2015-04-10 18:08:34 -0400
commit76629165913a6d5542bbe735191b021f31dd3798 (patch)
treec7ecc20f9502d6aee8d59d81890b40b6e1f087f9 /fs/f2fs
parentcff28521bbbfcd97ba56c515d4be5554c0d26014 (diff)
f2fs: report -ENOENT for unreached data indices
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index 35a911722d59..4687eae6c116 100644
--- 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)
501 501
502 /* if inline_data is set, should not report any block indices */ 502 /* if inline_data is set, should not report any block indices */
503 if (f2fs_has_inline_data(dn->inode) && index) { 503 if (f2fs_has_inline_data(dn->inode) && index) {
504 err = -EINVAL; 504 err = -ENOENT;
505 f2fs_put_page(npage[0], 1); 505 f2fs_put_page(npage[0], 1);
506 goto release_out; 506 goto release_out;
507 } 507 }