From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755997AbcH2D2l (ORCPT ); Sun, 28 Aug 2016 23:28:41 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:59906 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751610AbcH2D2k (ORCPT ); Sun, 28 Aug 2016 23:28:40 -0400 From: Shuoran Liu To: , CC: , Subject: [PATCH 1/2] f2fs: set encryption name flag in add inline entry path Date: Mon, 29 Aug 2016 11:27:55 +0800 Message-ID: <1472441276-133832-1-git-send-email-liushuoran@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.193.239] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020202.57C3ABCC.007F,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 7fb15ca2ae5e8c07804b7daab2cbc60d Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch sets encryption name flag in the add inline entry path if filename is encrypted. Signed-off-by: Shuoran Liu --- 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