Lines Matching refs:dentry
32 static int vfat_revalidate_shortname(struct dentry *dentry) in vfat_revalidate_shortname() argument
35 spin_lock(&dentry->d_lock); in vfat_revalidate_shortname()
36 if (dentry->d_time != d_inode(dentry->d_parent)->i_version) in vfat_revalidate_shortname()
38 spin_unlock(&dentry->d_lock); in vfat_revalidate_shortname()
42 static int vfat_revalidate(struct dentry *dentry, unsigned int flags) in vfat_revalidate() argument
48 if (d_really_is_positive(dentry)) in vfat_revalidate()
50 return vfat_revalidate_shortname(dentry); in vfat_revalidate()
53 static int vfat_revalidate_ci(struct dentry *dentry, unsigned int flags) in vfat_revalidate_ci() argument
68 if (d_really_is_positive(dentry)) in vfat_revalidate_ci()
86 return vfat_revalidate_shortname(dentry); in vfat_revalidate_ci()
108 static int vfat_hash(const struct dentry *dentry, struct qstr *qstr) in vfat_hash() argument
120 static int vfat_hashi(const struct dentry *dentry, struct qstr *qstr) in vfat_hashi() argument
122 struct nls_table *t = MSDOS_SB(dentry->d_sb)->nls_io; in vfat_hashi()
141 static int vfat_cmpi(const struct dentry *parent, const struct dentry *dentry, in vfat_cmpi() argument
160 static int vfat_cmp(const struct dentry *parent, const struct dentry *dentry, in vfat_cmp() argument
704 static int vfat_d_anon_disconn(struct dentry *dentry) in vfat_d_anon_disconn() argument
706 return IS_ROOT(dentry) && (dentry->d_flags & DCACHE_DISCONNECTED); in vfat_d_anon_disconn()
709 static struct dentry *vfat_lookup(struct inode *dir, struct dentry *dentry, in vfat_lookup() argument
715 struct dentry *alias; in vfat_lookup()
720 err = vfat_find(dir, &dentry->d_name, &sinfo); in vfat_lookup()
741 if (alias && alias->d_parent == dentry->d_parent && in vfat_lookup()
752 d_move(alias, dentry); in vfat_lookup()
762 dentry->d_time = dir->i_version; in vfat_lookup()
763 return d_splice_alias(inode, dentry); in vfat_lookup()
769 static int vfat_create(struct inode *dir, struct dentry *dentry, umode_t mode, in vfat_create() argument
781 err = vfat_add_entry(dir, &dentry->d_name, 0, 0, &ts, &sinfo); in vfat_create()
796 d_instantiate(dentry, inode); in vfat_create()
802 static int vfat_rmdir(struct inode *dir, struct dentry *dentry) in vfat_rmdir() argument
804 struct inode *inode = d_inode(dentry); in vfat_rmdir()
814 err = vfat_find(dir, &dentry->d_name, &sinfo); in vfat_rmdir()
826 dentry->d_time = dir->i_version; in vfat_rmdir()
833 static int vfat_unlink(struct inode *dir, struct dentry *dentry) in vfat_unlink() argument
835 struct inode *inode = d_inode(dentry); in vfat_unlink()
842 err = vfat_find(dir, &dentry->d_name, &sinfo); in vfat_unlink()
852 dentry->d_time = dir->i_version; in vfat_unlink()
859 static int vfat_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in vfat_mkdir() argument
875 err = vfat_add_entry(dir, &dentry->d_name, 1, cluster, &ts, &sinfo); in vfat_mkdir()
893 d_instantiate(dentry, inode); in vfat_mkdir()
905 static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry, in vfat_rename()
906 struct inode *new_dir, struct dentry *new_dentry) in vfat_rename()
1058 static struct dentry *vfat_mount(struct file_system_type *fs_type, in vfat_mount()