summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShuoran Liu <liushuoran@huawei.com>2016-08-29 11:27:55 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2016-09-07 17:27:37 -0700
commit167451efb53c7999fb72591c46f29de09cd8f8b0 (patch)
treed007c931454770820ff7d8c665fe4ce27b79f6fb
parente06f86e61d7a67fe6e826010f57aa39c674f4b1b (diff)
downloadlinux-167451efb53c7999fb72591c46f29de09cd8f8b0.tar.gz
linux-167451efb53c7999fb72591c46f29de09cd8f8b0.tar.bz2
linux-167451efb53c7999fb72591c46f29de09cd8f8b0.zip
f2fs: set encryption name flag in add inline entry path
This patch sets encryption name flag in the add inline entry path if filename is encrypted. Signed-off-by: Shuoran Liu <liushuoran@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/inline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c
index a96c8252a5c4..8a961072d6ae 100644
--- a/fs/f2fs/inline.c
+++ b/fs/f2fs/inline.c
@@ -525,6 +525,8 @@ int f2fs_add_inline_entry(struct inode *dir, const struct qstr *new_name,
err = PTR_ERR(page);
goto fail;
}
+ if (f2fs_encrypted_inode(dir))
+ file_set_enc_name(inode);
}
f2fs_wait_on_page_writeback(ipage, NODE, true);