mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
ext[234]: cleanup ext[234]_bg_num_gdb()
Use ext[234]_bg_has_super() to remove duplicate code. Signed-off-by: Akinobu Mita <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
fb01bfdac7
commit
859cb93679
3 changed files with 3 additions and 14 deletions
|
|
@ -1533,9 +1533,6 @@ int ext2_bg_has_super(struct super_block *sb, int group)
|
|||
*/
|
||||
unsigned long ext2_bg_num_gdb(struct super_block *sb, int group)
|
||||
{
|
||||
if (EXT2_HAS_RO_COMPAT_FEATURE(sb,EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER)&&
|
||||
!ext2_group_sparse(group))
|
||||
return 0;
|
||||
return EXT2_SB(sb)->s_gdb_count;
|
||||
return ext2_bg_has_super(sb, group) ? EXT2_SB(sb)->s_gdb_count : 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue