From: Fan Yong Date: Wed, 8 Apr 2015 13:29:13 +0000 (+0800) Subject: LU-6343 lfsck: locate object only when necessary X-Git-Tag: 2.7.53~37 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=5b3eef20c5a0e31d2cd9580f0cbaa0223783905a;hp=5b3eef20c5a0e31d2cd9580f0cbaa0223783905a LU-6343 lfsck: locate object only when necessary Currently, for every item to be verified by the LFSCK assistant thread, the LFSCK assistant thread will try to locate its parent directory (for namespace LFSCK) or its parent MDT-object (for layout LFSCK) firstly via the given parent FID. But under most cases, the system is consistent, such locating parent object is unnecessary. For example, for namespace LFSCK, the LFSCK main engine has put the in the pre-loaded request, then the assistant thread will locate the child object with the child_FID and search its linkEA to find the pairs. Be as some improvement, we will make the LFSCK to locate related object (especially for parent object) only when really used. Signed-off-by: Fan Yong Change-Id: If6a3677a6ad3fa1c694ee06f9688c1f38374f8de Reviewed-on: http://review.whamcloud.com/13993 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Alex Zhuravlev Reviewed-by: Lai Siyao Reviewed-by: Oleg Drokin ---