take LOOKUP_{ROOT,ROOT_GRABBED,JUMPED} out of LOOKUP_... space
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 2 Apr 2021 02:03:41 +0000 (22:03 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 7 Apr 2021 17:57:13 +0000 (13:57 -0400)
commitbcba1e7d0d520adba895d9e0800a056f734b0a6a
treee8dadedb7fc63a9a69db24db6b9bc9dec58145a0
parentffb37ca3bd16ce6ea2df2f87fde9a31e94ebb54b
take LOOKUP_{ROOT,ROOT_GRABBED,JUMPED} out of LOOKUP_... space

Separate field in nameidata (nd->state) holding the flags that
should be internal-only - that way we both get some spare bits
in LOOKUP_... and get simpler rules for nd->root lifetime rules,
since we can set the replacement of LOOKUP_ROOT (ND_ROOT_PRESET)
at the same time we set nd->root.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Documentation/filesystems/path-lookup.rst
fs/namei.c
fs/nfs/nfstrace.h
include/linux/namei.h