Whamcloud - gitweb
LU-1452 scrub: OI scrub skips uninitialized groups 37/12737/5
authorFan Yong <fan.yong@intel.com>
Thu, 11 Sep 2014 23:55:43 +0000 (07:55 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 3 Dec 2014 02:29:07 +0000 (02:29 +0000)
commit9ce1fdd9b79bca5cd4dbeb4740fbc889c573d5fc
tree8939a008d89196a545c425cb8d9324d804da4270
parentb5b882f05e2436f1419b5692cc567e92d1cb5b33
LU-1452 scrub: OI scrub skips uninitialized groups

If the ldiskfs group descriptor is marked as LDISKFS_BG_INODE_UNINIT,
then means that the inodes in such group have never been initialized,
so the otable based iterator can skip this group directly to speed up
the scanning.

If the iteration position reaches the unused inodes area in the
group descriptor (indicated by bg_itable_unused), then skip the
rest inodes in this group to reduce the scanning time.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ie8a2eb1269d288865ce51d40e211e3db54d062af
Reviewed-on: http://review.whamcloud.com/12737
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
lustre/osd-ldiskfs/osd_scrub.c
lustre/tests/sanity-scrub.sh