• Home
  • Raw
  • Download

Lines Matching refs:dentry

36 static int ncp_create(struct inode *, struct dentry *, int, struct nameidata *);
37 static struct dentry *ncp_lookup(struct inode *, struct dentry *, struct nameidata *);
38 static int ncp_unlink(struct inode *, struct dentry *);
39 static int ncp_mkdir(struct inode *, struct dentry *, int);
40 static int ncp_rmdir(struct inode *, struct dentry *);
41 static int ncp_rename(struct inode *, struct dentry *,
42 struct inode *, struct dentry *);
43 static int ncp_mknod(struct inode * dir, struct dentry *dentry,
46 extern int ncp_symlink(struct inode *, struct dentry *, const char *);
77 static int ncp_lookup_validate(struct dentry *, struct nameidata *);
78 static int ncp_hash_dentry(struct dentry *, struct qstr *);
79 static int ncp_compare_dentry (struct dentry *, struct qstr *, struct qstr *);
80 static int ncp_delete_dentry(struct dentry *);
103 ncp_hash_dentry(struct dentry *dentry, struct qstr *this) in ncp_hash_dentry() argument
109 t = NCP_IO_TABLE(dentry); in ncp_hash_dentry()
111 if (!ncp_case_sensitive(dentry->d_inode)) { in ncp_hash_dentry()
122 ncp_compare_dentry(struct dentry *dentry, struct qstr *a, struct qstr *b) in ncp_compare_dentry() argument
127 if (ncp_case_sensitive(dentry->d_inode)) in ncp_compare_dentry()
130 return ncp_strnicmp(NCP_IO_TABLE(dentry), a->name, b->name, a->len); in ncp_compare_dentry()
139 ncp_delete_dentry(struct dentry * dentry) in ncp_delete_dentry() argument
141 struct inode *inode = dentry->d_inode; in ncp_delete_dentry()
175 ncp_force_unlink(struct inode *dir, struct dentry* dentry) in ncp_force_unlink() argument
185 inode = dentry->d_inode; in ncp_force_unlink()
194 res = ncp_del_file_or_subdir2(NCP_SERVER(dir), dentry); in ncp_force_unlink()
210 ncp_force_rename(struct inode *old_dir, struct dentry* old_dentry, char *_old_name, in ncp_force_rename()
211 struct inode *new_dir, struct dentry* new_dentry, char *_new_name) in ncp_force_rename()
269 __ncp_lookup_validate(struct dentry *dentry) in __ncp_lookup_validate() argument
272 struct dentry *parent; in __ncp_lookup_validate()
278 parent = dget_parent(dentry); in __ncp_lookup_validate()
281 if (!dentry->d_inode) in __ncp_lookup_validate()
295 val = NCP_TEST_AGE(server, dentry); in __ncp_lookup_validate()
300 dentry->d_parent->d_name.name, dentry->d_name.name, in __ncp_lookup_validate()
301 NCP_GET_AGE(dentry)); in __ncp_lookup_validate()
305 res = ncp_io2vol(server, __name, &len, dentry->d_name.name, in __ncp_lookup_validate()
306 dentry->d_name.len, 1); in __ncp_lookup_validate()
310 res = ncp_io2vol(server, __name, &len, dentry->d_name.name, in __ncp_lookup_validate()
311 dentry->d_name.len, !ncp_preserve_case(dir)); in __ncp_lookup_validate()
317 dentry->d_parent->d_name.name, __name, res); in __ncp_lookup_validate()
323 if (finfo.i.dirEntNum == NCP_FINFO(dentry->d_inode)->dirEntNum) { in __ncp_lookup_validate()
324 ncp_new_dentry(dentry); in __ncp_lookup_validate()
329 ncp_update_inode2(dentry->d_inode, &finfo); in __ncp_lookup_validate()
339 ncp_lookup_validate(struct dentry * dentry, struct nameidata *nd) in ncp_lookup_validate() argument
343 res = __ncp_lookup_validate(dentry); in ncp_lookup_validate()
348 static struct dentry *
349 ncp_dget_fpos(struct dentry *dentry, struct dentry *parent, unsigned long fpos) in ncp_dget_fpos() argument
351 struct dentry *dent = dentry; in ncp_dget_fpos()
370 dent = list_entry(next, struct dentry, d_u.d_child); in ncp_dget_fpos()
388 static time_t ncp_obtain_mtime(struct dentry *dentry) in ncp_obtain_mtime() argument
390 struct inode *inode = dentry->d_inode; in ncp_obtain_mtime()
405 struct dentry *dentry = filp->f_path.dentry; in ncp_readdir() local
406 struct inode *inode = dentry->d_inode; in ncp_readdir()
420 dentry->d_parent->d_name.name, dentry->d_name.name, in ncp_readdir()
434 if (filldir(dirent, "..", 2, 1, parent_ino(dentry), DT_DIR)) in ncp_readdir()
453 mtime = ncp_obtain_mtime(dentry); in ncp_readdir()
476 struct dentry *dent; in ncp_readdir()
479 dent = ncp_dget_fpos(ctl.cache->dentry[ctl.idx], in ncp_readdir()
480 dentry, filp->f_pos); in ncp_readdir()
513 ncp_invalidate_dircache_entries(dentry); in ncp_readdir()
515 mtime = ncp_obtain_mtime(dentry); in ncp_readdir()
557 struct dentry *newdent, *dentry = filp->f_path.dentry; in ncp_fill_cache() local
558 struct inode *newino, *inode = dentry->d_inode; in ncp_fill_cache()
575 if (dentry->d_op && dentry->d_op->d_hash) in ncp_fill_cache()
576 if (dentry->d_op->d_hash(dentry, &qname) != 0) in ncp_fill_cache()
579 newdent = d_lookup(dentry, &qname); in ncp_fill_cache()
582 newdent = d_alloc(dentry, &qname); in ncp_fill_cache()
625 ctl.cache->dentry[ctl.idx] = newdent; in ncp_fill_cache()
634 ino = find_inode_number(dentry, &qname); in ncp_fill_cache()
652 struct dentry *dentry = filp->f_path.dentry; in ncp_read_volume_list() local
653 struct inode *inode = dentry->d_inode; in ncp_read_volume_list()
688 struct dentry *dentry = filp->f_path.dentry; in ncp_do_readdir() local
689 struct inode *dir = dentry->d_inode; in ncp_do_readdir()
699 dentry->d_parent->d_name.name, dentry->d_name.name, in ncp_do_readdir()
702 dentry->d_name.name, NCP_FINFO(dir)->volNumber, in ncp_do_readdir()
757 struct dentry* dent; in ncp_conn_logged_in()
794 static struct dentry *ncp_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd) in ncp_lookup() argument
808 dentry->d_parent->d_name.name, dentry->d_name.name); in ncp_lookup()
812 res = ncp_io2vol(server, __name, &len, dentry->d_name.name, in ncp_lookup()
813 dentry->d_name.len, 1); in ncp_lookup()
817 res = ncp_io2vol(server, __name, &len, dentry->d_name.name, in ncp_lookup()
818 dentry->d_name.len, !ncp_preserve_case(dir)); in ncp_lookup()
823 dentry->d_parent->d_name.name, __name, res); in ncp_lookup()
840 ncp_new_dentry(dentry); in ncp_lookup()
842 dentry->d_op = &ncp_dentry_operations; in ncp_lookup()
843 d_add(dentry, inode); in ncp_lookup()
856 static int ncp_instantiate(struct inode *dir, struct dentry *dentry, in ncp_instantiate() argument
866 d_instantiate(dentry,inode); in ncp_instantiate()
873 dentry->d_parent->d_name.name, dentry->d_name.name); in ncp_instantiate()
878 int ncp_create_new(struct inode *dir, struct dentry *dentry, int mode, in ncp_create_new() argument
888 dentry->d_parent->d_name.name, dentry->d_name.name, mode); in ncp_create_new()
895 ncp_age_dentry(server, dentry); in ncp_create_new()
897 error = ncp_io2vol(server, __name, &len, dentry->d_name.name, in ncp_create_new()
898 dentry->d_name.len, !ncp_preserve_case(dir)); in ncp_create_new()
921 dentry->d_parent->d_name.name, dentry->d_name.name); in ncp_create_new()
936 error = ncp_instantiate(dir, dentry, &finfo); in ncp_create_new()
942 static int ncp_create(struct inode *dir, struct dentry *dentry, int mode, in ncp_create() argument
945 return ncp_create_new(dir, dentry, mode, 0, 0); in ncp_create()
948 static int ncp_mkdir(struct inode *dir, struct dentry *dentry, int mode) in ncp_mkdir() argument
956 dentry->d_parent->d_name.name, dentry->d_name.name); in ncp_mkdir()
963 ncp_age_dentry(server, dentry); in ncp_mkdir()
965 error = ncp_io2vol(server, __name, &len, dentry->d_name.name, in ncp_mkdir()
966 dentry->d_name.len, !ncp_preserve_case(dir)); in ncp_mkdir()
985 error = ncp_instantiate(dir, dentry, &finfo); in ncp_mkdir()
992 static int ncp_rmdir(struct inode *dir, struct dentry *dentry) in ncp_rmdir() argument
999 dentry->d_parent->d_name.name, dentry->d_name.name); in ncp_rmdir()
1007 if (!d_unhashed(dentry)) in ncp_rmdir()
1011 error = ncp_io2vol(server, __name, &len, dentry->d_name.name, in ncp_rmdir()
1012 dentry->d_name.len, !ncp_preserve_case(dir)); in ncp_rmdir()
1047 static int ncp_unlink(struct inode *dir, struct dentry *dentry) in ncp_unlink() argument
1049 struct inode *inode = dentry->d_inode; in ncp_unlink()
1056 dentry->d_parent->d_name.name, dentry->d_name.name); in ncp_unlink()
1070 error = ncp_del_file_or_subdir2(server, dentry); in ncp_unlink()
1075 error = ncp_force_unlink(dir, dentry); in ncp_unlink()
1081 dentry->d_parent->d_name.name, dentry->d_name.name); in ncp_unlink()
1109 static int ncp_rename(struct inode *old_dir, struct dentry *old_dentry, in ncp_rename()
1110 struct inode *new_dir, struct dentry *new_dentry) in ncp_rename()
1172 static int ncp_mknod(struct inode * dir, struct dentry *dentry, in ncp_mknod() argument
1179 return ncp_create_new(dir, dentry, mode, rdev, 0); in ncp_mknod()