Whamcloud - gitweb
LU-14119 lfsck: replace dt_lookup() with dt_lookup_dir() 18/41218/2
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 13 Jan 2021 09:16:55 +0000 (17:16 +0800)
committerLai Siyao <lai.siyao@whamcloud.com>
Wed, 20 Jan 2021 01:55:27 +0000 (09:55 +0800)
commit7e87b5a6783883fb77e14bc4423af9c631c07ab5
tree2428f9347a4578986246bcfd0fd7cbedb0a76330
parent18d61a910bcc76312815f52b2d8f68717ab9b414
LU-14119 lfsck: replace dt_lookup() with dt_lookup_dir()

Lfsck code calls dt_lookup() to lookup sub file under directory in
many places, but this function needs to to initialize directory with
dt_try_as_dir() first, while it's missing in several places, since
the overhead is trivial, call dt_lookup_dir() instead.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I40bd8d51edece50353af1729cf867572a0abea78
lustre/lfsck/lfsck_engine.c
lustre/lfsck/lfsck_layout.c
lustre/lfsck/lfsck_lib.c
lustre/lfsck/lfsck_namespace.c
lustre/lfsck/lfsck_striped_dir.c