Whamcloud - gitweb
LU-14432 ext2fs: fix ext2fs_get_avg_group() warning 81/43881/2
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 31 May 2021 21:08:13 +0000 (15:08 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 1 Jun 2021 17:01:19 +0000 (17:01 +0000)
commit8495892a6a059be295210ea8e40006e1fa222429
tree6405d7c6958d20d4493fb93d549e9046e60e44fc
parent5aa781e24b9ce22049c8542daaf47a05027a1179
LU-14432 ext2fs: fix ext2fs_get_avg_group() warning

Move ext2fs_get_avg_group() into e2fsck/pass1.c instead of the
ext2fs.h header, since it is currently only used in that one
function.  It is too large to be a static inline function, and
it is currently causing many compile warnings because it is
not marked with "_INLINE_".

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ie948bc10f44dccf91558099a5217ea1fb5ce7057
Reviewed-on: https://review.whamcloud.com/43881
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
e2fsck/pass1.c
lib/ext2fs/ext2fs.h