Commit 167451ef authored by Shuoran Liu's avatar Shuoran Liu Committed by Jaegeuk Kim

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: default avatarShuoran Liu <liushuoran@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent e06f86e6
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment