[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1472441276-133832-1-git-send-email-liushuoran@huawei.com>
Date: Mon, 29 Aug 2016 11:27:55 +0800
From: Shuoran Liu <liushuoran@...wei.com>
To: <jaegeuk@...nel.org>, <chao@...nel.org>
CC: <linux-kernel@...r.kernel.org>,
<linux-f2fs-devel@...ts.sourceforge.net>
Subject: [PATCH 1/2] 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@...wei.com>
---
fs/f2fs/inline.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c
index ccea873..f9ce04a7 100644
--- a/fs/f2fs/inline.c
+++ b/fs/f2fs/inline.c
@@ -524,6 +524,8 @@ int f2fs_add_inline_entry(struct inode *dir, const struct qstr *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);
--
1.9.1
Powered by blists - more mailing lists