Whamcloud - gitweb
LU-8999 quota: fix issue of multiple call of seq start 21/31721/4
authorHongchao Zhang <hongchao.zhang@intel.com>
Wed, 21 Mar 2018 15:17:03 +0000 (23:17 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 9 Apr 2018 19:46:14 +0000 (19:46 +0000)
commit07fdba2244e748e1721232abc52617209a544b87
treeffdeee24e293200bce90b1ad2c85c60a769ede7c
parent6488c0ec57de2d188bd15e502917b762e3a9dd1d
LU-8999 quota: fix issue of multiple call of seq start

Multiple call of lprocfs_quota_seq_start could change the block
orders in the lower level of the quota tree, which will cause
quota entries to be skipped.

This patch also fix a problem in walk_tree_dqentry, which some
entries could be skipped for the "index" can be added even if
a valid quota entry has been found.

Change-Id: I44936c70d4060bd83db22aba0e3f665981cfa50a
Signed-off-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-on: https://review.whamcloud.com/31721
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_quota.c
lustre/osd-ldiskfs/osd_quota_fmt.c