Home
last modified time | relevance | path

Searched full:path_put (Results 1 – 25 of 57) sorted by relevance

123

/linux/include/linux/
H A Dpath.h14 extern void path_put(const struct path *);
22 * Cleanup macro for use with __free(path_put). Avoids dereference and
23 * copying @path unlike DEFINE_FREE(). path_put() will handle the empty
26 * struct path path __free(path_put) = {};
28 #define __free_path_put path_put
/linux/fs/
H A Dfs_struct.c25 path_put(&old_root); in set_fs_root()
43 path_put(&old_pwd); in set_fs_pwd()
79 path_put(old_root); in chroot_fs_refs()
84 path_put(&fs->root); in free_fs_struct()
85 path_put(&fs->pwd); in free_fs_struct()
H A Dnsfs.c112 struct path path __free(path_put) = {}; in open_namespace()
305 struct path path __free(path_put) = {}; in ns_ioctl()
495 struct path path __free(path_put) = {}; in nsfs_fh_to_dentry()
H A Dfile_table.c76 path_put(backing_file_user_path(f)); in file_free()
386 path_put(&path); in alloc_file_pseudo()
414 path_put(&path); in alloc_file_pseudo_noaccount()
H A Dnamei.c658 * path_put - put a reference to a path
663 void path_put(const struct path *path) in path_put() function
668 EXPORT_SYMBOL(path_put);
792 path_put(&nd->path); in terminate_walk()
794 path_put(&nd->stack[i].link); in terminate_walk()
796 path_put(&nd->root); in terminate_walk()
807 /* path_put is needed afterwards regardless of success or failure */
1097 path_put(&nd->path); in nd_jump_root()
1127 path_put(&nd->path); in nd_jump_link()
1134 path_put(path); in nd_jump_link()
[all …]
H A Dfsopen.c206 path_put(&target); in SYSCALL_DEFINE3()
212 path_put(&target); in SYSCALL_DEFINE3()
H A Dfile_attr.c376 struct path filepath __free(path_put) = {}; in SYSCALL_DEFINE5()
433 struct path filepath __free(path_put) = {}; in SYSCALL_DEFINE5()
H A Dkernel_read_file.c164 path_put(&root); in kernel_read_file_from_path_initns()
/linux/security/keys/
H A Dbig_key.c157 path_put(&payload->path); in big_key_free_preparse()
183 path_put(&payload->path); in big_key_destroy()
/linux/fs/smb/server/
H A Dvfs.c80 path_put(path); in ksmbd_vfs_path_lookup()
87 path_put(path); in ksmbd_vfs_path_lookup()
99 path_put(path); in ksmbd_vfs_path_lookup()
109 path_put(path); in ksmbd_vfs_path_lookup()
118 path_put(path); in ksmbd_vfs_path_lookup()
657 path_put(&oldpath); in ksmbd_vfs_link()
735 path_put(&new_path); in ksmbd_vfs_rename()
1181 path_put(&parent_path); in __ksmbd_vfs_kern_path()
1203 path_put(&parent_path); in __ksmbd_vfs_kern_path()
/linux/fs/cachefiles/
H A Ddaemon.c662 path_put(&path); in cachefiles_daemon_cull()
667 path_put(&path); in cachefiles_daemon_cull()
733 path_put(&path); in cachefiles_daemon_inuse()
738 path_put(&path); in cachefiles_daemon_inuse()
/linux/fs/autofs/
H A Ddev-ioctl.c212 path_put(&path); in find_autofs_mount()
234 struct path path __free(path_put) = {}; in autofs_dev_ioctl_open_mountpoint()
519 path_put(&path); in autofs_dev_ioctl_requester()
623 path_put(&path); in autofs_dev_ioctl_ismountpoint()
/linux/kernel/
H A Daudit_tree.c697 path_put(&path); in audit_trim_trees()
838 path_put(&path); in audit_add_tree_rule()
889 path_put(&path2); in audit_tag_tree()
915 path_put(&path2); in audit_tag_tree()
964 path_put(&path1); in audit_tag_tree()
H A Daudit_fsnotify.c112 path_put(&path); in audit_alloc_mark()
/linux/fs/overlayfs/
H A Dparams.c440 struct path layer_path __free(path_put) = {}; in ovl_parse_layer()
485 path_put(&l->path); in ovl_reset_lowerdirs()
546 struct path path __free(path_put) = {}; in ovl_parse_param_lowerdir()
714 path_put(&ctx->upper); in ovl_fs_context_free()
715 path_put(&ctx->work); in ovl_fs_context_free()
/linux/fs/coda/
H A Dpioctl.c86 path_put(&path); in coda_pioctl()
/linux/security/tomoyo/
H A Dload_policy.c48 path_put(&path); in tomoyo_policy_loader_exists()
H A Dmount.c176 path_put(&obj.path1); in tomoyo_mount_acl()
/linux/security/apparmor/
H A Dmount.c453 path_put(&old_path); in aa_bind_mount()
530 path_put(&old_path); in aa_move_mount_old()
596 path_put(dev_path); in aa_new_mount()
/linux/kernel/trace/
H A Dtrace_uprobe.c374 path_put(&tu->path); in free_trace_uprobe()
548 struct path path __free(path_put) = {}; in DEFINE_FREE()
698 /* Clear @path so that it will not freed by path_put() */ in DEFINE_FREE()
1637 path_put(&path); in create_local_trace_uprobe()
1652 path_put(&path); in create_local_trace_uprobe()
/linux/fs/nfsd/
H A Dexport.c49 path_put(&key->ek_path); in expkey_put()
163 path_put(&key.ek_path); in expkey_parse()
372 path_put(&exp->ex_path); in svc_export_put()
744 path_put(&exp.ex_path); in svc_export_parse()
1062 path_put(&path); in exp_rootfh()
/linux/kernel/bpf/
H A Dinode.c515 path_put(&path); in bpf_obj_do_get()
518 path_put(&path); in bpf_obj_do_get()
588 path_put(&path); in bpf_prog_get_type_path()
/linux/fs/smb/server/mgmt/
H A Dshare_config.c50 path_put(&share->vfs_path); in kill_share()
/linux/fs/configfs/
H A Dsymlink.c120 struct path path __free(path_put) = {}; in get_target()
/linux/net/unix/
H A Daf_unix.c730 path_put(&path); in unix_release_sock()
1211 path_put(&root); in unix_find_bsd()
1221 goto path_put; in unix_find_bsd()
1227 goto path_put; in unix_find_bsd()
1231 goto path_put; in unix_find_bsd()
1239 path_put(&path); in unix_find_bsd()
1245 path_put: in unix_find_bsd()
1246 path_put(&path); in unix_find_bsd()

123