aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/dir.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-02-23 09:21:37 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:33:12 +0200
commit1cc29dbd803898cec3bd2011aa1db4ddb2cf8932 (patch)
tree16c1ea21af68c45af22c9cf5450601fe354d3daf /fs/f2fs/dir.c
parent5fae04a05333a3e0d93273a0d3848117b77cd6ec (diff)
f2fs crypto: sync ext4_lookup and ext4_file_open
This patch tries to catch up with lookup and open policies in ext4. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/dir.c')
-rw-r--r--fs/f2fs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index 9ceda67ab..9b01d6c49 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -862,7 +862,7 @@ static int f2fs_readdir(struct file *file, void *dirent, filldir_t filldir)
if (f2fs_encrypted_inode(inode)) {
err = fscrypt_get_encryption_info(inode);
- if (err)
+ if (err && err != -ENOKEY)
return err;
err = fscrypt_fname_alloc_buffer(inode, F2FS_NAME_LEN, &fstr);