• Home
  • Raw
  • Download

Lines Matching refs:direntry

38 renew_parental_timestamps(struct dentry *direntry)  in renew_parental_timestamps()  argument
43 cifs_set_time(direntry, jiffies); in renew_parental_timestamps()
44 direntry = direntry->d_parent; in renew_parental_timestamps()
45 } while (!IS_ROOT(direntry)); in renew_parental_timestamps()
81 build_path_from_dentry(struct dentry *direntry) in build_path_from_dentry() argument
83 struct cifs_sb_info *cifs_sb = CIFS_SB(direntry->d_sb); in build_path_from_dentry()
87 return build_path_from_dentry_optional_prefix(direntry, in build_path_from_dentry()
92 build_path_from_dentry_optional_prefix(struct dentry *direntry, bool prefix) in build_path_from_dentry_optional_prefix() argument
100 struct cifs_sb_info *cifs_sb = CIFS_SB(direntry->d_sb); in build_path_from_dentry_optional_prefix()
117 for (temp = direntry; !IS_ROOT(temp);) { in build_path_from_dentry_optional_prefix()
133 for (temp = direntry; !IS_ROOT(temp);) { in build_path_from_dentry_optional_prefix()
201 check_name(struct dentry *direntry, struct cifs_tcon *tcon) in check_name() argument
203 struct cifs_sb_info *cifs_sb = CIFS_SB(direntry->d_sb); in check_name()
207 direntry->d_name.len > in check_name()
212 for (i = 0; i < direntry->d_name.len; i++) { in check_name()
213 if (direntry->d_name.name[i] == '\\') { in check_name()
226 cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid, in cifs_do_create() argument
246 full_path = build_path_from_dentry(direntry); in cifs_do_create()
449 d_drop(direntry); in cifs_do_create()
450 d_add(direntry, newinode); in cifs_do_create()
466 cifs_atomic_open(struct inode *inode, struct dentry *direntry, in cifs_atomic_open() argument
497 if (!d_in_lookup(direntry)) in cifs_atomic_open()
500 res = cifs_lookup(inode, direntry, 0); in cifs_atomic_open()
510 inode, direntry, direntry); in cifs_atomic_open()
520 rc = check_name(direntry, tcon); in cifs_atomic_open()
531 rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mode, in cifs_atomic_open()
542 rc = finish_open(file, direntry, generic_file_open); in cifs_atomic_open()
574 int cifs_create(struct inode *inode, struct dentry *direntry, umode_t mode, in cifs_create() argument
594 inode, direntry, direntry); in cifs_create()
607 rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mode, in cifs_create()
618 int cifs_mknod(struct inode *inode, struct dentry *direntry, umode_t mode, in cifs_mknod() argument
640 full_path = build_path_from_dentry(direntry); in cifs_mknod()
646 rc = tcon->ses->server->ops->make_node(xid, inode, direntry, tcon, in cifs_mknod()
658 cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry, in cifs_lookup() argument
672 parent_dir_inode, direntry, direntry); in cifs_lookup()
684 rc = check_name(direntry, pTcon); in cifs_lookup()
694 full_path = build_path_from_dentry(direntry); in cifs_lookup()
701 if (d_really_is_positive(direntry)) { in cifs_lookup()
707 full_path, d_inode(direntry)); in cifs_lookup()
720 renew_parental_timestamps(direntry); in cifs_lookup()
722 cifs_set_time(direntry, jiffies); in cifs_lookup()
735 return d_splice_alias(newInode, direntry); in cifs_lookup()
739 cifs_d_revalidate(struct dentry *direntry, unsigned int flags) in cifs_d_revalidate() argument
746 if (d_really_is_positive(direntry)) { in cifs_d_revalidate()
747 inode = d_inode(direntry); in cifs_d_revalidate()
751 if (cifs_revalidate_dentry(direntry)) in cifs_d_revalidate()
762 !(direntry->d_flags & DCACHE_NEED_AUTOMOUNT)) { in cifs_d_revalidate()
763 spin_lock(&direntry->d_lock); in cifs_d_revalidate()
764 direntry->d_flags |= DCACHE_NEED_AUTOMOUNT; in cifs_d_revalidate()
765 spin_unlock(&direntry->d_lock); in cifs_d_revalidate()
787 if (time_after(jiffies, cifs_get_time(direntry) + HZ) || !lookupCacheEnabled) in cifs_d_revalidate()