[git pull] vfs.git more namei.c stuff

From: Al Viro
Date: Fri Jul 02 2021 - 23:01:19 EST


Small namei.c patch series, mostly to simplify the rules
for nameidata state. It's in #work.namei and it's actually from
the previous cycle - didn't post it for review in time...

Changes visible outside of fs/namei.c: file_open_root()
calling conventions change, some freed bits in LOOKUP_... space.

The following changes since commit 4f0ed93fb92d3528c73c80317509df3f800a222b:

LOOKUP_MOUNTPOINT: we are cleaning "jumped" flag too late (2021-04-06 20:33:00 -0400)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.namei

for you to fetch changes up to 7962c7d196e36aa597fadb78c1cb4fe7e209f803:

namei: make sure nd->depth is always valid (2021-04-07 13:57:17 -0400)

----------------------------------------------------------------
Al Viro (4):
switch file_open_root() to struct path
take LOOKUP_{ROOT,ROOT_GRABBED,JUMPED} out of LOOKUP_... space
teach set_nameidata() to handle setting the root as well
namei: make sure nd->depth is always valid

Documentation/filesystems/path-lookup.rst | 6 +--
Documentation/filesystems/porting.rst | 9 ++++
arch/um/drivers/mconsole_kern.c | 2 +-
fs/coredump.c | 4 +-
fs/fhandle.c | 2 +-
fs/internal.h | 2 +-
fs/kernel_read_file.c | 2 +-
fs/namei.c | 80 +++++++++++++++++--------------
fs/nfs/nfstrace.h | 4 --
fs/open.c | 4 +-
fs/proc/proc_sysctl.c | 2 +-
include/linux/fs.h | 8 +++-
include/linux/namei.h | 3 --
kernel/usermode_driver.c | 2 +-
14 files changed, 74 insertions(+), 56 deletions(-)