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>
Fri, 24 May 2024 11:03:20 +0000 (21:03 +1000)
commitb69f4d92f26dfce3b570ba5504ebb31a11a30e21
treed3c4e5246c27a2fceaa553e465bad5c6a1352158
parent62c989604e93310d9b6e3ce627e666e2a610f954
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