Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2301566pxu; Mon, 7 Dec 2020 03:03:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzSOqw1z4RTWFlNVquBQmwhjovVC9jPfHEWXSmB66V6P53mrtmsS733BQ+sYA5ScROZEKR X-Received: by 2002:a17:907:1607:: with SMTP id hb7mr2072157ejc.81.1607339034637; Mon, 07 Dec 2020 03:03:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607339034; cv=none; d=google.com; s=arc-20160816; b=srSlyw9uy59Xj2x/OqDbfxitvmuR4WN5vbVr76nho7B+7pWPV8RndVVkKJoecKLp0l lexvqWSRWk9HJVIHx2j0LKWdYT4WPiX8PCm3KiDn1nZcqjjr9I/7lBH1NQogsWkTQZfs fBSIh01sBzyRhMzTvrWlL+koA5huyIuXSXZYVAkyY7+XeyTd6C6miTERCyqrQapgc/pb E0VJjdLpcQ0REfibiftXLoxIHi0V7T2lFj6F1e3jSqaWKtx7LC8vW7fdXeHC6PlQPnhO +PwbT4OzBjJQ0XJFS4b1OaU3JfW5Cf4udOibJbmrFRn8I8SM9c7ZdFniA2vcMFzbSRQi 5uZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=hghRK4yd8P4g5MPg2/zet41UQzFNslY+xZNfQc0jv6k=; b=rSRBidXiqPROivfQ76LUVwgqyF4TGsDNgWY06IVCY/7ajRzE/hi5R4t2T8d76umhcP pZsppkK463xPYyNCLPej41p7CHG5k0Qbx+D7wX4SWm9CZ9ofEeW8zxNrswmkwqgaEz0A gldQ9V0ed03PMczwMpz62J0zjRhr3St40tg1fW4ITVcK6oLOqJr/hLgwAewJlJRrOfC1 cMfH6rI/dTYhhSx9pWfDc5ht3Sk2LZo88DWthi6EH2RL9yvYhPDM6lu1YSOk9VLs8vPZ F0qHmX52LQg9bVTRrWSPyYn3+xglpJHcvAmBEBrybnZPYJzQ0i6K36S7nAQrlu+Rh10V 1ppA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga12si5580546ejb.522.2020.12.07.03.03.32; Mon, 07 Dec 2020 03:03:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726527AbgLGLA0 (ORCPT + 99 others); Mon, 7 Dec 2020 06:00:26 -0500 Received: from smtp2207-205.mail.aliyun.com ([121.197.207.205]:51908 "EHLO smtp2207-205.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbgLGLA0 (ORCPT ); Mon, 7 Dec 2020 06:00:26 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.2116129|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0159781-0.000759197-0.983263;FP=11324991882870974183|1|1|4|0|-1|-1|-1;HT=ay29a033018047202;MF=liush@allwinnertech.com;NM=1;PH=DS;RN=6;RT=6;SR=0;TI=SMTPD_---.J47Legk_1607338777; Received: from localhost.localdomain(mailfrom:liush@allwinnertech.com fp:SMTPD_---.J47Legk_1607338777) by smtp.aliyun-inc.com(10.147.42.253); Mon, 07 Dec 2020 18:59:42 +0800 From: liush To: jaegeuk@kernel.org, chao@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, tiny.windzz@gmail.com, Shaohua Liu Subject: [PATCH 1/2] f2fs: convert to F2FS_*_INO macro Date: Mon, 7 Dec 2020 18:59:33 +0800 Message-Id: <1607338774-8541-1-git-send-email-liush@allwinnertech.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yangtao Li Use F2FS_ROOT_INO, F2FS_NODE_INO and F2FS_META_INO macro for better code readability. Signed-off-by: Yangtao Li Signed-off-by: Shaohua Liu --- fs/f2fs/super.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 00eff2f51807..d3ccf89647df 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -3071,9 +3071,9 @@ static void init_sb_info(struct f2fs_sb_info *sbi) sbi->total_node_count = (le32_to_cpu(raw_super->segment_count_nat) / 2) * sbi->blocks_per_seg * NAT_ENTRY_PER_BLOCK; - sbi->root_ino_num = le32_to_cpu(raw_super->root_ino); - sbi->node_ino_num = le32_to_cpu(raw_super->node_ino); - sbi->meta_ino_num = le32_to_cpu(raw_super->meta_ino); + F2FS_ROOT_INO(sbi) = le32_to_cpu(raw_super->root_ino); + F2FS_NODE_INO(sbi) = le32_to_cpu(raw_super->node_ino); + F2FS_META_INO(sbi) = le32_to_cpu(raw_super->meta_ino); sbi->cur_victim_sec = NULL_SECNO; sbi->next_victim_seg[BG_GC] = NULL_SEGNO; sbi->next_victim_seg[FG_GC] = NULL_SEGNO; -- 2.25.1