Lines Matching refs:dentry

89 	struct dentry *dentry;  in rpc_timeout_upcall_queue()  local
97 dentry = dget(pipe->dentry); in rpc_timeout_upcall_queue()
99 rpc_purge_list(dentry ? &RPC_I(d_inode(dentry))->waitq : NULL, in rpc_timeout_upcall_queue()
101 dput(dentry); in rpc_timeout_upcall_queue()
138 struct dentry *dentry; in rpc_queue_upcall() local
154 dentry = dget(pipe->dentry); in rpc_queue_upcall()
156 if (dentry) { in rpc_queue_upcall()
157 wake_up(&RPC_I(d_inode(dentry))->waitq); in rpc_queue_upcall()
158 dput(dentry); in rpc_queue_upcall()
171 rpc_close_pipes(struct dentry *dentry) in rpc_close_pipes() argument
173 struct inode *inode = dentry->d_inode; in rpc_close_pipes()
185 pipe->dentry = NULL; in rpc_close_pipes()
423 spin_lock(&file->f_path.dentry->d_lock); in rpc_info_open()
424 if (!d_unhashed(file->f_path.dentry)) in rpc_info_open()
427 spin_unlock(&file->f_path.dentry->d_lock); in rpc_info_open()
430 spin_unlock(&file->f_path.dentry->d_lock); in rpc_info_open()
501 pipe->dentry = NULL; in init_pipe()
524 static int rpc_new_file(struct dentry *parent, in rpc_new_file()
530 struct dentry *dentry = simple_start_creating(parent, name); in rpc_new_file() local
534 if (IS_ERR(dentry)) in rpc_new_file()
535 return PTR_ERR(dentry); in rpc_new_file()
539 dput(dentry); in rpc_new_file()
547 d_instantiate(dentry, inode); in rpc_new_file()
548 fsnotify_create(dir, dentry); in rpc_new_file()
553 static struct dentry *rpc_new_dir(struct dentry *parent, in rpc_new_dir()
557 struct dentry *dentry = simple_start_creating(parent, name); in rpc_new_dir() local
561 if (IS_ERR(dentry)) in rpc_new_dir()
562 return dentry; in rpc_new_dir()
566 dput(dentry); in rpc_new_dir()
573 d_instantiate(dentry, inode); in rpc_new_dir()
574 fsnotify_mkdir(dir, dentry); in rpc_new_dir()
577 return dentry; in rpc_new_dir()
580 static int rpc_populate(struct dentry *parent, in rpc_populate()
585 struct dentry *dentry; in rpc_populate() local
602 dentry = rpc_new_dir(parent, in rpc_populate()
605 if (IS_ERR(dentry)) { in rpc_populate()
606 err = PTR_ERR(dentry); in rpc_populate()
637 int rpc_mkpipe_dentry(struct dentry *parent, const char *name, in rpc_mkpipe_dentry()
641 struct dentry *dentry; in rpc_mkpipe_dentry() local
652 dentry = simple_start_creating(parent, name); in rpc_mkpipe_dentry()
653 if (IS_ERR(dentry)) { in rpc_mkpipe_dentry()
654 err = PTR_ERR(dentry); in rpc_mkpipe_dentry()
660 dput(dentry); in rpc_mkpipe_dentry()
671 d_instantiate(dentry, inode); in rpc_mkpipe_dentry()
672 pipe->dentry = dentry; in rpc_mkpipe_dentry()
673 fsnotify_create(dir, dentry); in rpc_mkpipe_dentry()
695 if (pipe->dentry) { in rpc_unlink()
696 simple_recursive_removal(pipe->dentry, rpc_close_pipes); in rpc_unlink()
697 pipe->dentry = NULL; in rpc_unlink()
839 struct dentry *dir = pdh->pdh_dentry; in rpc_create_pipe_dir_objects()
849 struct dentry *dir = pdh->pdh_dentry; in rpc_destroy_pipe_dir_objects()
866 int rpc_create_client_dir(struct dentry *dentry, in rpc_create_client_dir() argument
870 struct dentry *ret; in rpc_create_client_dir()
873 ret = rpc_new_dir(dentry, name, 0555); in rpc_create_client_dir()
895 struct dentry *dentry = rpc_client->cl_pipedir_objects.pdh_dentry; in rpc_remove_client_dir() local
897 if (dentry == NULL) in rpc_remove_client_dir()
901 simple_recursive_removal(dentry, NULL); in rpc_remove_client_dir()
923 struct dentry *rpc_create_cache_dir(struct dentry *parent, const char *name, in rpc_create_cache_dir()
926 struct dentry *dentry; in rpc_create_cache_dir() local
928 dentry = rpc_new_dir(parent, name, umode); in rpc_create_cache_dir()
929 if (!IS_ERR(dentry)) { in rpc_create_cache_dir()
930 int error = rpc_populate(dentry, cache_pipefs_files, 0, 3, cd); in rpc_create_cache_dir()
932 simple_recursive_removal(dentry, NULL); in rpc_create_cache_dir()
936 return dentry; in rpc_create_cache_dir()
939 void rpc_remove_cache_dir(struct dentry *dentry) in rpc_remove_cache_dir() argument
941 simple_recursive_removal(dentry, NULL); in rpc_remove_cache_dir()
1008 struct dentry *rpc_d_lookup_sb(const struct super_block *sb, in rpc_d_lookup_sb()
1099 rpc_gssd_dummy_populate(struct dentry *root, struct rpc_pipe *pipe_data) in rpc_gssd_dummy_populate()
1101 struct dentry *gssd_dentry, *clnt_dentry; in rpc_gssd_dummy_populate()
1123 struct dentry *root; in rpc_fill_super()