diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-27 19:10:41 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-06-03 03:05:23 +0200 |
commit | eb4246dc12da4a0369a91c10c2dfe8e2b0955818 (patch) | |
tree | 1d574db25de1e245d0a0a403ee52263439d0570a /fs/f2fs/dir.c | |
parent | f2fs: return the errno to the caller to avoid using a wrong page (diff) | |
download | linux-eb4246dc12da4a0369a91c10c2dfe8e2b0955818.tar.xz linux-eb4246dc12da4a0369a91c10c2dfe8e2b0955818.zip |
f2fs: return error of f2fs_lookup
Now we can report an error to f2fs_lookup given by f2fs_find_entry.
Suggested-by: He YunLei <heyunlei@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/dir.c')
-rw-r--r-- | fs/f2fs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index ae37543f3840..6fbb1ed182f6 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c @@ -230,7 +230,7 @@ struct f2fs_dir_entry *f2fs_find_entry(struct inode *dir, err = fscrypt_setup_filename(dir, child, 1, &fname); if (err) { - *res_page = ERR_PTR(-ENOMEM); + *res_page = ERR_PTR(err); return NULL; } |