Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1471528
| From | Shuoran Liu <liushuoran@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] f2fs: set encryption name flag in add inline entry path |
| Date | 2016-08-29 05:30 +0200 |
| Message-ID | <sblqN-20k-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This patch sets encryption name flag in the add inline entry path if filename is encrypted. Signed-off-by: Shuoran Liu <liushuoran@huawei.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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/2] f2fs: set encryption name flag in add inline entry path Shuoran Liu <liushuoran@huawei.com> - 2016-08-29 05:30 +0200 Re: [PATCH 1/2] f2fs: set encryption name flag in add inline entry path Chao Yu <chao@kernel.org> - 2016-08-29 18:10 +0200
csiph-web