Home
last modified time | relevance | path

Searched refs:dentry (Results 1 – 25 of 1818) sorted by relevance

12345678910>>...73

/linux/include/linux/
H A Ddcache.h82 struct dentry { struct
87 struct dentry *d_parent; /* parent directory */ argument
134 int (*d_revalidate)(struct dentry *, unsigned int);
135 int (*d_weak_revalidate)(struct dentry *, unsigned int);
136 int (*d_hash)(const struct dentry *, struct qstr *);
137 int (*d_compare)(const struct dentry *,
139 int (*d_delete)(const struct dentry *);
140 int (*d_init)(struct dentry *);
141 void (*d_release)(struct dentry *);
142 void (*d_prune)(struct dentry *);
[all …]
H A Ddebugfs.h46 extern struct dentry *arch_debugfs_dir;
69 typedef struct vfsmount *(*debugfs_automount_t)(struct dentry *, void *);
73 struct dentry *debugfs_lookup(const char *name, struct dentry *parent);
75 struct dentry *debugfs_create_file(const char *name, umode_t mode,
76 struct dentry *parent, void *data,
78 struct dentry *debugfs_create_file_unsafe(const char *name, umode_t mode,
79 struct dentry *parent, void *data,
83 struct dentry *parent, void *data,
87 struct dentry *debugfs_create_dir(const char *name, struct dentry *parent);
89 struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent,
[all …]
H A Dnamei.h61 struct dentry *lookup_one_qstr_excl(const struct qstr *name,
62 struct dentry *base,
66 extern struct dentry *kern_path_create(int, const char *, struct path *, unsigned int);
67 extern struct dentry *user_path_create(int, const char __user *, struct path *, unsigned int);
68 extern void done_path_create(struct path *, struct dentry *);
69 extern struct dentry *kern_path_locked(const char *, struct path *);
70 extern struct dentry *user_path_locked_at(int , const char __user *, struct path *);
74 int vfs_path_lookup(struct dentry *, struct vfsmount *, const char *,
77 extern struct dentry *try_lookup_one_len(const char *, struct dentry *, int);
78 extern struct dentry *lookup_one_len(const char *, struct dentry *, int);
[all …]
/linux/fs/
H A Ddcache.c111 static inline struct hlist_bl_head *in_lookup_hash(const struct dentry *parent, in in_lookup_hash()
257 static inline int dentry_cmp(const struct dentry *dentry, const unsigned char *ct, unsigned tcount) in dentry_cmp() argument
275 const unsigned char *cs = READ_ONCE(dentry->d_name.name); in dentry_cmp()
288 static inline struct external_name *external_name(struct dentry *dentry) in external_name() argument
290 return container_of(dentry->d_name.name, struct external_name, name[0]); in external_name()
295 struct dentry *dentry = container_of(head, struct dentry, d_u.d_rcu); in __d_free() local
297 kmem_cache_free(dentry_cache, dentry); in __d_free()
302 struct dentry *dentry = container_of(head, struct dentry, d_u.d_rcu); in __d_free_external() local
303 kfree(external_name(dentry)); in __d_free_external()
304 kmem_cache_free(dentry_cache, dentry); in __d_free_external()
[all …]
H A Dnamei.c544 * Given a path increment the reference count to the dentry and the vfsmount.
549 dget(path->dentry); in path_get()
557 * Given a path decrement the reference count to the dentry and the vfsmount.
561 dput(path->dentry); in path_put()
571 struct inode *inode; /* path.dentry.d_inode */
603 p->path.dentry = NULL; in __set_nameidata()
645 * path_connected - Verify that a dentry is below mnt.mnt_root
647 * @dentry: The dentry to check.
652 static bool path_connected(struct vfsmount *mnt, struct dentry *dentr argument
809 try_to_unlazy_next(struct nameidata * nd,struct dentry * dentry) try_to_unlazy_next() argument
858 d_revalidate(struct dentry * dentry,unsigned int flags) d_revalidate() argument
878 struct dentry *dentry = nd->path.dentry; complete_walk() local
1347 struct dentry *dentry = path->dentry; follow_automount() local
1484 struct dentry *dentry = path->dentry; __follow_mount_rcu() local
1526 handle_mounts(struct nameidata * nd,struct dentry * dentry,struct path * path) handle_mounts() argument
1568 struct dentry *dentry = d_lookup(dir, name); lookup_dcache() local
1592 struct dentry *dentry = lookup_dcache(name, base, flags); lookup_one_qstr_excl() local
1618 struct dentry *dentry, *parent = nd->path.dentry; lookup_fast() local
1669 struct dentry *dentry, *old; __lookup_slow() local
1838 step_into(struct nameidata * nd,int flags,struct dentry * dentry) step_into() argument
1989 struct dentry *dentry; walk_component() local
2420 struct dentry *dentry; path_init() local
2664 vfs_path_lookup(struct dentry * dentry,struct vfsmount * mnt,const char * name,unsigned int flags,struct path * path) vfs_path_lookup() argument
2753 struct dentry *dentry; lookup_one_len() local
2783 struct dentry *dentry; lookup_one() local
3192 vfs_create(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,umode_t mode,bool want_excl) vfs_create() argument
3214 vfs_mkobj(struct dentry * dentry,umode_t mode,int (* f)(struct dentry *,umode_t,void *),void * arg) vfs_mkobj() argument
3215 vfs_mkobj(struct dentry * dentry,umode_t mode,int (* f)(struct dentry *,umode_t,void *),void * arg) vfs_mkobj() argument
3244 struct dentry *dentry = path->dentry; may_open() local
3324 may_o_create(struct mnt_idmap * idmap,const struct path * dir,struct dentry * dentry,umode_t mode) may_o_create() argument
3355 atomic_open(struct nameidata * nd,struct dentry * dentry,struct file * file,int open_flag,umode_t mode) atomic_open() argument
3418 struct dentry *dentry; lookup_open() local
3527 struct dentry *dentry; open_last_lookups() local
3872 struct dentry *dentry = ERR_PTR(-EEXIST); filename_create() local
3948 done_path_create(struct path * path,struct dentry * dentry) done_path_create() argument
3985 vfs_mknod(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,umode_t mode,dev_t dev) vfs_mknod() argument
4037 struct dentry *dentry; do_mknodat() local
4111 vfs_mkdir(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,umode_t mode) vfs_mkdir() argument
4140 struct dentry *dentry; do_mkdirat() local
4192 vfs_rmdir(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry) vfs_rmdir() argument
4235 struct dentry *dentry; do_rmdir() local
4321 vfs_unlink(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,struct inode ** delegated_inode) vfs_unlink() argument
4374 struct dentry *dentry; do_unlinkat() local
4474 vfs_symlink(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,const char * oldname) vfs_symlink() argument
4499 struct dentry *dentry; do_symlinkat() local
5120 vfs_readlink(struct dentry * dentry,char __user * buffer,int buflen) vfs_readlink() argument
5162 vfs_get_link(struct dentry * dentry,struct delayed_call * done) vfs_get_link() argument
5177 page_get_link(struct dentry * dentry,struct inode * inode,struct delayed_call * callback) page_get_link() argument
5212 page_readlink(struct dentry * dentry,char __user * buffer,int buflen) page_readlink() argument
[all...]
H A Dlibfs.c36 struct inode *inode = d_inode(path->dentry); in simple_getattr()
43 int simple_statfs(struct dentry *dentry, struct kstatfs *buf) in simple_statfs() argument
45 u64 id = huge_encode_dev(dentry->d_sb->s_dev); in simple_statfs()
48 buf->f_type = dentry->d_sb->s_magic; in simple_statfs()
59 int always_delete_dentry(const struct dentry *dentry) in always_delete_dentry() argument
74 struct dentry *simple_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) in simple_lookup() argument
76 if (dentry->d_name.len > NAME_MAX) in simple_lookup()
78 if (!dentry->d_sb->s_d_op) in simple_lookup()
79 d_set_d_op(dentry, &simple_dentry_operations); in simple_lookup()
80 d_add(dentry, NULL); in simple_lookup()
[all …]
/linux/fs/overlayfs/
H A Doverlayfs.h200 struct dentry *upperdentry, in ovl_do_notify_change()
207 struct inode *dir, struct dentry *dentry) in ovl_do_rmdir()
209 int err = vfs_rmdir(ovl_upper_mnt_idmap(ofs), dir, dentry); in ovl_do_rmdir()
211 pr_debug("rmdir(%pd2) = %i\n", dentry, err);
216 struct dentry *dentry) in ovl_do_unlink()
218 int err = vfs_unlink(ovl_upper_mnt_idmap(ofs), dir, dentry, NULL); in ovl_do_unlink()
220 pr_debug("unlink(%pd2) = %i\n", dentry, err);
224 static inline int ovl_do_link(struct ovl_fs *ofs, struct dentry *old_dentr in ovl_do_link()
204 ovl_do_rmdir(struct ovl_fs * ofs,struct inode * dir,struct dentry * dentry) ovl_do_rmdir() argument
213 ovl_do_unlink(struct ovl_fs * ofs,struct inode * dir,struct dentry * dentry) ovl_do_unlink() argument
232 ovl_do_create(struct ovl_fs * ofs,struct inode * dir,struct dentry * dentry,umode_t mode) ovl_do_create() argument
242 ovl_do_mkdir(struct ovl_fs * ofs,struct inode * dir,struct dentry * dentry,umode_t mode) ovl_do_mkdir() argument
251 ovl_do_mknod(struct ovl_fs * ofs,struct inode * dir,struct dentry * dentry,umode_t mode,dev_t dev) ovl_do_mknod() argument
261 ovl_do_symlink(struct ovl_fs * ofs,struct inode * dir,struct dentry * dentry,const char * oldname) ovl_do_symlink() argument
307 ovl_do_setxattr(struct ovl_fs * ofs,struct dentry * dentry,const char * name,const void * value,size_t size,int flags) ovl_do_setxattr() argument
319 ovl_setxattr(struct ovl_fs * ofs,struct dentry * dentry,enum ovl_xattr ox,const void * value,size_t size) ovl_setxattr() argument
326 ovl_do_removexattr(struct ovl_fs * ofs,struct dentry * dentry,const char * name) ovl_do_removexattr() argument
334 ovl_removexattr(struct ovl_fs * ofs,struct dentry * dentry,enum ovl_xattr ox) ovl_removexattr() argument
340 ovl_do_set_acl(struct ovl_fs * ofs,struct dentry * dentry,const char * acl_name,struct posix_acl * acl) ovl_do_set_acl() argument
346 ovl_do_remove_acl(struct ovl_fs * ofs,struct dentry * dentry,const char * acl_name) ovl_do_remove_acl() argument
377 ovl_do_whiteout(struct ovl_fs * ofs,struct inode * dir,struct dentry * dentry) ovl_do_whiteout() argument
385 ovl_do_tmpfile(struct ovl_fs * ofs,struct dentry * dentry,umode_t mode) ovl_do_tmpfile() argument
764 ovl_get_acl(struct mnt_idmap * idmap,struct dentry * dentry,int type) ovl_get_acl() argument
[all...]
H A Dutil.c21 int ovl_get_write_access(struct dentry *dentry) in ovl_get_write_access() argument
23 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_get_write_access()
28 void ovl_start_write(struct dentry *dentry) in ovl_start_write() argument
30 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_start_write()
34 int ovl_want_write(struct dentry *dentry) in ovl_want_write() argument
36 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_want_write()
40 void ovl_put_write_access(struct dentry *dentr argument
46 ovl_end_write(struct dentry * dentry) ovl_end_write() argument
52 ovl_drop_write(struct dentry * dentry) ovl_drop_write() argument
58 ovl_workdir(struct dentry * dentry) ovl_workdir() argument
160 ovl_dentry_remote(struct dentry * dentry) ovl_dentry_remote() argument
165 ovl_dentry_update_reval(struct dentry * dentry,struct dentry * realdentry) ovl_dentry_update_reval() argument
175 ovl_dentry_init_reval(struct dentry * dentry,struct dentry * upperdentry,struct ovl_entry * oe) ovl_dentry_init_reval() argument
181 ovl_dentry_init_flags(struct dentry * dentry,struct dentry * upperdentry,struct ovl_entry * oe,unsigned int mask) ovl_dentry_init_flags() argument
198 ovl_dentry_weird(struct dentry * dentry) ovl_dentry_weird() argument
206 ovl_path_type(struct dentry * dentry) ovl_path_type() argument
231 ovl_path_upper(struct dentry * dentry,struct path * path) ovl_path_upper() argument
239 ovl_path_lower(struct dentry * dentry,struct path * path) ovl_path_lower() argument
252 ovl_path_lowerdata(struct dentry * dentry,struct path * path) ovl_path_lowerdata() argument
272 ovl_path_real(struct dentry * dentry,struct path * path) ovl_path_real() argument
284 ovl_path_realdata(struct dentry * dentry,struct path * path) ovl_path_realdata() argument
298 ovl_dentry_upper(struct dentry * dentry) ovl_dentry_upper() argument
303 ovl_dentry_lower(struct dentry * dentry) ovl_dentry_lower() argument
310 ovl_layer_lower(struct dentry * dentry) ovl_layer_lower() argument
323 ovl_dentry_lowerdata(struct dentry * dentry) ovl_dentry_lowerdata() argument
328 ovl_dentry_set_lowerdata(struct dentry * dentry,struct ovl_path * datapath) ovl_dentry_set_lowerdata() argument
351 ovl_dentry_real(struct dentry * dentry) ovl_dentry_real() argument
434 ovl_dentry_set_flag(unsigned long flag,struct dentry * dentry) ovl_dentry_set_flag() argument
439 ovl_dentry_clear_flag(unsigned long flag,struct dentry * dentry) ovl_dentry_clear_flag() argument
444 ovl_dentry_test_flag(unsigned long flag,struct dentry * dentry) ovl_dentry_test_flag() argument
449 ovl_dentry_is_opaque(struct dentry * dentry) ovl_dentry_is_opaque() argument
454 ovl_dentry_is_whiteout(struct dentry * dentry) ovl_dentry_is_whiteout() argument
459 ovl_dentry_set_opaque(struct dentry * dentry) ovl_dentry_set_opaque() argument
464 ovl_dentry_has_xwhiteouts(struct dentry * dentry) ovl_dentry_has_xwhiteouts() argument
469 ovl_dentry_set_xwhiteouts(struct dentry * dentry) ovl_dentry_set_xwhiteouts() argument
497 ovl_dentry_has_upper_alias(struct dentry * dentry) ovl_dentry_has_upper_alias() argument
502 ovl_dentry_set_upper_alias(struct dentry * dentry) ovl_dentry_set_upper_alias() argument
547 ovl_dentry_needs_data_copy_up_locked(struct dentry * dentry,int flags) ovl_dentry_needs_data_copy_up_locked() argument
555 ovl_dentry_needs_data_copy_up(struct dentry * dentry,int flags) ovl_dentry_needs_data_copy_up() argument
563 ovl_dentry_get_redirect(struct dentry * dentry) ovl_dentry_get_redirect() argument
568 ovl_dentry_set_redirect(struct dentry * dentry,const char * redirect) ovl_dentry_set_redirect() argument
593 ovl_dir_version_inc(struct dentry * dentry,bool impurity) ovl_dir_version_inc() argument
610 ovl_dir_modified(struct dentry * dentry,bool impurity) ovl_dir_modified() argument
624 ovl_is_whiteout(struct dentry * dentry) ovl_is_whiteout() argument
673 ovl_already_copied_up_locked(struct dentry * dentry,int flags) ovl_already_copied_up_locked() argument
685 ovl_already_copied_up(struct dentry * dentry,int flags) ovl_already_copied_up() argument
714 ovl_copy_up_start(struct dentry * dentry,int flags) ovl_copy_up_start() argument
737 ovl_copy_up_end(struct dentry * dentry) ovl_copy_up_end() argument
758 struct dentry *dentry = path->dentry; ovl_path_check_xwhiteout_xattr() local
893 ovl_set_impure(struct dentry * dentry,struct dentry * upperdentry) ovl_set_impure() argument
998 ovl_inuse_trylock(struct dentry * dentry) ovl_inuse_trylock() argument
1013 ovl_inuse_unlock(struct dentry * dentry) ovl_inuse_unlock() argument
1025 ovl_is_inuse(struct dentry * dentry) ovl_is_inuse() argument
1040 ovl_need_index(struct dentry * dentry) ovl_need_index() argument
1059 ovl_cleanup_index(struct dentry * dentry) ovl_cleanup_index() argument
1133 ovl_nlink_start(struct dentry * dentry) ovl_nlink_start() argument
1195 ovl_nlink_end(struct dentry * dentry) ovl_nlink_end() argument
1306 ovl_is_metacopy_dentry(struct dentry * dentry) ovl_is_metacopy_dentry() argument
[all...]
H A Ddir.c25 static int ovl_set_redirect(struct dentry *dentry, bool samedir);
27 int ovl_cleanup(struct ovl_fs *ofs, struct inode *wdir, struct dentry *wdentry) in ovl_cleanup()
46 struct dentry *ovl_lookup_temp(struct ovl_fs *ofs, struct dentry *workdir) in ovl_lookup_temp()
48 struct dentry *temp; in ovl_lookup_temp()
66 static struct dentry *ovl_whiteout(struct ovl_fs *ofs) in ovl_whiteout()
69 struct dentry *whiteout; in ovl_whiteout()
70 struct dentry *workdir = ofs->workdir; in ovl_whiteout()
111 struct dentry *dentr in ovl_cleanup_and_whiteout()
110 ovl_cleanup_and_whiteout(struct ovl_fs * ofs,struct inode * dir,struct dentry * dentry) ovl_cleanup_and_whiteout() argument
144 struct dentry *d, *dentry = *newdentry; ovl_mkdir_real() local
234 ovl_set_opaque_xerr(struct dentry * dentry,struct dentry * upper,int xerr) ovl_set_opaque_xerr() argument
247 ovl_set_opaque(struct dentry * dentry,struct dentry * upperdentry) ovl_set_opaque() argument
262 ovl_instantiate(struct dentry * dentry,struct inode * inode,struct dentry * newdentry,bool hardlink) ovl_instantiate() argument
311 ovl_type_merge(struct dentry * dentry) ovl_type_merge() argument
316 ovl_type_origin(struct dentry * dentry) ovl_type_origin() argument
321 ovl_create_upper(struct dentry * dentry,struct inode * inode,struct ovl_cattr * attr) ovl_create_upper() argument
361 ovl_clear_empty(struct dentry * dentry,struct list_head * list) ovl_clear_empty() argument
445 ovl_create_over_whiteout(struct dentry * dentry,struct inode * inode,struct ovl_cattr * cattr) ovl_create_over_whiteout() argument
554 ovl_create_or_link(struct dentry * dentry,struct inode * inode,struct ovl_cattr * attr,bool origin) ovl_create_or_link() argument
615 ovl_create_object(struct dentry * dentry,int mode,dev_t rdev,const char * link) ovl_create_object() argument
658 ovl_create(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,umode_t mode,bool excl) ovl_create() argument
664 ovl_mkdir(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,umode_t mode) ovl_mkdir() argument
670 ovl_mknod(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,umode_t mode,dev_t rdev) ovl_mknod() argument
680 ovl_symlink(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,const char * link) ovl_symlink() argument
685 ovl_set_link_redirect(struct dentry * dentry) ovl_set_link_redirect() argument
736 ovl_matches_upper(struct dentry * dentry,struct dentry * upper) ovl_matches_upper() argument
741 ovl_remove_and_whiteout(struct dentry * dentry,struct list_head * list) ovl_remove_and_whiteout() argument
795 ovl_remove_upper(struct dentry * dentry,bool is_dir,struct list_head * list) ovl_remove_upper() argument
847 ovl_pure_upper(struct dentry * dentry) ovl_pure_upper() argument
853 ovl_drop_nlink(struct dentry * dentry) ovl_drop_nlink() argument
875 ovl_do_remove(struct dentry * dentry,bool is_dir) ovl_do_remove() argument
925 ovl_unlink(struct inode * dir,struct dentry * dentry) ovl_unlink() argument
930 ovl_rmdir(struct inode * dir,struct dentry * dentry) ovl_rmdir() argument
935 ovl_type_merge_or_lower(struct dentry * dentry) ovl_type_merge_or_lower() argument
942 ovl_can_move(struct dentry * dentry) ovl_can_move() argument
948 ovl_get_redirect(struct dentry * dentry,bool abs_redirect) ovl_get_redirect() argument
1008 ovl_need_absolute_redirect(struct dentry * dentry,bool samedir) ovl_need_absolute_redirect() argument
1035 ovl_set_redirect(struct dentry * dentry,bool samedir) ovl_set_redirect() argument
[all...]
H A Dexport.c19 static int ovl_encode_maybe_copy_up(struct dentry *dentry) in ovl_encode_maybe_copy_up() argument
23 if (ovl_dentry_upper(dentry)) in ovl_encode_maybe_copy_up()
26 err = ovl_copy_up(dentry); in ovl_encode_maybe_copy_up()
29 dentry, err); in ovl_encode_maybe_copy_up()
72 static int ovl_connectable_layer(struct dentry *dentry) in ovl_connectable_layer() argument
74 struct ovl_entry *oe = OVL_E(dentry); in ovl_connectable_layer()
77 if (dentry == dentry->d_sb->s_root) in ovl_connectable_layer()
84 if (ovl_dentry_upper(dentry) && in ovl_connectable_layer()
85 !ovl_test_flag(OVL_INDEX, d_inode(dentry))) in ovl_connectable_layer()
100 static int ovl_connect_layer(struct dentry *dentry) in ovl_connect_layer() argument
[all …]
H A Dcopy_up.c48 struct dentry *dentry, const char *acl_name) in ovl_copy_acl() argument
69 err = ovl_do_set_acl(ofs, dentry, acl_name, clone); in ovl_copy_acl()
76 int ovl_copy_xattr(struct super_block *sb, const struct path *oldpath, struct dentry *new) in ovl_copy_xattr()
78 struct dentry *old = oldpath->dentry; in ovl_copy_xattr()
185 old->dentry, err); in ovl_copy_fileattr()
196 err = ovl_set_protattr(inode, new->dentry, &oldfa); in ovl_copy_fileattr()
218 new->dentry, err); in ovl_copy_fileattr()
246 static int ovl_copy_up_file(struct ovl_fs *ofs, struct dentry *dentry, in ovl_copy_up_file() argument
259 ovl_path_lowerdata(dentry, &datapath); in ovl_copy_up_file()
260 if (WARN_ON_ONCE(datapath.dentry == NULL) || in ovl_copy_up_file()
[all …]
/linux/drivers/net/wireless/ti/wl1251/
H A Dwl1251.h146 struct dentry *rootdir;
147 struct dentry *fw_statistics;
149 struct dentry *tx_internal_desc_overflow;
151 struct dentry *rx_out_of_mem;
152 struct dentry *rx_hdr_overflow;
153 struct dentry *rx_hw_stuck;
154 struct dentry *rx_dropped;
155 struct dentry *rx_fcs_err;
156 struct dentry *rx_xfr_hint_trig;
157 struct dentry *rx_path_reset;
[all …]
/linux/fs/debugfs/
H A Dinode.c46 struct dentry *dentry, struct iattr *ia) in debugfs_setattr() argument
55 return simple_setattr(&nop_mnt_idmap, dentry, ia); in debugfs_setattr()
187 static int debugfs_show_options(struct seq_file *m, struct dentry *root) in debugfs_show_options()
216 static void debugfs_release_dentry(struct dentry *dentry) in debugfs_release_dentry() argument
218 struct debugfs_fsdata *fsd = dentry->d_fsdata; in debugfs_release_dentry()
234 struct debugfs_fsdata *fsd = path->dentry->d_fsdata; in debugfs_automount()
236 return fsd->automount(path->dentry, d_inode(path->dentry)->i_private); in debugfs_automount()
318 struct dentry *debugfs_lookup(const char *name, struct dentry *parent) in debugfs_lookup()
320 struct dentry *dentry; in debugfs_lookup() local
328 dentry = lookup_positive_unlocked(name, parent, strlen(name)); in debugfs_lookup()
[all …]
/linux/fs/autofs/
H A Droot.c15 struct dentry *, const char *);
16 static int autofs_dir_unlink(struct inode *, struct dentry *);
17 static int autofs_dir_rmdir(struct inode *, struct dentry *);
19 struct dentry *, umode_t);
26 static struct dentry *autofs_lookup(struct inode *,
27 struct dentry *, unsigned int);
30 static void autofs_dentry_release(struct dentry *);
67 static void autofs_del_active(struct dentry *dentry) in autofs_del_active() argument
69 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_del_active()
72 ino = autofs_dentry_ino(dentry); in autofs_del_active()
[all …]
H A Dexpire.c11 static inline int autofs_can_expire(struct dentry *dentry, in autofs_can_expire() argument
14 struct autofs_info *ino = autofs_dentry_ino(dentry); in autofs_can_expire()
30 struct dentry *dentry, unsigned int how) in autofs_mount_busy() argument
32 struct dentry *top = dentry; in autofs_mount_busy()
33 struct path path = {.mnt = mnt, .dentry = dentry}; in autofs_mount_busy()
36 pr_debug("dentry %p %pd\n", dentry, dentry); in autofs_mount_busy()
43 if (is_autofs_dentry(path.dentry)) { in autofs_mount_busy()
44 struct autofs_sb_info *sbi = autofs_sbi(path.dentry->d_sb); in autofs_mount_busy()
74 static struct dentry *positive_after(struct dentry *p, struct dentry *child) in positive_after()
94 static struct dentry *get_next_positive_subdir(struct dentry *prev, in get_next_positive_subdir()
[all …]
/linux/fs/ocfs2/
H A Ddcache.c26 void ocfs2_dentry_attach_gen(struct dentry *dentry) in ocfs2_dentry_attach_gen() argument
29 OCFS2_I(d_inode(dentry->d_parent))->ip_dir_lock_gen; in ocfs2_dentry_attach_gen()
30 BUG_ON(d_inode(dentry)); in ocfs2_dentry_attach_gen()
31 dentry->d_fsdata = (void *)gen; in ocfs2_dentry_attach_gen()
35 static int ocfs2_dentry_revalidate(struct dentry *dentry, unsigned int flags) in ocfs2_dentry_revalidate() argument
44 inode = d_inode(dentry); in ocfs2_dentry_revalidate()
45 osb = OCFS2_SB(dentry->d_sb); in ocfs2_dentry_revalidate()
47 trace_ocfs2_dentry_revalidate(dentry, dentry->d_name.len, in ocfs2_dentry_revalidate()
48 dentry->d_name.name); in ocfs2_dentry_revalidate()
55 unsigned long gen = (unsigned long) dentry->d_fsdata; in ocfs2_dentry_revalidate()
[all …]
/linux/fs/exportfs/
H A Dexpfs.c24 static int get_name(const struct path *path, char *name, struct dentry *child);
27 static int exportfs_get_name(struct vfsmount *mnt, struct dentry *dir, in exportfs_get_name()
28 char *name, struct dentry *child) in exportfs_get_name()
31 struct path path = {.mnt = mnt, .dentry = dir}; in exportfs_get_name()
42 static struct dentry *
43 find_acceptable_alias(struct dentry *result, in find_acceptable_alias()
44 int (*acceptable)(void *context, struct dentry *dentry), in find_acceptable_alias() argument
47 struct dentry *dentry, *toput = NULL; in find_acceptable_alias() local
55 hlist_for_each_entry(dentry, &inode->i_dentry, d_u.d_alias) { in find_acceptable_alias()
56 dget(dentry); in find_acceptable_alias()
[all …]
/linux/fs/ecryptfs/
H A Dinode.c27 static int lock_parent(struct dentry *dentry, in lock_parent() argument
28 struct dentry **lower_dentry, in lock_parent()
31 struct dentry *lower_dir_dentry; in lock_parent()
33 lower_dir_dentry = ecryptfs_dentry_to_lower(dentry->d_parent); in lock_parent()
35 *lower_dentry = ecryptfs_dentry_to_lower(dentry); in lock_parent()
125 static int ecryptfs_interpose(struct dentry *lower_dentry, in ecryptfs_interpose()
126 struct dentry *dentry, struct super_block *sb) in ecryptfs_interpose() argument
132 d_instantiate(dentry, inode); in ecryptfs_interpose()
137 static int ecryptfs_do_unlink(struct inode *dir, struct dentry *dentry, in ecryptfs_do_unlink() argument
140 struct dentry *lower_dentry; in ecryptfs_do_unlink()
[all …]
/linux/fs/reiserfs/
H A Dxattr.c67 static int xattr_create(struct inode *dir, struct dentry *dentry, int mode) in xattr_create() argument
70 return dir->i_op->create(&nop_mnt_idmap, dir, dentry, mode, true); in xattr_create()
74 static int xattr_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in xattr_mkdir() argument
77 return dir->i_op->mkdir(&nop_mnt_idmap, dir, dentry, mode); in xattr_mkdir()
86 static int xattr_unlink(struct inode *dir, struct dentry *dentry) in xattr_unlink() argument
92 inode_lock_nested(d_inode(dentry), I_MUTEX_CHILD); in xattr_unlink()
93 error = dir->i_op->unlink(dir, dentry); in xattr_unlink()
94 inode_unlock(d_inode(dentry)); in xattr_unlink()
97 d_delete(dentry); in xattr_unlink()
101 static int xattr_rmdir(struct inode *dir, struct dentry *dentry) in xattr_rmdir() argument
[all …]
/linux/fs/ceph/
H A Ddir.c26 * or dentry operations (a single path component relative to an ino). The
34 static int __dir_lease_try_check(const struct dentry *dentry);
37 * Initialize ceph dentry state.
39 static int ceph_d_init(struct dentry *dentry) in ceph_d_init() argument
42 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dentry->d_sb); in ceph_d_init()
48 di->dentry = dentry; in ceph_d_init()
51 dentry in ceph_d_init()
136 struct dentry *dentry; __dcache_find_get_entry() local
193 struct dentry *dentry, *last = NULL; __dcache_readdir() local
345 struct dentry *dentry = file->f_path.dentry; ceph_readdir() local
724 ceph_handle_snapdir(struct ceph_mds_request * req,struct dentry * dentry) ceph_handle_snapdir() argument
758 ceph_finish_lookup(struct ceph_mds_request * req,struct dentry * dentry,int err) ceph_finish_lookup() argument
786 is_root_ceph_dentry(struct inode * inode,struct dentry * dentry) is_root_ceph_dentry() argument
796 ceph_lookup(struct inode * dir,struct dentry * dentry,unsigned int flags) ceph_lookup() argument
889 ceph_handle_notrace_create(struct inode * dir,struct dentry * dentry) ceph_handle_notrace_create() argument
913 ceph_mknod(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,umode_t mode,dev_t rdev) ceph_mknod() argument
980 ceph_create(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,umode_t mode,bool excl) ceph_create() argument
1023 ceph_symlink(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,const char * dest) ceph_symlink() argument
1097 ceph_mkdir(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,umode_t mode) ceph_mkdir() argument
1181 ceph_link(struct dentry * old_dentry,struct inode * dir,struct dentry * dentry) ceph_link() argument
1239 struct dentry *dentry = req->r_dentry; ceph_async_unlink_cb() local
1292 get_caps_for_async_unlink(struct inode * dir,struct dentry * dentry) get_caps_for_async_unlink() argument
1331 ceph_unlink(struct inode * dir,struct dentry * dentry) ceph_unlink() argument
1604 struct dentry *dentry, *last = NULL; __dentry_leases_walk() local
1689 __dentry_lease_check(const struct dentry * dentry) __dentry_lease_check() argument
1704 __dir_lease_check(const struct dentry * dentry,struct ceph_lease_walk_control * lwc) __dir_lease_check() argument
1765 ceph_invalidate_dentry_lease(struct dentry * dentry) ceph_invalidate_dentry_lease() argument
1804 dentry_lease_is_valid(struct dentry * dentry,unsigned int flags) dentry_lease_is_valid() argument
1849 __dir_lease_try_check(const struct dentry * dentry) __dir_lease_try_check() argument
1881 dir_lease_is_valid(struct inode * dir,struct dentry * dentry,struct ceph_mds_client * mdsc) dir_lease_is_valid() argument
1916 ceph_d_revalidate(struct dentry * dentry,unsigned int flags) ceph_d_revalidate() argument
2025 ceph_d_delete(const struct dentry * dentry) ceph_d_delete() argument
2048 ceph_d_release(struct dentry * dentry) ceph_d_release() argument
2072 ceph_d_prune(struct dentry * dentry) ceph_d_prune() argument
[all...]
/linux/security/integrity/evm/
H A Devm_main.c131 static int evm_find_protected_xattrs(struct dentry *dentry) in evm_find_protected_xattrs() argument
133 struct inode *inode = d_backing_inode(dentry); in evm_find_protected_xattrs()
142 error = __vfs_getxattr(dentry, inode, xattr->name, NULL, 0); in evm_find_protected_xattrs()
154 static int is_unsupported_hmac_fs(struct dentry *dentry) in is_unsupported_hmac_fs() argument
156 struct inode *inode = d_backing_inode(dentry); in is_unsupported_hmac_fs()
178 static enum integrity_status evm_verify_hmac(struct dentry *dentry, in evm_verify_hmac() argument
187 struct inode *inode = d_backing_inode(dentry); in evm_verify_hmac()
200 is_unsupported_hmac_fs(dentry)) in evm_verify_hmac()
206 rc = vfs_getxattr_alloc(&nop_mnt_idmap, dentry, XATTR_NAME_EVM, in evm_verify_hmac()
211 rc = evm_find_protected_xattrs(dentry); in evm_verify_hmac()
[all …]
/linux/fs/tracefs/
H A Dinode.c100 static char *get_dname(struct dentry *dentry) in get_dname() argument
104 int len = dentry->d_name.len; in get_dname()
106 dname = dentry->d_name.name; in get_dname()
116 struct inode *inode, struct dentry *dentry, in tracefs_syscall_mkdir() argument
123 name = get_dname(dentry); in tracefs_syscall_mkdir()
150 static int tracefs_syscall_rmdir(struct inode *inode, struct dentry *dentry) in tracefs_syscall_rmdir() argument
155 name = get_dname(dentry); in tracefs_syscall_rmdir()
167 inode_unlock(d_inode(dentry)); in tracefs_syscall_rmdir()
172 inode_lock(d_inode(dentry)); in tracefs_syscall_rmdir()
229 struct inode *inode = d_backing_inode(path->dentry); in tracefs_getattr()
[all …]
/linux/fs/9p/
H A Dfid.c21 static inline void __add_fid(struct dentry *dentry, struct p9_fid *fid) in __add_fid() argument
23 hlist_add_head(&fid->dlist, (struct hlist_head *)&dentry->d_fsdata); in __add_fid()
33 void v9fs_fid_add(struct dentry *dentry, struct p9_fid **pfid) in v9fs_fid_add() argument
37 spin_lock(&dentry->d_lock); in v9fs_fid_add()
38 __add_fid(dentry, fid); in v9fs_fid_add()
39 spin_unlock(&dentry->d_lock); in v9fs_fid_add()
113 static struct p9_fid *v9fs_fid_find(struct dentry *dentry, kuid_t uid, int any) in v9fs_fid_find() argument
118 dentry, dentry, from_kuid(&init_user_ns, uid), in v9fs_fid_find()
122 if (dentry->d_fsdata) { in v9fs_fid_find()
123 struct hlist_head *h = (struct hlist_head *)&dentry->d_fsdata; in v9fs_fid_find()
[all …]
/linux/arch/s390/hypfs/
H A Dinode.c33 static struct dentry *hypfs_create_update_file(struct dentry *dir);
38 struct dentry *update_file; /* file to trigger update */
48 static struct dentry *hypfs_last_dentry;
61 static void hypfs_add_dentry(struct dentry *dentry) in hypfs_add_dentry() argument
63 dentry->d_fsdata = hypfs_last_dentry; in hypfs_add_dentry()
64 hypfs_last_dentry = dentry; in hypfs_add_dentry()
67 static void hypfs_remove(struct dentry *dentry) in hypfs_remove() argument
69 struct dentry *parent; in hypfs_remove()
71 parent = dentry->d_parent; in hypfs_remove()
73 if (simple_positive(dentry)) { in hypfs_remove()
[all …]
/linux/fs/configfs/
H A Ddir.c45 static void configfs_d_iput(struct dentry * dentry, in configfs_d_iput() argument
48 struct configfs_dirent *sd = dentry->d_fsdata; in configfs_d_iput()
59 if (sd->s_dentry == dentry) in configfs_d_iput()
243 struct dentry * dentry, void * element, in configfs_make_dirent() argument
253 sd->s_dentry = dentry; in configfs_make_dirent()
254 if (dentry) in configfs_make_dirent()
255 dentry->d_fsdata = configfs_get(sd); in configfs_make_dirent()
260 static void configfs_remove_dirent(struct dentry *dentry) in configfs_remove_dirent() argument
262 struct configfs_dirent *sd = dentry->d_fsdata; in configfs_remove_dirent()
282 static int configfs_create_dir(struct config_item *item, struct dentry *dentry, in configfs_create_dir() argument
[all …]

12345678910>>...73