From: Shuoran Liu <liushuoran@huawei.com>
To: <jaegeuk@kernel.org>, <chao@kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <linux-f2fs-devel@lists.sourceforge.net>
Subject: [PATCH 1/2] f2fs: set encryption name flag in add inline entry path
Date: Mon, 29 Aug 2016 11:27:55 +0800 [thread overview]
Message-ID: <1472441276-133832-1-git-send-email-liushuoran@huawei.com> (raw)
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
next reply other threads:[~2016-08-29 3:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-29 3:27 Shuoran Liu [this message]
2016-08-29 3:27 ` [PATCH 2/2] f2fs: add roll-forward recovery process for encrypted dentry Shuoran Liu
2016-08-29 16:06 ` Chao Yu
2016-08-29 17:05 ` Jaegeuk Kim
2016-08-30 2:18 ` Jaegeuk Kim
2016-08-29 16:03 ` [PATCH 1/2] f2fs: set encryption name flag in add inline entry path Chao Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1472441276-133832-1-git-send-email-liushuoran@huawei.com \
--to=liushuoran@huawei.com \
--cc=chao@kernel.org \
--cc=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®