Whamcloud - gitweb
LU-12248 lov: fix ost objects calculation in lod_statfs 16/34816/3
authorLi Dongyang <dongyangli@ddn.com>
Tue, 30 Apr 2019 05:29:19 +0000 (15:29 +1000)
committerOleg Drokin <green@whamcloud.com>
Sat, 8 Jun 2019 02:32:51 +0000 (02:32 +0000)
commit075ef34fe174d6cefa79e35762300e3e85a53c95
treecb627c6f107df8171bde2113e4ce217799acd681
parent805b98c8a9812a2c2bf77b54d30e1bc40aff299e
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().

Lustre-change: https://review.whamcloud.com/34777
Lustre-commit: 7a6ac6f91273d7b14243509266d38cbbe1eeb550

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/34816
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lod_dev.c
lustre/utils/lfs.c