Home
last modified time | relevance | path

Searched refs:lookup_flags (Results 1 – 18 of 18) sorted by relevance

/linux-6.1.9/fs/
Dopen.c124 unsigned int lookup_flags = LOOKUP_FOLLOW; in do_sys_truncate() local
132 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in do_sys_truncate()
137 if (retry_estale(error, lookup_flags)) { in do_sys_truncate()
138 lookup_flags |= LOOKUP_REVAL; in do_sys_truncate()
425 unsigned int lookup_flags = LOOKUP_FOLLOW; in do_faccessat() local
435 lookup_flags &= ~LOOKUP_FOLLOW; in do_faccessat()
437 lookup_flags |= LOOKUP_EMPTY; in do_faccessat()
446 res = user_path_at(dfd, filename, lookup_flags, &path); in do_faccessat()
481 if (retry_estale(res, lookup_flags)) { in do_faccessat()
482 lookup_flags |= LOOKUP_REVAL; in do_faccessat()
[all …]
Dfsopen.c162 unsigned int lookup_flags; in SYSCALL_DEFINE3() local
174 lookup_flags = LOOKUP_FOLLOW | LOOKUP_AUTOMOUNT; in SYSCALL_DEFINE3()
176 lookup_flags &= ~LOOKUP_FOLLOW; in SYSCALL_DEFINE3()
178 lookup_flags &= ~LOOKUP_AUTOMOUNT; in SYSCALL_DEFINE3()
180 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE3()
181 ret = user_path_at(dfd, path, lookup_flags, &target); in SYSCALL_DEFINE3()
324 int lookup_flags = 0; in SYSCALL_DEFINE5() local
414 lookup_flags = LOOKUP_EMPTY; in SYSCALL_DEFINE5()
418 param.name = getname_flags(_value, lookup_flags, NULL); in SYSCALL_DEFINE5()
Dinit.c32 int lookup_flags = LOOKUP_MOUNTPOINT; in init_umount() local
37 lookup_flags |= LOOKUP_FOLLOW; in init_umount()
38 ret = kern_path(name, lookup_flags, &path); in init_umount()
84 int lookup_flags = (flags & AT_SYMLINK_NOFOLLOW) ? 0 : LOOKUP_FOLLOW; in init_chown() local
88 error = kern_path(filename, lookup_flags, &path); in init_chown()
128 int lookup_flags = (flags & AT_SYMLINK_NOFOLLOW) ? 0 : LOOKUP_FOLLOW; in init_stat() local
132 error = kern_path(filename, lookup_flags, &path); in init_stat()
Dutimes.c83 int lookup_flags = 0, error; in do_utimes_path() local
89 lookup_flags |= LOOKUP_FOLLOW; in do_utimes_path()
91 lookup_flags |= LOOKUP_EMPTY; in do_utimes_path()
94 error = user_path_at(dfd, filename, lookup_flags, &path); in do_utimes_path()
100 if (retry_estale(error, lookup_flags)) { in do_utimes_path()
101 lookup_flags |= LOOKUP_REVAL; in do_utimes_path()
Dstat.c190 int lookup_flags = 0; in getname_statx_lookup_flags() local
193 lookup_flags |= LOOKUP_FOLLOW; in getname_statx_lookup_flags()
195 lookup_flags |= LOOKUP_AUTOMOUNT; in getname_statx_lookup_flags()
197 lookup_flags |= LOOKUP_EMPTY; in getname_statx_lookup_flags()
199 return lookup_flags; in getname_statx_lookup_flags()
221 unsigned int lookup_flags = getname_statx_lookup_flags(flags); in vfs_statx() local
229 error = filename_lookup(dfd, filename, lookup_flags, &path, NULL); in vfs_statx()
251 if (retry_estale(error, lookup_flags)) { in vfs_statx()
252 lookup_flags |= LOOKUP_REVAL; in vfs_statx()
462 unsigned int lookup_flags = LOOKUP_EMPTY; in do_readlinkat() local
[all …]
Dxattr.c625 size_t size, int flags, unsigned int lookup_flags) in path_setxattr() argument
631 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_setxattr()
641 if (retry_estale(error, lookup_flags)) { in path_setxattr()
642 lookup_flags |= LOOKUP_REVAL; in path_setxattr()
743 size_t size, unsigned int lookup_flags) in path_getxattr() argument
748 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_getxattr()
753 if (retry_estale(error, lookup_flags)) { in path_getxattr()
754 lookup_flags |= LOOKUP_REVAL; in path_getxattr()
820 size_t size, unsigned int lookup_flags) in path_listxattr() argument
825 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_listxattr()
[all …]
Dfhandle.c98 int lookup_flags; in SYSCALL_DEFINE5() local
104 lookup_flags = (flag & AT_SYMLINK_FOLLOW) ? LOOKUP_FOLLOW : 0; in SYSCALL_DEFINE5()
106 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE5()
107 err = user_path_at(dfd, name, lookup_flags, &path); in SYSCALL_DEFINE5()
Dnamei.c1340 static int follow_automount(struct path *path, int *count, unsigned lookup_flags) in follow_automount() argument
1355 if (!(lookup_flags & (LOOKUP_PARENT | LOOKUP_DIRECTORY | in follow_automount()
1373 int *count, unsigned lookup_flags) in __traverse_mounts() argument
1408 ret = follow_automount(path, count, lookup_flags); in __traverse_mounts()
1426 int *count, unsigned lookup_flags) in traverse_mounts() argument
1437 return __traverse_mounts(path, flags, jumped, count, lookup_flags); in traverse_mounts()
3737 int flags = op->lookup_flags; in do_filp_open()
3756 int flags = op->lookup_flags; in do_file_open_root()
3777 struct path *path, unsigned int lookup_flags) in filename_create() argument
3781 bool want_dir = lookup_flags & LOOKUP_DIRECTORY; in filename_create()
[all …]
Dstatfs.c101 unsigned int lookup_flags = LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT; in user_statfs() local
103 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in user_statfs()
107 if (retry_estale(error, lookup_flags)) { in user_statfs()
108 lookup_flags |= LOOKUP_REVAL; in user_statfs()
Dnamespace.c82 unsigned int lookup_flags; member
1812 int lookup_flags = LOOKUP_MOUNTPOINT; in ksys_umount() local
1821 lookup_flags |= LOOKUP_FOLLOW; in ksys_umount()
1822 ret = user_path_at(AT_FDCWD, name, lookup_flags, &path); in ksys_umount()
2508 int lookup_flags = LOOKUP_AUTOMOUNT | LOOKUP_FOLLOW; in SYSCALL_DEFINE3() local
2524 lookup_flags &= ~LOOKUP_AUTOMOUNT; in SYSCALL_DEFINE3()
2526 lookup_flags &= ~LOOKUP_FOLLOW; in SYSCALL_DEFINE3()
2528 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE3()
2537 error = user_path_at(dfd, filename, lookup_flags, &path); in SYSCALL_DEFINE3()
4258 unsigned int lookup_flags = LOOKUP_AUTOMOUNT | LOOKUP_FOLLOW; in build_mount_kattr() local
[all …]
Dinternal.h132 int lookup_flags; member
Dexec.c131 .lookup_flags = LOOKUP_FOLLOW, in SYSCALL_DEFINE1()
910 .lookup_flags = LOOKUP_FOLLOW, in do_open_execat()
916 open_exec_flags.lookup_flags &= ~LOOKUP_FOLLOW; in do_open_execat()
918 open_exec_flags.lookup_flags |= LOOKUP_EMPTY; in do_open_execat()
/linux-6.1.9/io_uring/
Dxattr.c126 unsigned int lookup_flags = LOOKUP_FOLLOW; in io_getxattr() local
134 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL); in io_getxattr()
141 if (retry_estale(ret, lookup_flags)) { in io_getxattr()
142 lookup_flags |= LOOKUP_REVAL; in io_getxattr()
238 unsigned int lookup_flags = LOOKUP_FOLLOW; in io_setxattr() local
246 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL); in io_setxattr()
250 if (retry_estale(ret, lookup_flags)) { in io_setxattr()
251 lookup_flags |= LOOKUP_REVAL; in io_setxattr()
Dopenclose.c117 op.lookup_flags |= LOOKUP_CACHED; in io_openat2()
/linux-6.1.9/net/ipv6/netfilter/
Dip6t_rpfilter.c46 int lookup_flags; in rpfilter_lookup_reverse6() local
50 lookup_flags = RT6_LOOKUP_F_HAS_SADDR; in rpfilter_lookup_reverse6()
52 lookup_flags = 0; in rpfilter_lookup_reverse6()
58 lookup_flags |= RT6_LOOKUP_F_IFACE; in rpfilter_lookup_reverse6()
63 rt = (void *)ip6_route_lookup(net, &fl6, skb, lookup_flags); in rpfilter_lookup_reverse6()
Dnft_fib_ipv6.c27 int lookup_flags = 0; in nft_fib6_flowi_init() local
42 lookup_flags |= RT6_LOOKUP_F_IFACE; in nft_fib6_flowi_init()
49 lookup_flags |= RT6_LOOKUP_F_HAS_SADDR; in nft_fib6_flowi_init()
56 return lookup_flags; in nft_fib6_flowi_init()
170 int lookup_flags; in nft_fib6_eval() local
183 lookup_flags = nft_fib6_flowi_init(&fl6, priv, pkt, oif, iph); in nft_fib6_eval()
196 lookup_flags); in nft_fib6_eval()
/linux-6.1.9/fs/notify/fanotify/
Dfanotify_user.c975 unsigned int lookup_flags = 0; in fanotify_find_path() local
978 lookup_flags |= LOOKUP_FOLLOW; in fanotify_find_path()
980 lookup_flags |= LOOKUP_DIRECTORY; in fanotify_find_path()
982 ret = user_path_at(dfd, filename, lookup_flags, path); in fanotify_find_path()
/linux-6.1.9/fs/nfs/
Ddir.c2042 unsigned int lookup_flags = 0; in nfs_atomic_open() local
2068 lookup_flags = LOOKUP_OPEN|LOOKUP_DIRECTORY; in nfs_atomic_open()
2149 res = nfs_lookup(dir, dentry, lookup_flags); in nfs_atomic_open()
2152 if ((lookup_flags & LOOKUP_DIRECTORY) && inode && in nfs_atomic_open()
2159 if ((lookup_flags & LOOKUP_DIRECTORY) && inode && in nfs_atomic_open()