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)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 28 Mar 2022 22:13:09 +0000 (16:13 -0600)
commitcf6791b28ff2ab0f1e4c54da0c68f0c5c2916992
tree7f15aee20f10b552c23ebb3388f8b4a779b8509b
parent770ed1aef5b2f3660cf966b00a182d896cbf9f7d
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