f2fs: set encryption name flag in add inline entry path
authorShuoran Liu <liushuoran@huawei.com>
Mon, 29 Aug 2016 03:27:55 +0000 (11:27 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 8 Sep 2016 00:27:37 +0000 (17:27 -0700)
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>
fs/f2fs/inline.c

index a96c8252a5c4b6b0eaa89d76e1398d29f0515796..8a961072d6ae7bbc2cb9ddab2e361e7b7e6e19e6 100644 (file)
@@ -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);
This page took 0.026226 seconds and 5 git commands to generate.