Whamcloud - gitweb
LU-14119 lfsck: replace dt_lookup() with dt_lookup_dir() 18/41218/3
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 13 Jan 2021 09:16:55 +0000 (17:16 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 22 Mar 2021 16:25:54 +0000 (16:25 +0000)
commitd525ad4bd0d5d851405e4249859a1c77378f0ee3
tree011ab6e7b12660854efa9583a80e003e8dba7dfd
parent881551fbb7335694b89a877072bcda0aeaf8705c
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
Reviewed-on: https://review.whamcloud.com/41218
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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