aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/dir.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-02-23 09:21:37 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2016-03-17 21:19:42 -0700
commit8074bb515014d281a6f5f1218648aa3abd9c22ab (patch)
treee40dc1a7d5d8f7bf26d911169c9b1ddd1c3752d7 /fs/f2fs/dir.c
parentfs crypto: move per-file encryption from f2fs tree to fs/crypto (diff)
downloadlinux-dev-8074bb515014d281a6f5f1218648aa3abd9c22ab.tar.xz
linux-dev-8074bb515014d281a6f5f1218648aa3abd9c22ab.zip
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 f82e28b121a8..479467e442ea 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -855,7 +855,7 @@ static int f2fs_readdir(struct file *file, struct dir_context *ctx)
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);