Lines Matching refs:dentry

23 	sharefs_get_lower_path(path->dentry, &lower_path);
25 stat->ino = d_inode(path->dentry)->i_ino;
26 stat->uid = d_inode(path->dentry)->i_uid;
27 stat->gid = d_inode(path->dentry)->i_gid;
28 stat->mode = d_inode(path->dentry)->i_mode;
31 sharefs_put_lower_path(path->dentry, &lower_path);
36 static ssize_t sharefs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size)
39 struct dentry *lower_dentry;
42 sharefs_get_lower_path(dentry, &lower_path);
43 lower_dentry = lower_path.dentry;
51 fsstack_copy_attr_atime(d_inode(dentry),
52 d_inode(lower_path.dentry));
54 sharefs_put_lower_path(dentry, &lower_path);
80 static int sharefs_create(struct inode *dir, struct dentry *dentry,
84 struct dentry *lower_dentry;
85 struct dentry *lower_parent_dentry = NULL;
96 sharefs_get_lower_path(dentry, &lower_path);
97 lower_dentry = lower_path.dentry;
103 err = sharefs_interpose(dentry, dir->i_sb, &lower_path);
111 sharefs_put_lower_path(dentry, &lower_path);
116 static int sharefs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
119 struct dentry *lower_dentry;
120 struct dentry *lower_parent_dentry = NULL;
131 sharefs_get_lower_path(dentry, &lower_path);
132 lower_dentry = lower_path.dentry;
138 err = sharefs_interpose(dentry, dir->i_sb, &lower_path);
149 sharefs_put_lower_path(dentry, &lower_path);
154 static int sharefs_unlink(struct inode *dir, struct dentry *dentry)
157 struct dentry *lower_dentry = NULL;
159 struct dentry *lower_dir_dentry = NULL;
162 sharefs_get_lower_path(dentry, &lower_path);
163 lower_dentry = lower_path.dentry;
171 set_nlink(dentry->d_inode,
172 sharefs_lower_inode(dentry->d_inode)->i_nlink);
173 dentry->d_inode->i_ctime = dir->i_ctime;
174 d_drop(dentry);
179 sharefs_put_lower_path(dentry, &lower_path);
183 static int sharefs_rmdir(struct inode *dir, struct dentry *dentry)
186 struct dentry *lower_dentry;
187 struct dentry *lower_dir_dentry;
190 sharefs_get_lower_path(dentry, &lower_path);
191 lower_dentry = lower_path.dentry;
197 d_drop(dentry);
198 if (dentry->d_inode)
199 clear_nlink(dentry->d_inode);
206 sharefs_put_lower_path(dentry, &lower_path);
210 static int sharefs_rename(struct inode *old_dir, struct dentry *old_dentry,
211 struct inode *new_dir, struct dentry *new_dentry,
215 struct dentry *lower_old_dentry = NULL;
216 struct dentry *lower_new_dentry = NULL;
217 struct dentry *lower_old_dir_dentry = NULL;
218 struct dentry *lower_new_dir_dentry = NULL;
219 struct dentry *trap = NULL;
227 lower_old_dentry = lower_old_path.dentry;
228 lower_new_dentry = lower_new_path.dentry;
267 static int sharefs_setattr(struct dentry *dentry, struct iattr *ia)
270 struct dentry *lower_dentry;
276 inode = dentry->d_inode;
283 err = setattr_prepare(dentry, ia);
287 sharefs_get_lower_path(dentry, &lower_path);
288 lower_dentry = lower_path.dentry;
342 sharefs_put_lower_path(dentry, &lower_path);