Message ID | 20221111100830.953733-2-shengyong@oppo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp655830wru; Fri, 11 Nov 2022 02:17:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf4IzrxwWiRACp0DulPkodVj6Xf23J6z0+bFdNJWprndm0LG1CORisVjmsRv4GSUgFTy+QTK X-Received: by 2002:a17:906:6581:b0:7ac:2e16:eb05 with SMTP id x1-20020a170906658100b007ac2e16eb05mr1444106ejn.26.1668161868949; Fri, 11 Nov 2022 02:17:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668161868; cv=pass; d=google.com; s=arc-20160816; b=zswsZpzPd/IHVRYy9AdHREvK06cRS+l/DJ5onWeqFfu8JUvOEXzNARR3AQ3vJkO5Ff Ib27MAnpPKskgJuHO+b66bPJ0nEnL7cMRP3Hc1oeEK2WPe+kEAwbYF4ozC8bIqyeomqT 522CiNRSIFcb5xkApTwW6yWuUUuTlKppeJbIpUXerMs6+4qxj5ZgitziVazlQrl2Xs00 n7BE8oBmkS7Yh+2xFRJMIerN+Y3DCEEhg8jZIOMWLr3DTd24Mud7xlBrFIZYEqZ60HR/ 6vPzegiht8S9N2ihFwbyorDFDGfMeYw1AT2VsMDst/Md21R0ewPgn4mIyyj9On/nUCMU 3Wbw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=shef+udH1+23RYxNjD9guO1Ey2dJ6Hr/P05JP2ik1qQ=; b=tqes+qOU7IFI1N/MaIIhyVib/1NXXAw/GUxQtonXC/nRr2VUE6GSZHNdASpTRLXNEn MbOUaTBaMPbOUN92LTsHAAaaz6jVE0wPeruuQuWI8XBcx0ky+7K5Sua8kjiixjGUqNYP ZMzQWdx0b47fe+O3axqMhVQUYz3o4s6E+JU71lk1n9Tj6R7BzFxan6xrlHThWogXpCOX 808skg5dHR3eijQLov0jS+CnExU16amRKsJwzCcOWU8gm4E4cnaw3Ja11m0FCae3cQD1 uHB3VQMYTJ/l4YNffPirMSsdTR1utJMvyRkVwGKB0LxxZBz15IOrdXbj1Z70Tn1v2Lpd wR5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oppo.com header.s=selector1 header.b=c7uk3IW4; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds18-20020a170907725200b007940226fd21si1666658ejc.903.2022.11.11.02.17.24; Fri, 11 Nov 2022 02:17:48 -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=c7uk3IW4; 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 S233423AbiKKKJN (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Fri, 11 Nov 2022 05:09:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233553AbiKKKJI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Nov 2022 05:09:08 -0500 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2077.outbound.protection.outlook.com [40.107.215.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25D267C8C4 for <linux-kernel@vger.kernel.org>; Fri, 11 Nov 2022 02:09:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FpR8QGh3eEc47M8LpxwZdqf5ukmHcz9cHCAUnGdUnlWDaSfSVFqQB77t7Ve0r0hnF76pYBYI/zLTbghGlNlvmWX3lkh+SV6GS6MgbtwZc5NGg5kVbqKsC2mJ6u2+tYUX+i8wqEB2sX+Z7Vq2TX2lPj1SuYnX5MYIzZ884NwwDWIxdBTI9Feb5ANp10XObBGocJzaFUkBXhN06UqEYGi7BGDM/8yYKmUtedJvh7WXi4Sd8+uFP0IiQU6NIzd4nRNIcgO90hXRWHtix0aHbTOASA5lLpAUaWnj7MCNzDM+WK5otCmM9Hj5ARDmB0xGK+WxeVXMdyUxPLg0k/lMq5Gw3w== 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=shef+udH1+23RYxNjD9guO1Ey2dJ6Hr/P05JP2ik1qQ=; b=K9RGKp6ahLSBSXkvYMP0DIw60aq8894Hzo8RqRv1bZ1vKuKqDGp081xMcSuaQNgnG0ngSdsq0yLwxLP8Sp/B9UVhOzZCMFofGvFBNiA3Z08d57tk2W1ptO40FSl0BDWtqNFo25Zh/ynOC3wr7j3lKHlwXioHEaE3dKRCVvUxNFdqR6qXWjh5beoIBzTz2hGOjNb1WsYKm5XSLeymm/rVew4O3sNsfxB+ufFt71JwtiJPV27VGaMiiRcbF6umOebr6ta1B9Qf0ROgj6uQQcxgEZOJYMK54VzHmFKeFzZgKRJjP/z+6jVF7WKS96wIlV6B6IxAPkV6xlu2pWte0d5ugg== 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=shef+udH1+23RYxNjD9guO1Ey2dJ6Hr/P05JP2ik1qQ=; b=c7uk3IW4nqi7RZj4g10AC3cU6bwUTiNWQLt4d+w78Ju0kDX6CoJ90D3m+/UBuigw3LGGBRkhtFEsgwxEVf1Smsuu8oPK3pI0mbT/Dp6ggXy0BL6g18niX0+bG1JEoSvdrnUK4z9iMhZOE7TNRfOKHRZqHwOJKk8PbTi24Uy1urc= 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 SG2PR02MB5901.apcprd02.prod.outlook.com (2603:1096:4:1d2::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.27; Fri, 11 Nov 2022 10:08:58 +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.013; Fri, 11 Nov 2022 10:08:58 +0000 From: Sheng Yong <shengyong@oppo.com> To: jaegeuk@kernel.org, chao@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Sheng Yong <shengyong@oppo.com> Subject: [PATCH v2 2/2] f2fs: move set_file_temperature into f2fs_new_inode Date: Fri, 11 Nov 2022 18:08:30 +0800 Message-Id: <20221111100830.953733-2-shengyong@oppo.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221111100830.953733-1-shengyong@oppo.com> References: <20221111100830.953733-1-shengyong@oppo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: TYAPR01CA0135.jpnprd01.prod.outlook.com (2603:1096:404:2d::27) To SI2PR02MB5148.apcprd02.prod.outlook.com (2603:1096:4:153::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SI2PR02MB5148:EE_|SG2PR02MB5901:EE_ X-MS-Office365-Filtering-Correlation-Id: d5863c15-af71-428b-1134-08dac3ccbfa6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YG6ZgsYbBuHgd7WV3dQXvyb9M56o8pGGPQD0Dn3Be0UouybyrbLqb5jppWrT10w7oeyY0ooqXUfwXiuEThF3r1SJyX2Khd+QF8NurcCjet2MDUZDM69TOC1WljC7zx6YxpTR5OfumzAgc3vMe9+hBilsP2rY0T0BjTH5+8OOqqHZpEWiBHJ7stsmH0T13oRC4JYBS/B2IaVhZUNnvZehnZGb1JA0mdGyjtMlkNuN5xTH0m+6Hana0LSSIWLFJoMJKC0ee5aH2iiIxbnCdrStn8/pS/EzH/Ya5GdYxapclPmhkrrNmXR6vt2Ugw2G+CHURWeWjuCioZaG45dF+M82JjlepIUCbHEjRrysEyXvO8MDKbDHmao0w/ZiIt4YZ9KRCTPoC/X9bnlZBCgavYYQFLW43raFwT+4pvhHtkZtVd9VkydBoK0q+LWqIiCxsuCdtxF+R6gBUqQ0JOjRoZ1UzgnPJ7ET6OLyf71yX30fgo7S7KDXomnI8fMM4T/1NktE1p0ue8ES3H1zE7NwMxzpb3VDfR0mirkPOUIr9z0z9mmG66c4Swt2dr/I35oPbTd2AVpi7Q9JpgW9UorW3SJ0wyRoXRc5cXlGWv+V1rugvEbEyK2nV244ArqjWWhTTT7Xdhqhyx/XiDTEYwZiTjgsssm5DxQ86THt/ux2082I20yp8+MKwh7rp4kwO4zLtxCbyTylCHexe33ovqzPrSsf9uZHy02sdKTqcDFa/PtmpYVSuWp4jF/lyKnJSAU6dQD6koC02HG1oZuNpp5vfK0I6Q== 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)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199015)(36756003)(38350700002)(6512007)(83380400001)(86362001)(478600001)(6486002)(186003)(2906002)(38100700002)(1076003)(52116002)(26005)(6506007)(8936002)(4326008)(107886003)(66946007)(5660300002)(6666004)(316002)(66556008)(41300700001)(2616005)(66476007)(8676002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7zeBI5g3YeQPF4DF/RaXB4y48FMDk5xXozC+XwjzLChbomAYQ1vbdxHhbliDd/KO2/JHeCfilj5JsYtIYDYoJNeUKmV/IOv89m82tx4wdWzzYN9ovkWKS2k9AiYiBJApzVA1xsC5UlgRLzI82bXWL3oAizxRQn7y1z5eCxnsMbX+bfJq50u7XTFAUvI10j1eyWxOw5YkgD+sAzdZk13lTo6umA8AUt5gdCF73e+adqVZb1kUrO2yV3bHCYSOkRfpHFm1wfAEceFKrrcgrZ/ou0IIfTkfgneAHu2SPHM7ZRY3b2zrGwJarl50l5mxVjV2XC3ch81r1cdXqemUe1Jgryc6bdJ7ljwcw+1f9gfSyuoNjYHbjNs1tpE03xpQyICAvm63aGT0S92dIWEtcfUqpEYhnyU1+MO3RC6F5crZ/1t33h+RW4hePKMeA1g9etpUjrCzDDx2icyjw1hV+Hp7MfMr2DewWUH8bEuvgnIpOXqqYqZDd09aHMrfoa0r6PH9y/sFp4Ch2CkHh502GoCsrihN2Ap3wIrf5fi1HKqQlcFUd5s8S1/OMg0ITzlkzUrWgnnwLyg28D4alp2Oqdp+ORlqUsoU0dGd1vjKONFi6zeIFx4TfXC6phYeukrAZEFHqMJzzfkjfmOwFnGKiKUJUFWkkrgUw/xvaSx499mDhjRyRYSE16k3vscRqpSy+Z9llcH7hcv8KiwNwaQwiUQg1XwY09slPDsizbCyQJFC2YleGzkr7FhImY42Yp20YqFc+wHvZPiGzXs9vvUKIn7xgpJ6ZRBzmjbvuxRzfrrHMRjfbwq6IQm+xeJ2Lx542iMDnPLcHZaViQE8fJGnhDmFnmOTbCwYAS5SEgq2s2lahyTpybR6EXKXYzHHrOl7BlkWINKR2nNE6lwqpCDi2pY472Tppko5hT7iS3FogFnIlh9UqbQ77Hjcq3qmtMoZc3U64TsJBLVTXaWVP+mozoSau3yCx6t92smko8JdhOJhKrIL9oI71NxihqppMU6f8WsY6QJzCdIqmTdD0UpZy9j8iWgNGCWX1j9QnmzZD2DccKlLIqaw5jR+WTU8GVbd7iitThxZrxOv8nui872pGjzZj2BAaDRxh3M454N2CkQ3CsycjPMk9gtLmZKm1yWTB/KIA18t1/+L9a3YqxK7Ea1xXllp7hYa85AAFt2GAB4Op3DUGSrCGr220pkctZC7jDQoAj4BwmyDYbQ5p+j6VZsTZdtDaI39TiFOmEPrv9d/wtfD/hdzn9mGOV8c+MVp9Qh60lntXazNehWJ9CzCXhYsH83omj07sYMcYWJhlgdTYrQ94s3Q/7Ppi6LY/tvY6JIcl7am22M206e3Rf7uOYEdepelBS2aRa640TjuqlmaoJxCBOQxNK7YoQnTO2WuX0cQf6A/RF9XOAugMdkBW+dgPLsp1x0bx/medTWMkJU2FBTquHGt/+qIi9C64yqX46LSIC9ADisS6Z50adH7LH1AHFiK7XFhVgkNv4vfMEEiE7ty/16M3KyT0qiKMIjPQK1ydlI2VfXaXkUtBcOqcPkF18qa7DPCqknJanqH0LWt8s77n2u2ZgpZWj5FuY57cDZM X-OriginatorOrg: oppo.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5863c15-af71-428b-1134-08dac3ccbfa6 X-MS-Exchange-CrossTenant-AuthSource: SI2PR02MB5148.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2022 10:08:58.4922 (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: zQHIdZ2XP/W/pBENT11fEA535s5f9F1oy5pAQPyzcAYIeKbPhivUmpDH4nxmXVccTXSp+VDpnusRWC+dvMF/aw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR02MB5901 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749194500206558722?= X-GMAIL-MSGID: =?utf-8?q?1749194500206558722?= |
Series |
[v2,1/2] f2fs: fix to enable compress for newly created file if extension matches
|
|
Commit Message
Sheng Yong
Nov. 11, 2022, 10:08 a.m. UTC
Since the file name has already passed to f2fs_new_inode(), let's
move set_file_temperature() into f2fs_new_inode().
Signed-off-by: Sheng Yong <shengyong@oppo.com>
---
fs/f2fs/namei.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Comments
On 2022/11/11 18:08, Sheng Yong wrote: > Since the file name has already passed to f2fs_new_inode(), let's > move set_file_temperature() into f2fs_new_inode(). > > Signed-off-by: Sheng Yong <shengyong@oppo.com> Reviewed-by: Chao Yu <chao@kernel.org> Thanks,
Since the file name has already passed to f2fs_new_inode(), let's move set_file_temperature() into f2fs_new_inode(). Signed-off-by: Sheng Yong <shengyong@oppo.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> --- fs/f2fs/namei.c | 62 +++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 33 deletions(-) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 43b721d8e491..88e406bb6780 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -173,6 +173,32 @@ static void set_compress_new_inode(struct f2fs_sb_info *sbi, struct inode *dir, } } +/* + * Set file's temperature for hot/cold data separation + */ +static void set_file_temperature(struct f2fs_sb_info *sbi, struct inode *inode, + const unsigned char *name) +{ + __u8 (*extlist)[F2FS_EXTENSION_LEN] = sbi->raw_super->extension_list; + int i, cold_count, hot_count; + + f2fs_down_read(&sbi->sb_lock); + cold_count = le32_to_cpu(sbi->raw_super->extension_count); + hot_count = sbi->raw_super->hot_ext_count; + for (i = 0; i < cold_count + hot_count; i++) + if (is_extension_exist(name, extlist[i], true)) + break; + f2fs_up_read(&sbi->sb_lock); + + if (i == cold_count + hot_count) + return; + + if (i < cold_count) + file_set_cold(inode); + else + file_set_hot(inode); +} + static struct inode *f2fs_new_inode(struct user_namespace *mnt_userns, struct inode *dir, umode_t mode, const char *name) @@ -273,6 +299,9 @@ static struct inode *f2fs_new_inode(struct user_namespace *mnt_userns, if (test_opt(sbi, INLINE_DATA) && f2fs_may_inline_data(inode)) set_inode_flag(inode, FI_INLINE_DATA); + if (name && !test_opt(sbi, DISABLE_EXT_IDENTIFY)) + set_file_temperature(sbi, inode, name); + stat_inc_inline_xattr(inode); stat_inc_inline_inode(inode); stat_inc_inline_dir(inode); @@ -301,36 +330,6 @@ static struct inode *f2fs_new_inode(struct user_namespace *mnt_userns, return ERR_PTR(err); } -/* - * Set file's temperature for hot/cold data separation - */ -static inline void set_file_temperature(struct f2fs_sb_info *sbi, struct inode *inode, - const unsigned char *name) -{ - __u8 (*extlist)[F2FS_EXTENSION_LEN] = sbi->raw_super->extension_list; - int i, cold_count, hot_count; - - f2fs_down_read(&sbi->sb_lock); - - cold_count = le32_to_cpu(sbi->raw_super->extension_count); - hot_count = sbi->raw_super->hot_ext_count; - - for (i = 0; i < cold_count + hot_count; i++) { - if (is_extension_exist(name, extlist[i], true)) - break; - } - - f2fs_up_read(&sbi->sb_lock); - - if (i == cold_count + hot_count) - return; - - if (i < cold_count) - file_set_cold(inode); - else - file_set_hot(inode); -} - static int f2fs_create(struct user_namespace *mnt_userns, struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) { @@ -352,9 +351,6 @@ static int f2fs_create(struct user_namespace *mnt_userns, struct inode *dir, if (IS_ERR(inode)) return PTR_ERR(inode); - if (!test_opt(sbi, DISABLE_EXT_IDENTIFY)) - set_file_temperature(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;
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 36e251f438568..04bc7ec5e29e9 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -131,6 +131,9 @@ static struct inode *f2fs_new_inode(struct user_namespace *mnt_userns, if (test_opt(sbi, INLINE_DATA) && f2fs_may_inline_data(inode)) set_inode_flag(inode, FI_INLINE_DATA); + if (name && !test_opt(sbi, DISABLE_EXT_IDENTIFY)) + set_file_temperature(sbi, inode, name); + stat_inc_inline_xattr(inode); stat_inc_inline_inode(inode); stat_inc_inline_dir(inode); @@ -357,9 +360,6 @@ static int f2fs_create(struct user_namespace *mnt_userns, struct inode *dir, if (IS_ERR(inode)) return PTR_ERR(inode); - if (!test_opt(sbi, DISABLE_EXT_IDENTIFY)) - set_file_temperature(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;