/linux/include/linux/ |
H A D | dcache.h | 92 struct dentry { struct 95 seqcount_spinlock_t d_seq; /* per dentry seqlock */ argument 97 struct dentry *d_parent; /* parent directory */ argument 105 const struct dentry_operations *d_op; argument 106 struct super_block *d_sb; /* The root of the dentry tree */ argument 110 struct lockref d_lockref; /* per-dentry lock and refcount argument 132 * dentry->d_lock spinlock nesting subclasses: argument 286 static inline unsigned d_count(const struct dentry *dentry) in d_count() 317 static inline struct dentry *dget_dlock(struct dentry *dentry) in dget_dlock() 342 static inline struct dentry *dget(struct dentry *dentry) in dget() [all …]
|
H A D | fsnotify.h | 58 static inline void fsnotify_dirent(struct inode *dir, struct dentry *dentry, in fsnotify_dirent() 76 static inline int fsnotify_parent(struct dentry *dentry, __u32 mask, in fsnotify_parent() 106 static inline void fsnotify_dentry(struct dentry *dentry, __u32 mask) in fsnotify_dentry() 344 static inline void fsnotify_create(struct inode *dir, struct dentry *dentry) in fsnotify_create() 377 struct dentry *dentry) in fsnotify_delete() 395 static inline void d_delete_notify(struct inode *dir, struct dentry *dentry) in d_delete_notify() 410 static inline void fsnotify_unlink(struct inode *dir, struct dentry *dentry) in fsnotify_unlink() 425 static inline void fsnotify_mkdir(struct inode *dir, struct dentry *dentry) in fsnotify_mkdir() 437 static inline void fsnotify_rmdir(struct inode *dir, struct dentry *dentry) in fsnotify_rmdir() 488 static inline void fsnotify_xattr(struct dentry *dentry) in fsnotify_xattr() [all …]
|
/linux/fs/overlayfs/ |
H A D | util.c | 22 int ovl_get_write_access(struct dentry *dentry) in ovl_get_write_access() 29 void ovl_start_write(struct dentry *dentry) in ovl_start_write() 35 int ovl_want_write(struct dentry *dentry) in ovl_want_write() 41 void ovl_put_write_access(struct dentry *dentry) in ovl_put_write_access() 47 void ovl_end_write(struct dentry *dentry) in ovl_end_write() 53 void ovl_drop_write(struct dentry *dentry) in ovl_drop_write() 59 struct dentry *ovl_workdir(struct dentry *dentry) in ovl_workdir() 166 bool ovl_dentry_remote(struct dentry *dentry) in ovl_dentry_remote() 171 void ovl_dentry_update_reval(struct dentry *dentry, struct dentry *realdentry) in ovl_dentry_update_reval() 181 void ovl_dentry_init_reval(struct dentry *dentry, struct dentry *upperdentry, in ovl_dentry_init_reval() [all …]
|
H A D | namei.c | 19 struct dentry *dentry; member 72 static int ovl_acceptable(void *ctx, struct dentry *dentry) in ovl_acceptable() 329 struct dentry *dentry = NULL; in ovl_lookup_layer() local 365 static int ovl_lookup_data_layer(struct dentry *dentry, const char *redirect, in ovl_lookup_data_layer() 398 static int ovl_lookup_data_layers(struct dentry *dentry, const char *redirect, in ovl_lookup_data_layers() 497 static int ovl_verify_fh(struct ovl_fs *ofs, struct dentry *dentry, in ovl_verify_fh() 516 int ovl_verify_set_fh(struct ovl_fs *ofs, struct dentry *dentry, in ovl_verify_set_fh() 537 int ovl_verify_origin_xattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_verify_origin_xattr() 871 int ovl_path_next(int idx, struct dentry *dentry, struct path *path, in ovl_path_next() 895 static int ovl_fix_origin(struct ovl_fs *ofs, struct dentry *dentry, in ovl_fix_origin() [all …]
|
/linux/security/integrity/evm/ |
H A D | evm_main.c | 131 static int evm_find_protected_xattrs(struct dentry *dentry) in evm_find_protected_xattrs() 154 static int is_unsupported_hmac_fs(struct dentry *dentry) in is_unsupported_hmac_fs() 178 static enum integrity_status evm_verify_hmac(struct dentry *dentry, in evm_verify_hmac() 351 int evm_read_protected_xattrs(struct dentry *dentry, u8 *buffer, in evm_read_protected_xattrs() 421 enum integrity_status evm_verifyxattr(struct dentry *dentry, in evm_verifyxattr() 440 static enum integrity_status evm_verify_current_integrity(struct dentry *dentry) in evm_verify_current_integrity() 462 struct dentry *dentry, const char *xattr_name, in evm_xattr_change() 498 struct dentry *dentry, const char *xattr_name, in evm_protect_xattr() 587 static int evm_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_setxattr() 619 static int evm_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_removexattr() [all …]
|
/linux/fs/9p/ |
H A D | vfs_dentry.c | 31 static int v9fs_cached_dentry_delete(const struct dentry *dentry) in v9fs_cached_dentry_delete() 48 static void v9fs_dentry_release(struct dentry *dentry) in v9fs_dentry_release() 64 static int __v9fs_lookup_revalidate(struct dentry *dentry, unsigned int flags) in __v9fs_lookup_revalidate() 103 struct dentry *dentry, unsigned int flags) in v9fs_lookup_revalidate() 108 static bool v9fs_dentry_unalias_trylock(const struct dentry *dentry) in v9fs_dentry_unalias_trylock() 114 static void v9fs_dentry_unalias_unlock(const struct dentry *dentry) in v9fs_dentry_unalias_unlock()
|
H A D | fid.c | 21 static inline void __add_fid(struct dentry *dentry, struct p9_fid *fid) in __add_fid() 33 void v9fs_fid_add(struct dentry *dentry, struct p9_fid **pfid) in v9fs_fid_add() 113 static struct p9_fid *v9fs_fid_find(struct dentry *dentry, kuid_t uid, int any) in v9fs_fid_find() 147 struct dentry *dentry, const unsigned char ***names) in build_path_from_dentry() 169 static struct p9_fid *v9fs_fid_lookup_with_uid(struct dentry *dentry, in v9fs_fid_lookup_with_uid() 287 struct p9_fid *v9fs_fid_lookup(struct dentry *dentry) in v9fs_fid_lookup()
|
H A D | xattr.c | 65 ssize_t v9fs_xattr_get(struct dentry *dentry, const char *name, in v9fs_xattr_get() 94 int v9fs_xattr_set(struct dentry *dentry, const char *name, in v9fs_xattr_set() 140 ssize_t v9fs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) in v9fs_listxattr() 147 struct dentry *dentry, struct inode *inode, in v9fs_xattr_handler_get() 157 struct dentry *dentry, struct inode *inode, in v9fs_xattr_handler_set()
|
/linux/fs/ocfs2/ |
H A D | dcache.c | 26 void ocfs2_dentry_attach_gen(struct dentry *dentry) in ocfs2_dentry_attach_gen() 36 struct dentry *dentry, unsigned int flags) in ocfs2_dentry_revalidate() 108 static int ocfs2_match_dentry(struct dentry *dentry, in ocfs2_match_dentry() 145 struct dentry *dentry; in ocfs2_find_local_alias() local 199 int ocfs2_dentry_attach_lock(struct dentry *dentry, in ocfs2_dentry_attach_lock() 379 static void ocfs2_dentry_iput(struct dentry *dentry, struct inode *inode) in ocfs2_dentry_iput() 429 void ocfs2_dentry_move(struct dentry *dentry, struct dentry *target, in ocfs2_dentry_move()
|
/linux/fs/ |
H A D | libfs.c | 43 int simple_statfs(struct dentry *dentry, struct kstatfs *buf) in simple_statfs() 59 int always_delete_dentry(const struct dentry *dentry) in always_delete_dentry() 74 struct dentry *simple_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) in simple_lookup() 116 struct dentry *dentry = cursor->d_parent, *found = NULL; in scan_positives() local 151 struct dentry *dentry = file->f_path.dentry; in dcache_dir_lseek() local 195 struct dentry *dentry = file->f_path.dentry; in dcache_readdir() local 260 static void offset_set(struct dentry *dentry, long offset) in offset_set() 265 static long dentry2offset(struct dentry *dentry) in dentry2offset() 292 int simple_offset_add(struct offset_ctx *octx, struct dentry *dentry) in simple_offset_add() 310 static int simple_offset_replace(struct offset_ctx *octx, struct dentry *dentry, in simple_offset_replace() [all …]
|
H A D | namei.c | 719 static bool path_connected(struct vfsmount *mnt, struct dentry *dentry) in path_connected() 876 static bool try_to_unlazy_next(struct nameidata *nd, struct dentry *dentry) in try_to_unlazy_next() 926 struct dentry *dentry, unsigned int flags) in d_revalidate() 946 struct dentry *dentry = nd->path.dentry; in complete_walk() local 1434 struct dentry *dentry = path->dentry; in follow_automount() local 1571 struct dentry *dentry = path->dentry; in __follow_mount_rcu() local 1613 static inline int handle_mounts(struct nameidata *nd, struct dentry *dentry, in handle_mounts() 1655 struct dentry *dentry = d_lookup(dir, name); in lookup_dcache() local 1672 struct dentry *dentry; in lookup_one_qstr_excl_raw() local 1709 struct dentry *dentry; in lookup_one_qstr_excl() local [all …]
|
/linux/net/sunrpc/ |
H A D | rpc_pipe.c | 89 struct dentry *dentry; in rpc_timeout_upcall_queue() local 138 struct dentry *dentry; in rpc_queue_upcall() local 487 __rpc_create_common(struct inode * dir,struct dentry * dentry,umode_t mode,const struct file_operations * i_fop,void * private) __rpc_create_common() argument 512 __rpc_create(struct inode * dir,struct dentry * dentry,umode_t mode,const struct file_operations * i_fop,void * private) __rpc_create() argument 526 __rpc_mkdir(struct inode * dir,struct dentry * dentry,umode_t mode,const struct file_operations * i_fop,void * private) __rpc_mkdir() argument 577 __rpc_mkpipe_dentry(struct inode * dir,struct dentry * dentry,umode_t mode,const struct file_operations * i_fop,void * private,struct rpc_pipe * pipe) __rpc_mkpipe_dentry() argument 596 __rpc_rmdir(struct inode * dir,struct dentry * dentry) __rpc_rmdir() argument 609 __rpc_unlink(struct inode * dir,struct dentry * dentry) __rpc_unlink() argument 622 __rpc_rmpipe(struct inode * dir,struct dentry * dentry) __rpc_rmpipe() argument 634 struct dentry *dentry = d_hash_and_lookup(parent, &q); __rpc_lookup_create_exclusive() local 654 struct dentry *dentry; __rpc_depopulate() local 698 struct dentry *dentry; rpc_populate() local 737 rpc_mkdir_populate(struct dentry * parent,const char * name,umode_t mode,void * private,int (* populate)(struct dentry *,void *),void * args_populate) rpc_mkdir_populate() argument 739 struct dentry *dentry; rpc_mkdir_populate() local 765 rpc_rmdir_depopulate(struct dentry * dentry,void (* depopulate)(struct dentry *)) rpc_rmdir_depopulate() argument 766 rpc_rmdir_depopulate(struct dentry * dentry,void (* depopulate)(struct dentry *)) rpc_rmdir_depopulate() argument 805 struct dentry *dentry; rpc_mkpipe_dentry() local 844 rpc_unlink(struct dentry * dentry) rpc_unlink() argument 1026 rpc_clntdir_populate(struct dentry * dentry,void * private) rpc_clntdir_populate() argument 1033 rpc_clntdir_depopulate(struct dentry * dentry) rpc_clntdir_depopulate() argument 1049 rpc_create_client_dir(struct dentry * dentry,const char * name,struct rpc_clnt * rpc_client) rpc_create_client_dir() argument 1070 struct dentry *dentry = rpc_client->cl_pipedir_objects.pdh_dentry; rpc_remove_client_dir() local 1097 rpc_cachedir_populate(struct dentry * dentry,void * private) rpc_cachedir_populate() argument 1104 rpc_cachedir_depopulate(struct dentry * dentry) rpc_cachedir_depopulate() argument 1116 rpc_remove_cache_dir(struct dentry * dentry) rpc_remove_cache_dir() argument [all...] |
/linux/fs/exfat/ |
H A D | namei.c | 15 static inline unsigned long exfat_d_version(struct dentry *dentry) in exfat_d_version() 20 static inline void exfat_d_version_set(struct dentry *dentry, in exfat_d_version_set() 35 struct dentry *dentry, unsigned int flags) in exfat_d_revalidate() 79 static int exfat_d_hash(const struct dentry *dentry, struct qstr *qstr) in exfat_d_hash() 101 static int exfat_d_cmp(const struct dentry *dentry, unsigned int len, in exfat_d_cmp() 136 static int exfat_utf8_d_hash(const struct dentry *dentry, struct qstr *qstr) in exfat_utf8_d_hash() 162 static int exfat_utf8_d_cmp(const struct dentry *dentry, unsigned int len, in exfat_utf8_d_cmp() 207 int i, dentry, ret; in exfat_search_empty_slot() local 307 int dentry; in exfat_find_empty_entry() local 470 int ret, dentry, num_entries; in exfat_add_entry() local [all …]
|
/linux/fs/nfs/ |
H A D | dir.c | 641 int nfs_same_file(struct dentry *dentry, struct nfs_entry *entry) in nfs_same_file() 731 struct dentry *dentry; in nfs_prime_dcache() local 1225 struct dentry *dentry = file_dentry(file); in nfs_readdir() local 1430 static bool nfs_verifier_is_delegated(struct dentry *dentry) in nfs_verifier_is_delegated() 1435 static void nfs_set_verifier_locked(struct dentry *dentry, unsigned long verf) in nfs_set_verifier_locked() 1457 void nfs_set_verifier(struct dentry *dentry, unsigned long verf) in nfs_set_verifier() 1494 static int nfs_dentry_verify_change(struct inode *dir, struct dentry *dentry) in nfs_dentry_verify_change() 1508 static int nfs_check_verifier(struct inode *dir, struct dentry *dentry, in nfs_check_verifier() 1613 int nfs_neg_need_reval(struct inode *dir, struct dentry *dentry, in nfs_neg_need_reval() 1627 nfs_lookup_revalidate_done(struct inode *dir, struct dentry *dentry, in nfs_lookup_revalidate_done() [all …]
|
/linux/security/integrity/ima/ |
H A D | ima_appraise.c | 88 static int ima_fix_xattr(struct dentry *dentry, struct ima_iint_cache *iint) in ima_fix_xattr() 225 int ima_read_xattr(struct dentry *dentry, in ima_read_xattr() 500 struct dentry *dentry = file_dentry(file); in ima_appraise_measurement() local 630 struct dentry *dentry = file_dentry(file); in ima_update_xattr() local 662 struct dentry *dentry, int ia_valid) in ima_inode_post_setattr() 686 static int ima_protect_xattr(struct dentry *dentry, const char *xattr_name, in ima_protect_xattr() 728 static int validate_hash_algo(struct dentry *dentry, in validate_hash_algo() 775 static int ima_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_setxattr() 806 static int ima_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_set_acl() 815 static int ima_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_removexattr() [all …]
|
/linux/fs/nfsd/ |
H A D | nfsfh.c | 28 static int nfsd_acceptable(void *expv, struct dentry *dentry) in nfsd_acceptable() 65 nfsd_mode_check(struct dentry *dentry, umode_t requested) in nfsd_mode_check() 118 static inline __be32 check_pseudo_root(struct dentry *dentry, in check_pseudo_root() 154 struct dentry *dentry; in nfsd_set_fh_dentry() local 323 struct dentry *dentry; in __fh_verify() local 462 struct dentry *dentry) in _fh_update() 571 fh_compose(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry, in fh_compose() 639 struct dentry *dentry; in fh_update() local 747 struct dentry * dentry = fhp->fh_dentry; in fh_put() local
|
/linux/drivers/android/ |
H A D | binderfs.c | 117 struct dentry *dentry, *root; in binderfs_binder_device_create() local 351 static inline bool is_binderfs_control_device(const struct dentry *dentry) in is_binderfs_control_device() 371 static int binderfs_unlink(struct inode *dir, struct dentry *dentry) in binderfs_unlink() 399 struct dentry *dentry; in binderfs_binder_ctl_create() local 488 struct dentry *dentry; in binderfs_create_dentry() local 503 void binderfs_remove_file(struct dentry *dentry) in binderfs_remove_file() 522 struct dentry *dentry; in binderfs_create_file() local 554 struct dentry *dentry; in binderfs_create_dir() local 598 struct dentry *dentry, *dir; in init_binder_features() local 627 struct dentry *binder_logs_root_dir, *dentry, *proc_log_dir; in init_binder_logs() local
|
/linux/fs/crypto/ |
H A D | hooks.c | 33 struct dentry *dentry, *dentry_parent; in fscrypt_file_open() local 73 struct dentry *dentry) in __fscrypt_prepare_link() 117 int __fscrypt_prepare_lookup(struct inode *dir, struct dentry *dentry, in __fscrypt_prepare_lookup() 148 int fscrypt_prepare_lookup_partial(struct inode *dir, struct dentry *dentry) in fscrypt_prepare_lookup_partial() 165 int __fscrypt_prepare_setattr(struct dentry *dentry, struct iattr *attr) in __fscrypt_prepare_setattr() 451 struct dentry *dentry = path->dentry; in fscrypt_symlink_getattr() local
|
/linux/fs/efivarfs/ |
H A D | inode.c | 78 struct dentry *dentry, umode_t mode, bool excl) in efivarfs_create() 122 static int efivarfs_unlink(struct inode *dir, struct dentry *dentry) in efivarfs_unlink() 141 efivarfs_fileattr_get(struct dentry *dentry, struct fileattr *fa) in efivarfs_fileattr_get() 157 struct dentry *dentry, struct fileattr *fa) in efivarfs_fileattr_set() 176 static int efivarfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, in efivarfs_setattr()
|
/linux/fs/afs/ |
H A D | xattr.c | 37 struct dentry *dentry, in afs_xattr_get_acl() 101 struct dentry *dentry, in afs_xattr_set_acl() 139 struct dentry *dentry, in afs_xattr_get_yfs() 232 struct dentry *dentry, in afs_xattr_set_yfs() 269 struct dentry *dentry, in afs_xattr_get_cell() 296 struct dentry *dentry, in afs_xattr_get_fid() 334 struct dentry *dentry, in afs_xattr_get_volume()
|
H A D | dynroot.c | 93 static struct dentry *afs_dynroot_lookup_cell(struct inode *dir, struct dentry *dentry, in afs_dynroot_lookup_cell() 138 static struct dentry *afs_dynroot_lookup(struct inode *dir, struct dentry *dentry, in afs_dynroot_lookup() 166 static void afs_dynroot_d_release(struct dentry *dentry) in afs_dynroot_d_release() 177 static int afs_dynroot_delete_dentry(const struct dentry *dentry) in afs_dynroot_delete_dentry() 204 static const char *afs_atcell_get_link(struct dentry *dentry, struct inode *inode, in afs_atcell_get_link() 248 static struct dentry *afs_lookup_atcell(struct inode *dir, struct dentry *dentry, ino_t ino) in afs_lookup_atcell()
|
/linux/fs/autofs/ |
H A D | expire.c | 11 static inline int autofs_can_expire(struct dentry *dentry, in autofs_can_expire() 30 struct dentry *dentry, unsigned int how) in autofs_mount_busy() 318 static struct dentry *should_expire(struct dentry *dentry, in should_expire() 424 struct dentry *dentry; in autofs_expire_indirect() local 491 struct dentry *dentry = path->dentry; in autofs_expire_wait() local 543 struct dentry *dentry; in autofs_expire_run() local 578 struct dentry *dentry; in autofs_do_expire_multi() local
|
/linux/fs/debugfs/ |
H A D | file.c | 79 static int __debugfs_file_get(struct dentry *dentry, enum dbgfs_get_mode mode) in __debugfs_file_get() 177 int debugfs_file_get(struct dentry *dentry) in debugfs_file_get() 192 void debugfs_file_put(struct dentry *dentry) in debugfs_file_put() 227 struct dentry *dentry = F_DENTRY(file); in debugfs_enter_cancellation() local 263 struct dentry *dentry = F_DENTRY(file); in debugfs_leave_cancellation() local 304 struct dentry *dentry = F_DENTRY(filp); in open_proxy_open() local 410 struct dentry *dentry = F_DENTRY(filp); in full_proxy_poll() local 446 struct dentry *dentry = F_DENTRY(filp); in full_proxy_open_regular() local 505 struct dentry *dentry = F_DENTRY(filp); in full_proxy_open_short() local 528 struct dentry *dentry = F_DENTRY(file); in debugfs_attr_read() local [all …]
|
/linux/fs/cachefiles/ |
H A D | xattr.c | 42 struct dentry *dentry; in cachefiles_set_object_xattr() local 105 struct dentry *dentry = file->f_path.dentry; in cachefiles_check_auxdata() local 162 struct dentry *dentry) in cachefiles_remove_object_xattr() 217 struct dentry *dentry = volume->dentry; in cachefiles_set_volume_xattr() local 263 struct dentry *dentry = volume->dentry; in cachefiles_check_volume_xattr() local
|
/linux/fs/bcachefs/ |
H A D | xattr.c | 258 static inline const char *bch2_xattr_prefix(unsigned type, struct dentry *dentry) in bch2_xattr_prefix() 268 static int bch2_xattr_emit(struct dentry *dentry, in bch2_xattr_emit() 309 ssize_t bch2_xattr_list(struct dentry *dentry, char *buffer, size_t buffer_size) in bch2_xattr_list() 333 struct dentry *dentry, struct inode *vinode, in bch2_xattr_get_handler() 349 struct dentry *dentry, struct inode *vinode, in bch2_xattr_set_handler() 376 static bool bch2_xattr_trusted_list(struct dentry *dentry) in bch2_xattr_trusted_list() 411 struct dentry *dentry, struct inode *vinode, in __bch2_xattr_bcachefs_get() 461 struct dentry *dentry, struct inode *vinode, in bch2_xattr_bcachefs_get() 499 struct dentry *dentry, struct inode *vinode, in bch2_xattr_bcachefs_set() 591 struct dentry *dentry, struct inode *vinode, in bch2_xattr_bcachefs_get_effective() [all …]
|