From: Shuoran Liu Date: Mon, 29 Aug 2016 03:27:55 +0000 (+0800) Subject: f2fs: set encryption name flag in add inline entry path X-Git-Tag: v4.9-rc1~105^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=167451efb53c7999fb72591c46f29de09cd8f8b0;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index a96c825..8a96107 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);