Whamcloud - gitweb
LU-12248 lov: fix ost objects calculation in lod_statfs 77/34777/4
authorLi Dongyang <dongyangli@ddn.com>
Tue, 30 Apr 2019 05:29:19 +0000 (15:29 +1000)
committerOleg Drokin <green@whamcloud.com>
Fri, 10 May 2019 07:12:43 +0000 (07:12 +0000)
commit7a6ac6f91273d7b14243509266d38cbbe1eeb550
tree4f5df4a493fe401ccaa61779e6a3fa7629979241
parentb664182e0361731fa409ac6a0a0f19637a7e5288
LU-12248 lov: fix ost objects calculation in lod_statfs

Wen OSTs report fewer free objects than MDTs, the statfs
objects results are presented with the numbers reported
by OSTs. Fix the calculation of OST objetcs to make it
work with statfs aggregation via the MDT.

Make the lfs code consistent with ll_statfs_internal()
and lod_statfs().

Fixes: a829595add ("LU-11721 lod: limit statfs ffree if less ...")

Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Change-Id: I838a1527ed6411a412b63e2855ca7247755a3bcf
Reviewed-on: https://review.whamcloud.com/34777
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
lustre/lod/lod_dev.c
lustre/utils/lfs.c