aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYangtao Li2020-12-07 04:59:33 -0600
committerJaegeuk Kim2020-12-21 15:33:18 -0600
commitd2aa76bd146565c3f3c66f82d9099ef60cfc2cd5 (patch)
treed91363e65388a2bacde8793b6361bc187098de81
parent160d75f489096f857e4b6302ea452e37556486d9 (diff)
downloadkernel-d2aa76bd146565c3f3c66f82d9099ef60cfc2cd5.tar.gz
kernel-d2aa76bd146565c3f3c66f82d9099ef60cfc2cd5.tar.xz
kernel-d2aa76bd146565c3f3c66f82d9099ef60cfc2cd5.zip
f2fs: convert to F2FS_*_INO macro
Use F2FS_ROOT_INO, F2FS_NODE_INO and F2FS_META_INO macro for better code readability. Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: Shaohua Liu <liush@allwinnertech.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/super.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index c6a3365f4844..b49eec7758d8 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -3102,9 +3102,9 @@ static void init_sb_info(struct f2fs_sb_info *sbi)
3102 sbi->total_node_count = 3102 sbi->total_node_count =
3103 (le32_to_cpu(raw_super->segment_count_nat) / 2) 3103 (le32_to_cpu(raw_super->segment_count_nat) / 2)
3104 * sbi->blocks_per_seg * NAT_ENTRY_PER_BLOCK; 3104 * sbi->blocks_per_seg * NAT_ENTRY_PER_BLOCK;
3105 sbi->root_ino_num = le32_to_cpu(raw_super->root_ino); 3105 F2FS_ROOT_INO(sbi) = le32_to_cpu(raw_super->root_ino);
3106 sbi->node_ino_num = le32_to_cpu(raw_super->node_ino); 3106 F2FS_NODE_INO(sbi) = le32_to_cpu(raw_super->node_ino);
3107 sbi->meta_ino_num = le32_to_cpu(raw_super->meta_ino); 3107 F2FS_META_INO(sbi) = le32_to_cpu(raw_super->meta_ino);
3108 sbi->cur_victim_sec = NULL_SECNO; 3108 sbi->cur_victim_sec = NULL_SECNO;
3109 sbi->next_victim_seg[BG_GC] = NULL_SEGNO; 3109 sbi->next_victim_seg[BG_GC] = NULL_SEGNO;
3110 sbi->next_victim_seg[FG_GC] = NULL_SEGNO; 3110 sbi->next_victim_seg[FG_GC] = NULL_SEGNO;