• Home
  • Raw
  • Download

Lines Matching refs:dentry

33 static int ncp_create(struct inode *, struct dentry *, umode_t, struct nameidata *);
34 static struct dentry *ncp_lookup(struct inode *, struct dentry *, struct nameidata *);
35 static int ncp_unlink(struct inode *, struct dentry *);
36 static int ncp_mkdir(struct inode *, struct dentry *, umode_t);
37 static int ncp_rmdir(struct inode *, struct dentry *);
38 static int ncp_rename(struct inode *, struct dentry *,
39 struct inode *, struct dentry *);
40 static int ncp_mknod(struct inode * dir, struct dentry *dentry,
43 extern int ncp_symlink(struct inode *, struct dentry *, const char *);
75 static int ncp_lookup_validate(struct dentry *, struct nameidata *);
76 static int ncp_hash_dentry(const struct dentry *, const struct inode *,
78 static int ncp_compare_dentry(const struct dentry *, const struct inode *,
79 const struct dentry *, const struct inode *,
81 static int ncp_delete_dentry(const struct dentry *);
124 ncp_hash_dentry(const struct dentry *dentry, const struct inode *inode, in ncp_hash_dentry() argument
128 struct super_block *sb = dentry->d_sb; in ncp_hash_dentry()
144 ncp_compare_dentry(const struct dentry *parent, const struct inode *pinode, in ncp_compare_dentry()
145 const struct dentry *dentry, const struct inode *inode, in ncp_compare_dentry() argument
163 ncp_delete_dentry(const struct dentry * dentry) in ncp_delete_dentry() argument
165 struct inode *inode = dentry->d_inode; in ncp_delete_dentry()
199 ncp_force_unlink(struct inode *dir, struct dentry* dentry) in ncp_force_unlink() argument
209 inode = dentry->d_inode; in ncp_force_unlink()
218 res = ncp_del_file_or_subdir2(NCP_SERVER(dir), dentry); in ncp_force_unlink()
234 ncp_force_rename(struct inode *old_dir, struct dentry* old_dentry, char *_old_name, in ncp_force_rename()
235 struct inode *new_dir, struct dentry* new_dentry, char *_new_name) in ncp_force_rename()
293 ncp_lookup_validate(struct dentry *dentry, struct nameidata *nd) in ncp_lookup_validate() argument
296 struct dentry *parent; in ncp_lookup_validate()
302 if (dentry == dentry->d_sb->s_root) in ncp_lookup_validate()
308 parent = dget_parent(dentry); in ncp_lookup_validate()
311 if (!dentry->d_inode) in ncp_lookup_validate()
322 val = NCP_TEST_AGE(server, dentry); in ncp_lookup_validate()
327 dentry->d_parent->d_name.name, dentry->d_name.name, in ncp_lookup_validate()
328 NCP_GET_AGE(dentry)); in ncp_lookup_validate()
332 res = ncp_io2vol(server, __name, &len, dentry->d_name.name, in ncp_lookup_validate()
333 dentry->d_name.len, 1); in ncp_lookup_validate()
340 res = ncp_io2vol(server, __name, &len, dentry->d_name.name, in ncp_lookup_validate()
341 dentry->d_name.len, !ncp_preserve_case(dir)); in ncp_lookup_validate()
347 dentry->d_parent->d_name.name, __name, res); in ncp_lookup_validate()
353 struct inode *inode = dentry->d_inode; in ncp_lookup_validate()
357 ncp_new_dentry(dentry); in ncp_lookup_validate()
372 static struct dentry *
373 ncp_dget_fpos(struct dentry *dentry, struct dentry *parent, unsigned long fpos) in ncp_dget_fpos() argument
375 struct dentry *dent = dentry; in ncp_dget_fpos()
394 dent = list_entry(next, struct dentry, d_u.d_child); in ncp_dget_fpos()
412 static time_t ncp_obtain_mtime(struct dentry *dentry) in ncp_obtain_mtime() argument
414 struct inode *inode = dentry->d_inode; in ncp_obtain_mtime()
429 struct dentry *dentry = filp->f_path.dentry; in ncp_readdir() local
430 struct inode *inode = dentry->d_inode; in ncp_readdir()
442 dentry->d_parent->d_name.name, dentry->d_name.name, in ncp_readdir()
457 if (filldir(dirent, "..", 2, 1, parent_ino(dentry), DT_DIR)) in ncp_readdir()
476 mtime = ncp_obtain_mtime(dentry); in ncp_readdir()
499 struct dentry *dent; in ncp_readdir()
502 dent = ncp_dget_fpos(ctl.cache->dentry[ctl.idx], in ncp_readdir()
503 dentry, filp->f_pos); in ncp_readdir()
536 ncp_invalidate_dircache_entries(dentry); in ncp_readdir()
538 mtime = ncp_obtain_mtime(dentry); in ncp_readdir()
580 struct dentry *newdent, *dentry = filp->f_path.dentry; in ncp_fill_cache() local
581 struct inode *dir = dentry->d_inode; in ncp_fill_cache()
598 if (dentry->d_op && dentry->d_op->d_hash) in ncp_fill_cache()
599 if (dentry->d_op->d_hash(dentry, dentry->d_inode, &qname) != 0) in ncp_fill_cache()
602 newdent = d_lookup(dentry, &qname); in ncp_fill_cache()
605 newdent = d_alloc(dentry, &qname); in ncp_fill_cache()
666 ctl.cache->dentry[ctl.idx] = newdent; in ncp_fill_cache()
675 ino = find_inode_number(dentry, &qname); in ncp_fill_cache()
693 struct dentry *dentry = filp->f_path.dentry; in ncp_read_volume_list() local
694 struct inode *inode = dentry->d_inode; in ncp_read_volume_list()
731 struct dentry *dentry = filp->f_path.dentry; in ncp_do_readdir() local
732 struct inode *dir = dentry->d_inode; in ncp_do_readdir()
742 dentry->d_parent->d_name.name, dentry->d_name.name, in ncp_do_readdir()
745 dentry->d_name.name, NCP_FINFO(dir)->volNumber, in ncp_do_readdir()
800 struct dentry* dent; in ncp_conn_logged_in()
839 static struct dentry *ncp_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd) in ncp_lookup() argument
852 dentry->d_parent->d_name.name, dentry->d_name.name); in ncp_lookup()
856 res = ncp_io2vol(server, __name, &len, dentry->d_name.name, in ncp_lookup()
857 dentry->d_name.len, 1); in ncp_lookup()
863 res = ncp_io2vol(server, __name, &len, dentry->d_name.name, in ncp_lookup()
864 dentry->d_name.len, !ncp_preserve_case(dir)); in ncp_lookup()
869 dentry->d_parent->d_name.name, __name, res); in ncp_lookup()
886 ncp_new_dentry(dentry); in ncp_lookup()
888 d_add(dentry, inode); in ncp_lookup()
900 static int ncp_instantiate(struct inode *dir, struct dentry *dentry, in ncp_instantiate() argument
910 d_instantiate(dentry,inode); in ncp_instantiate()
917 dentry->d_parent->d_name.name, dentry->d_name.name); in ncp_instantiate()
922 int ncp_create_new(struct inode *dir, struct dentry *dentry, umode_t mode, in ncp_create_new() argument
932 dentry->d_parent->d_name.name, dentry->d_name.name, mode); in ncp_create_new()
934 ncp_age_dentry(server, dentry); in ncp_create_new()
936 error = ncp_io2vol(server, __name, &len, dentry->d_name.name, in ncp_create_new()
937 dentry->d_name.len, !ncp_preserve_case(dir)); in ncp_create_new()
962 dentry->d_parent->d_name.name, dentry->d_name.name); in ncp_create_new()
977 error = ncp_instantiate(dir, dentry, &finfo); in ncp_create_new()
982 static int ncp_create(struct inode *dir, struct dentry *dentry, umode_t mode, in ncp_create() argument
985 return ncp_create_new(dir, dentry, mode, 0, 0); in ncp_create()
988 static int ncp_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in ncp_mkdir() argument
996 dentry->d_parent->d_name.name, dentry->d_name.name); in ncp_mkdir()
998 ncp_age_dentry(server, dentry); in ncp_mkdir()
1000 error = ncp_io2vol(server, __name, &len, dentry->d_name.name, in ncp_mkdir()
1001 dentry->d_name.len, !ncp_preserve_case(dir)); in ncp_mkdir()
1019 error = ncp_instantiate(dir, dentry, &finfo); in ncp_mkdir()
1027 static int ncp_rmdir(struct inode *dir, struct dentry *dentry) in ncp_rmdir() argument
1034 dentry->d_parent->d_name.name, dentry->d_name.name); in ncp_rmdir()
1040 dentry_unhash(dentry); in ncp_rmdir()
1042 if (!d_unhashed(dentry)) in ncp_rmdir()
1046 error = ncp_io2vol(server, __name, &len, dentry->d_name.name, in ncp_rmdir()
1047 dentry->d_name.len, !ncp_preserve_case(dir)); in ncp_rmdir()
1081 static int ncp_unlink(struct inode *dir, struct dentry *dentry) in ncp_unlink() argument
1083 struct inode *inode = dentry->d_inode; in ncp_unlink()
1089 dentry->d_parent->d_name.name, dentry->d_name.name); in ncp_unlink()
1099 error = ncp_del_file_or_subdir2(server, dentry); in ncp_unlink()
1104 error = ncp_force_unlink(dir, dentry); in ncp_unlink()
1110 dentry->d_parent->d_name.name, dentry->d_name.name); in ncp_unlink()
1135 static int ncp_rename(struct inode *old_dir, struct dentry *old_dentry, in ncp_rename()
1136 struct inode *new_dir, struct dentry *new_dentry) in ncp_rename()
1203 static int ncp_mknod(struct inode * dir, struct dentry *dentry, in ncp_mknod() argument
1210 return ncp_create_new(dir, dentry, mode, rdev, 0); in ncp_mknod()