Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4950263rwb; Sun, 13 Nov 2022 17:59:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf4RiD6isYuS0/w+gV6CZsCd5XFEVcfjC3C5hVfM2sTomhC+Z3M5q4R8PcUJLY5L/iHD013l X-Received: by 2002:a17:907:c08e:b0:7ae:e2fb:c028 with SMTP id st14-20020a170907c08e00b007aee2fbc028mr4927458ejc.539.1668391152439; Sun, 13 Nov 2022 17:59:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668391152; cv=pass; d=google.com; s=arc-20160816; b=tpNIiFdRx5KGsjL4pNYOQM5tk4A38j2Gsnfr5KtzPH+HZE0+8pPnB/0Ybazp/Jpqye G2xXpbdwfPHYCYthVXnlVOt9oDkIVrReMdRc4KmchdQ1Pim85cM3Cy2IXDDDJhjwWn+u 1DrDX5VrmaAZVERDkjEXapu0HN5wtuyQlfR5K8SpQCUhVqIj/tkGVtEXS3w8lwFx5xzy GkC9LE2DA+5OzN2lZdriiy7zbaVRo14At0uzBXt0Xgq4Rl+cM4PuMO77sKoc/3TMcHz7 Ds8nGzKNsupX3UJWK2tyPeJtfNqX1WspRXE9YaJQ3XYwihfJ0b2pQCGqqfjcAD3t58Ex eAAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=CkiXB+KSJpPaRizUuHMOb48ZUVCVB5ifHSu5kTUFGLs=; b=s9kCzIVe4GCHyIbytf3TraHF4I+j4GzaUQ2VNSLV8/p6giGF1WAl/f5zl6bS8mmx2Y b70zyYbK6jHlWVaY7sEJ+0BuWK/fz5mTOaZE6ueLZnNeCgZftXTMyKfT5mlN2um3q3+8 FLJTSzUyiftaLEJh8HwWf23fowqZKF4W0MhP8BfVh3EXVOQeVozZU6ODBneaEqGvG8t6 sYIZKBzMNa3DBWkra/cZA3GZIK0DLZWuUAqVrG5SsMAGVZOjHjSPbPQg1PyydfV+Z6oh tgyd3qb3+AU8mBZUP1weDe/uMQMzJFmBOKB8oDyCRVnOJu5lNIIxZ2xJxwynWEoyuSxK 1opA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oppo.com header.s=selector1 header.b=a544cRAR; arc=pass (i=1 spf=pass spfdomain=oppo.com dkim=pass dkdomain=oppo.com dmarc=pass fromdomain=oppo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oppo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d16-20020a056402401000b00457d6203a0bsi7602697eda.62.2022.11.13.17.58.51; Sun, 13 Nov 2022 17:59:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oppo.com header.s=selector1 header.b=a544cRAR; arc=pass (i=1 spf=pass spfdomain=oppo.com dkim=pass dkdomain=oppo.com dmarc=pass fromdomain=oppo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oppo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235679AbiKNBnM (ORCPT + 89 others); Sun, 13 Nov 2022 20:43:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230525AbiKNBnL (ORCPT ); Sun, 13 Nov 2022 20:43:11 -0500 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2078.outbound.protection.outlook.com [40.107.117.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 295EFDF40 for ; Sun, 13 Nov 2022 17:43:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fnU76cbyFoXjhVXGjxM/c/g7ueTaFTczc5fRuhMAfJtHphs1jiUBfe7+NxiDB0LmVmVGUXiECG/tIfs+NM/ltV248nPW9lGUH33xtLWBz9uhksSL7AFpjg7hzkZSIZ5uGifFkqAiQq5ZCTyXUYnPwACxjKKh7NCJu7UP/V2ZwKYiLGDplqfyE2PX4Zdqvjb3Di0jcQe1B5S7mjF4Emgv/d7aly78rt30H3SCnN5o3WiYHQcDv4FsGYTEC5pjxgTn+eDShkZfKNFMp4jP2HPpQUDRJANzjvwriOd7whZ6BqUz2xbzPzPSEesz8ynLbZ3B20i6NF48is33mTayecz44A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CkiXB+KSJpPaRizUuHMOb48ZUVCVB5ifHSu5kTUFGLs=; b=TnxAfLZVvYngUB8AdiiFvcPCRqcOExfuGcP80WghO2f2uvvHb8crhxUb7s/n2eEQeI8AurYBPA8ifpSEBPLoOdWz5Ptrr/sCLHwgXWINPVdFfX459A2JVAfAGjMdYwjEEKXa9148e2PnoK8C4uYC/WUbZwRCiJ5RBz/q6wd9AE9myEYYxGPzEXbQGnJr3ZVaZ3XD7qYtaMVtvBu2atAAGqxpu841Pu6QPbGuxsi8sJigzjS68bGW9RyPHFMC1tauldk5k7IHqcqadLVCcoy74it1lznCtXk2awEo/k02D109+J9WdZcc8Aa/TVAGW3ucF+ntif+sJdkEECO//LrpyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oppo.com; dmarc=pass action=none header.from=oppo.com; dkim=pass header.d=oppo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oppo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CkiXB+KSJpPaRizUuHMOb48ZUVCVB5ifHSu5kTUFGLs=; b=a544cRARu2+/VaZGCnp2pyczCerd8E/w4CEywKOYmH7U9SIKBcI6timGTcaXoXn/etyOGO0DosBN+qOXC8S34PDRs+IQIsMkcuYO3RPWWubVZw71+/pdNsJyrKVfYYiTJHHKM/MTpCpUlVtgD3ydsDd00z33Jf3Ynk4e9vsH8Yo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oppo.com; Received: from SI2PR02MB5148.apcprd02.prod.outlook.com (2603:1096:4:153::6) by SEZPR02MB6078.apcprd02.prod.outlook.com (2603:1096:101:95::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.15; Mon, 14 Nov 2022 01:42:55 +0000 Received: from SI2PR02MB5148.apcprd02.prod.outlook.com ([fe80::2954:8e56:dcd1:452c]) by SI2PR02MB5148.apcprd02.prod.outlook.com ([fe80::2954:8e56:dcd1:452c%3]) with mapi id 15.20.5813.017; Mon, 14 Nov 2022 01:42:55 +0000 Message-ID: <0119143d-6841-761f-93c1-159f424ee5e0@oppo.com> Date: Mon, 14 Nov 2022 09:42:52 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v2 1/2] f2fs: fix to enable compress for newly created file if extension matches Content-Language: en-US To: Jaegeuk Kim Cc: chao@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20221111100830.953733-1-shengyong@oppo.com> From: Sheng Yong In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SI2PR02CA0019.apcprd02.prod.outlook.com (2603:1096:4:195::13) To SI2PR02MB5148.apcprd02.prod.outlook.com (2603:1096:4:153::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SI2PR02MB5148:EE_|SEZPR02MB6078:EE_ X-MS-Office365-Filtering-Correlation-Id: 88d24e6d-b537-4e4f-9547-08dac5e18d3b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lQI4tmfQTS2AwMDzTTIeZzlFMxXaBt3hUB8YB97SbAy9Qm0FUZE+n1wxY8TC90OU6FZ9Hnq3nJRkpPd0hbNlXPxGRvWqueGCKTBvP8v3ZVp8jDTy7l8/1F0W7yN3bGXpRxcyiZsaYvV3iGJ87BKgv6AnHmTpQrmoXmeupxW4Lzmy5Hfl0N/2YybYjqiDEHCu+GEKNDkxBde5O+77RpuSwYBeReK1Elzvl/8oS8dy2+J7ihEpdhvCk8KHK4hHOaN/W18dvxmJaHE3XHkTdJr83K1K83w7R0AQHS8gExLFsTXlt790aG1Enrip9QJRVD0duSMp2tZSkbRKe4muR7qkuFZ6xWhpk2ybiLfEeM25Hq5Steyav29Y+E3SdQ3JSmhPEfy7YlgvnS7xTH8KXsoj6Y5nXyIxoR2Q/R4PVtQXEN1M/ypJMNDoMdZs4VjMSBNfLV33s0tjKAApT/SMgJpygBcsps2UNt0uc7evXeFXrl+aRH1JSEiAcjrqVPWlPvK8Afb3LtaIMA7oVLno9//vZv3TPWyxII1e3eAbXtPgY9cYRRU9xHoFFP7V9mw07+ZKc4e1OtlIzTymVUcIe9PAqbIcoYTAymm+jke5VTH6UUKU2yLwiiKFCZr34etBcsmuYk45EmGKnrHkG+RpGzeaf2ynD7HWbCe8InxmIe0yvYjvM0eou91XIBeqrMWrcIQIJWJwXuxqeIa4Q40BS7U0cMAVCcST47/GAZnSvRfBIi/9lFXqv1yTt4Wvg2nz7I8t1qOhqpxPTUnidBfKROtmDXJJtLGwXe5RIx4va93NBoHHr77viCrWaVTmyinp0N4H X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SI2PR02MB5148.apcprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(346002)(39860400002)(366004)(396003)(136003)(451199015)(83380400001)(2906002)(31686004)(36756003)(8936002)(41300700001)(86362001)(31696002)(186003)(2616005)(5660300002)(6486002)(966005)(38100700002)(6506007)(6666004)(66556008)(26005)(66476007)(4326008)(66946007)(8676002)(478600001)(6512007)(6916009)(316002)(53546011)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dDEwMUhWM2REMU1FWkJhOC9iZE0zd2tTT3hrbzgzOWs2Zm5pTFZwYXFXRVoy?= =?utf-8?B?bjVETlN2alRwTkRiSHhzd1NpcSt5UUZjblJRSTAwR25sQ0JlMURQRldZaEFl?= =?utf-8?B?K2VWV3ZDTW0zbDZZUHErdnYxK3N2MDhtMFpCalVPSnJ0bnJuYjFJY0JtNmZw?= =?utf-8?B?Y2xodEJzOE0vbzBrUWwvTkxFWHlGK0Y1VTFxY2hJTFJ6S3czTlJJMm5RL3ph?= =?utf-8?B?UW0rVCttUmpZZkttTFoySVgvUTVaa1ZOWjVtYWRRbHUzMVZDTENmU041WlBR?= =?utf-8?B?dWlDWTMrUXZYbGY1UHljRWRkU0hyRmVteTVKOHU3Skt4WDVlTi8yZWZMZHNl?= =?utf-8?B?MkZqbUVWSjVWSHIyem41cjJVZ2svbW5jeHdDZmd1dFQ2R0JvNWpnL2E0eXNK?= =?utf-8?B?amN3UW85dnQ1eWxta3l1UHdo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148.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2022 01:42:55.5089 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f1905eb1-c353-41c5-9516-62b4a54b5ee6 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: C+aEPCywxofsGF5f6F1W4kogbtKkLs8VOyRwwRN0vdcSW/PjznPPWE8ZaPdX6LFUMJ/f2ODZNyosLFGuTImiLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR02MB6078 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/11/12 9:27, Jaegeuk Kim wrote: > Does thes make sense? > > https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/?h=dev-test&id=608460dfae20b9d23aa222f7448710a086778222 > https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/?h=dev-test&id=962379487b5cb9f3b85ea367b130c2c6ca584edf > Hi, Jaegeuk, Absolutely. Thanks for addressing it. > Second one is needed to address build error. Sorry for missing adding a hunk of that patch :( The above 2 commits are already tested, shall I resend a new patchset? thanks, shengyong > > On 11/11, Sheng Yong wrote: >> If compress_extension is set, and a newly created file matches the >> extension, the file could be marked as compression file. However, >> if inline_data is also enabled, there is no chance to check its >> extension since f2fs_should_compress() always returns false. >> >> This patch moves set_compress_inode(), which do extension check, in >> f2fs_should_compress() to check extensions before setting inline >> data flag. >> >> Fixes: 7165841d578e ("f2fs: fix to check inline_data during compressed inode conversion") >> Signed-off-by: Sheng Yong >> --- >> fs/f2fs/namei.c | 27 +++++++++++++-------------- >> 1 file changed, 13 insertions(+), 14 deletions(-) >> >> --- >> v1->v2: add filename parameter for f2fs_new_inode, and move >> set_compress_inode into f2fs_new_inode >> >> diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c >> index e104409c3a0e5..36e251f438568 100644 >> --- a/fs/f2fs/namei.c >> +++ b/fs/f2fs/namei.c >> @@ -22,8 +22,12 @@ >> #include "acl.h" >> #include >> >> +static void set_compress_inode(struct f2fs_sb_info *sbi, struct inode *inode, >> + const unsigned char *name); >> + >> static struct inode *f2fs_new_inode(struct user_namespace *mnt_userns, >> - struct inode *dir, umode_t mode) >> + struct inode *dir, umode_t mode, >> + const char *name) >> { >> struct f2fs_sb_info *sbi = F2FS_I_SB(dir); >> nid_t ino; >> @@ -119,6 +123,8 @@ static struct inode *f2fs_new_inode(struct user_namespace *mnt_userns, >> if ((F2FS_I(dir)->i_flags & F2FS_COMPR_FL) && >> f2fs_may_compress(inode)) >> set_compress_context(inode); >> + if (name) >> + set_compress_inode(sbi, inode, name); >> } >> >> /* Should enable inline_data after compression set */ >> @@ -293,8 +299,7 @@ static void set_compress_inode(struct f2fs_sb_info *sbi, struct inode *inode, >> unsigned char noext_cnt = F2FS_OPTION(sbi).nocompress_ext_cnt; >> int i, cold_count, hot_count; >> >> - if (!f2fs_sb_has_compression(sbi) || >> - F2FS_I(inode)->i_flags & F2FS_NOCOMP_FL || >> + if (F2FS_I(inode)->i_flags & F2FS_NOCOMP_FL || >> !f2fs_may_compress(inode) || >> (!ext_cnt && !noext_cnt)) >> return; >> @@ -326,10 +331,6 @@ static void set_compress_inode(struct f2fs_sb_info *sbi, struct inode *inode, >> for (i = 0; i < ext_cnt; i++) { >> if (!is_extension_exist(name, ext[i], false)) >> continue; >> - >> - /* Do not use inline_data with compression */ >> - stat_dec_inline_inode(inode); >> - clear_inode_flag(inode, FI_INLINE_DATA); >> set_compress_context(inode); >> return; >> } >> @@ -352,15 +353,13 @@ static int f2fs_create(struct user_namespace *mnt_userns, struct inode *dir, >> if (err) >> return err; >> >> - inode = f2fs_new_inode(mnt_userns, dir, mode); >> + inode = f2fs_new_inode(mnt_userns, dir, mode, dentry->d_name.name); >> if (IS_ERR(inode)) >> return PTR_ERR(inode); >> >> if (!test_opt(sbi, DISABLE_EXT_IDENTIFY)) >> set_file_temperature(sbi, inode, dentry->d_name.name); >> >> - set_compress_inode(sbi, inode, dentry->d_name.name); >> - >> inode->i_op = &f2fs_file_inode_operations; >> inode->i_fop = &f2fs_file_operations; >> inode->i_mapping->a_ops = &f2fs_dblock_aops; >> @@ -689,7 +688,7 @@ static int f2fs_symlink(struct user_namespace *mnt_userns, struct inode *dir, >> if (err) >> return err; >> >> - inode = f2fs_new_inode(mnt_userns, dir, S_IFLNK | S_IRWXUGO); >> + inode = f2fs_new_inode(mnt_userns, dir, S_IFLNK | S_IRWXUGO, NULL); >> if (IS_ERR(inode)) >> return PTR_ERR(inode); >> >> @@ -760,7 +759,7 @@ static int f2fs_mkdir(struct user_namespace *mnt_userns, struct inode *dir, >> if (err) >> return err; >> >> - inode = f2fs_new_inode(mnt_userns, dir, S_IFDIR | mode); >> + inode = f2fs_new_inode(mnt_userns, dir, S_IFDIR | mode, NULL); >> if (IS_ERR(inode)) >> return PTR_ERR(inode); >> >> @@ -817,7 +816,7 @@ static int f2fs_mknod(struct user_namespace *mnt_userns, struct inode *dir, >> if (err) >> return err; >> >> - inode = f2fs_new_inode(mnt_userns, dir, mode); >> + inode = f2fs_new_inode(mnt_userns, dir, mode, NULL); >> if (IS_ERR(inode)) >> return PTR_ERR(inode); >> >> @@ -856,7 +855,7 @@ static int __f2fs_tmpfile(struct user_namespace *mnt_userns, struct inode *dir, >> if (err) >> return err; >> >> - inode = f2fs_new_inode(mnt_userns, dir, mode); >> + inode = f2fs_new_inode(mnt_userns, dir, mode, NULL); >> if (IS_ERR(inode)) >> return PTR_ERR(inode); >> >> -- >> 2.25.1