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, 28 Apr 2023 00:47:11 +0000 (10:47 +1000)
commitffbcc177e4a3c9cb24c2dc529ccc624c00c14183
tree56e8c57d386c7239f0f0958502fde265706e8db2
parent408a0daa09d423368d4d21faac816d0829053d60
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