Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2300847pxu; Mon, 7 Dec 2020 03:02:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwN35cbThQshFkgr8QolqUQY26RyF+av8fHt6JQ0P9Wi8Rc5um7RmhGSoXVlGi/bO7n8+zg X-Received: by 2002:a17:906:2b81:: with SMTP id m1mr18793409ejg.251.1607338978402; Mon, 07 Dec 2020 03:02:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607338978; cv=none; d=google.com; s=arc-20160816; b=htkdgBVLKvKnGocKhmwCTczR2S+fK74/YkYjoyf0A7BeCM7Dn1swokYJiUyDiIyJt3 Ffwf+ejRjNUrCmlTTG0RM9rQT70NWFu3d3HTROftvdOTFiVWhfEm586rp5HkaoS5jAfG y97r6p6gA/h4hYR/G8ofuqBYXgx5RSTaMloFOF1TpdOA+TiLWFOgyKPlphlgscbYyw2E vB6IiUEvpwxtafNbVULl4EPwEjQg/6igIcHXpVY9FUtfwuoPJXxh25+zHV7QmIFfVoPL a33ljwDVFSz6lfZWCqBTuMXHtFFieS4uosAWNf4FivYgmVPNcCzK74TA/XJZMUlBwFCA Gv+g== 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=KIhWR6GAWullCEe47XH0/BrBWh35y0evj8ZkGrU4Ty7B5c9mh9XmTPmfOMRG0z+7KE IsxLlREthwst8Lp82TD/+2GMhgSN+FFf2rUtIAOiQEyLYF7/nyZdwUPi6ryNk9nszpCa XhpNcsNkL9s1xJWnhxeSluH/kGUNiwzoF0b9FkjTOh3aT8PQTLjbLQ4cWYas+ZG1TJf0 4w2RDmx2SfeBlp+gAsSALq2LwDaVEB9KiN8GlUefEQcThK+zW4mvTIgsssC8W6oKrBcg YYDCXXo8rxpucC62YXUqYo1okiweElT02pFmrHQYbkhhjF/BzD61KMwVL5hn6P7HpbbQ 106w== 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 hp17si6605075ejc.31.2020.12.07.03.02.34; Mon, 07 Dec 2020 03:02:58 -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 S1726320AbgLGK64 (ORCPT + 99 others); Mon, 7 Dec 2020 05:58:56 -0500 Received: from smtp2207-205.mail.aliyun.com ([121.197.207.205]:50948 "EHLO smtp2207-205.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbgLGK64 (ORCPT ); Mon, 7 Dec 2020 05:58:56 -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=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047192;MF=liush@allwinnertech.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.J48LPz9_1607338688; Received: from localhost.localdomain(mailfrom:liush@allwinnertech.com fp:SMTPD_---.J48LPz9_1607338688) by smtp.aliyun-inc.com(10.147.41.143); Mon, 07 Dec 2020 18:58:12 +0800 From: liush To: jaegeuk@kernel.org, chao@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, iny.windzz@gmail.com, Yangtao Li , Shaohua Liu Subject: [PATCH 1/2] f2fs: convert to F2FS_*_INO macro Date: Mon, 7 Dec 2020 18:58:06 +0800 Message-Id: <1607338687-8477-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