diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-21 20:42:18 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-21 20:42:18 +0300 |
commit | c57b1f0a5f40e6d35f22a3ce61e69d73fc0b1dbc (patch) | |
tree | d299d184b99eaab2a6b76948c46fd8a91c47a4ad /include/uapi | |
parent | 591fd30eee47ed75d1296d619dd467414d0894e3 (diff) | |
parent | eacd9aa8cedeb412842c7b339adbaa0477fdd5ad (diff) | |
download | linux-c57b1f0a5f40e6d35f22a3ce61e69d73fc0b1dbc.tar.xz |
Merge branch 'work.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull namei updates from Al Viro:
"Most of that pile is LOOKUP_CACHED series; the rest is a couple of
misc cleanups in the general area...
There's a minor bisect hazard in the end of series, and normally I
would've just folded the fix into the previous commit, but this branch
is shared with Jens' tree, with stuff on top of it in there, so that
would've required rebases outside of vfs.git"
* 'work.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
fix handling of nd->depth on LOOKUP_CACHED failures in try_to_unlazy*
fs: expose LOOKUP_CACHED through openat2() RESOLVE_CACHED
fs: add support for LOOKUP_CACHED
saner calling conventions for unlazy_child()
fs: make unlazy_walk() error handling consistent
fs/namei.c: Remove unlikely of status being -ECHILD in lookup_fast()
do_tmpfile(): don't mess with finish_open()
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/openat2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/openat2.h b/include/uapi/linux/openat2.h index 58b1eb711360..a5feb7604948 100644 --- a/include/uapi/linux/openat2.h +++ b/include/uapi/linux/openat2.h @@ -35,5 +35,9 @@ struct open_how { #define RESOLVE_IN_ROOT 0x10 /* Make all jumps to "/" and ".." be scoped inside the dirfd (similar to chroot(2)). */ +#define RESOLVE_CACHED 0x20 /* Only complete if resolution can be + completed through cached lookup. May + return -EAGAIN if that's not + possible. */ #endif /* _UAPI_LINUX_OPENAT2_H */ |