Whamcloud - gitweb
LU-14119 lfsck: replace dt_lookup() with dt_lookup_dir() 65/43265/2
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 13 Jan 2021 09:16:55 +0000 (17:16 +0800)
committerOleg Drokin <green@whamcloud.com>
Sun, 16 May 2021 22:07:29 +0000 (22:07 +0000)
commit5d4356ebec16e8a08b566334d94e6422e4193e51
tree9ede37bdcd0c456509cf16ac2a229604605e0474
parent53db3716685b67406580048c74e21c5c33db262b
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.

Lustre-change: https://review.whamcloud.com/41218
Lustre-commit: d525ad4bd0d5d851405e4249859a1c77378f0ee3

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I40bd8d51edece50353af1729cf867572a0abea78
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/43265
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
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