Whamcloud - gitweb
LU-9040 scrub: handle group boundary properly 05/25105/4
authorFan Yong <fan.yong@intel.com>
Thu, 6 Oct 2016 09:06:05 +0000 (17:06 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 15 Feb 2017 01:02:45 +0000 (01:02 +0000)
commit1e42682aeadb0f80dd6e9bfd45abe17221b698bf
tree3f59cbc7aa4471e5867887d303d1af60a7d52c84
parenta4bbf4124c5cc29c62d1b74a113bf9b458d34cbe
LU-9040 scrub: handle group boundary properly

If the last bit in current inode bitmap is set, then the
osd_iit_param::offset will be set as the inode count of
per group (LDISKFS_INODES_PER_GROUP). Unfortunately, the
orignal logic for osd_inode_iteration() did not handle such
boundary value properly, as to the iteration will scan current
group again and again.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ie555838cd782a9378c6305485dd737b6bc6b2d46
Reviewed-on: https://review.whamcloud.com/25105
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_scrub.c