Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ext2: Adjust indentation in ext2_fill_super

Clang warns:

../fs/ext2/super.c:1076:3: warning: misleading indentation; statement is
not part of the previous 'if' [-Wmisleading-indentation]
sbi->s_groups_count = ((le32_to_cpu(es->s_blocks_count) -
^
../fs/ext2/super.c:1074:2: note: previous statement is here
if (EXT2_BLOCKS_PER_GROUP(sb) == 0)
^
1 warning generated.

This warning occurs because there is a space before the tab on this
line. Remove it so that the indentation is consistent with the Linux
kernel coding style and clang no longer warns.

Fixes: 41f04d852e35 ("[PATCH] ext2: fix mounts at 16T")
Link: https://github.com/ClangBuiltLinux/linux/issues/827
Link: https://lore.kernel.org/r/20191218031930.31393-1-natechancellor@gmail.com
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>

authored by

Nathan Chancellor and committed by
Jan Kara
d9e98668 1ead083a

+3 -3
+3 -3
fs/ext2/super.c
··· 1073 1073 1074 1074 if (EXT2_BLOCKS_PER_GROUP(sb) == 0) 1075 1075 goto cantfind_ext2; 1076 - sbi->s_groups_count = ((le32_to_cpu(es->s_blocks_count) - 1077 - le32_to_cpu(es->s_first_data_block) - 1) 1078 - / EXT2_BLOCKS_PER_GROUP(sb)) + 1; 1076 + sbi->s_groups_count = ((le32_to_cpu(es->s_blocks_count) - 1077 + le32_to_cpu(es->s_first_data_block) - 1) 1078 + / EXT2_BLOCKS_PER_GROUP(sb)) + 1; 1079 1079 db_count = (sbi->s_groups_count + EXT2_DESC_PER_BLOCK(sb) - 1) / 1080 1080 EXT2_DESC_PER_BLOCK(sb); 1081 1081 sbi->s_group_desc = kmalloc_array (db_count,