Whamcloud - gitweb
LU-14432 ext2fs: fix ext2fs_get_avg_group() warning
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 31 May 2021 21:08:13 +0000 (15:08 -0600)
committerLi Dongyang <dongyangli@ddn.com>
Tue, 14 Jan 2025 04:11:10 +0000 (15:11 +1100)
commit3248af06ceb3c8a903c899c23a81c07392cd0dc1
treeca2190ca638f2929f1912c4b7d7c88d0b0c752e0
parentabc3e0ec08c08468a37d4c05d91bc2cfa4251fbf
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