Lines Matching refs:dentry
91 static inline int ovl_do_rmdir(struct inode *dir, struct dentry *dentry) in ovl_do_rmdir() argument
93 int err = vfs_rmdir(dir, dentry); in ovl_do_rmdir()
95 pr_debug("rmdir(%pd2) = %i\n", dentry, err); in ovl_do_rmdir()
99 static inline int ovl_do_unlink(struct inode *dir, struct dentry *dentry) in ovl_do_unlink() argument
101 int err = vfs_unlink(dir, dentry, NULL); in ovl_do_unlink()
103 pr_debug("unlink(%pd2) = %i\n", dentry, err); in ovl_do_unlink()
107 static inline int ovl_do_link(struct dentry *old_dentry, struct inode *dir, in ovl_do_link()
108 struct dentry *new_dentry) in ovl_do_link()
116 static inline int ovl_do_create(struct inode *dir, struct dentry *dentry, in ovl_do_create() argument
119 int err = vfs_create(dir, dentry, mode, true); in ovl_do_create()
121 pr_debug("create(%pd2, 0%o) = %i\n", dentry, mode, err); in ovl_do_create()
125 static inline int ovl_do_mkdir(struct inode *dir, struct dentry *dentry, in ovl_do_mkdir() argument
128 int err = vfs_mkdir(dir, dentry, mode); in ovl_do_mkdir()
129 pr_debug("mkdir(%pd2, 0%o) = %i\n", dentry, mode, err); in ovl_do_mkdir()
133 static inline int ovl_do_mknod(struct inode *dir, struct dentry *dentry, in ovl_do_mknod() argument
136 int err = vfs_mknod(dir, dentry, mode, dev); in ovl_do_mknod()
138 pr_debug("mknod(%pd2, 0%o, 0%o) = %i\n", dentry, mode, dev, err); in ovl_do_mknod()
142 static inline int ovl_do_symlink(struct inode *dir, struct dentry *dentry, in ovl_do_symlink() argument
145 int err = vfs_symlink(dir, dentry, oldname); in ovl_do_symlink()
147 pr_debug("symlink(\"%s\", %pd2) = %i\n", oldname, dentry, err); in ovl_do_symlink()
151 static inline int ovl_do_setxattr(struct dentry *dentry, const char *name, in ovl_do_setxattr() argument
154 int err = vfs_setxattr(dentry, name, value, size, flags); in ovl_do_setxattr()
156 dentry, name, min((int)size, 48), value, size, flags, err); in ovl_do_setxattr()
160 static inline int ovl_do_removexattr(struct dentry *dentry, const char *name) in ovl_do_removexattr() argument
162 int err = vfs_removexattr(dentry, name); in ovl_do_removexattr()
163 pr_debug("removexattr(%pd2, \"%s\") = %i\n", dentry, name, err); in ovl_do_removexattr()
167 static inline int ovl_do_rename(struct inode *olddir, struct dentry *olddentry, in ovl_do_rename()
168 struct inode *newdir, struct dentry *newdentry, in ovl_do_rename()
182 static inline int ovl_do_whiteout(struct inode *dir, struct dentry *dentry) in ovl_do_whiteout() argument
184 int err = vfs_whiteout(dir, dentry); in ovl_do_whiteout()
185 pr_debug("whiteout(%pd2) = %i\n", dentry, err); in ovl_do_whiteout()
189 static inline struct dentry *ovl_do_tmpfile(struct dentry *dentry, umode_t mode) in ovl_do_tmpfile() argument
191 struct dentry *ret = vfs_tmpfile(dentry, mode, 0); in ovl_do_tmpfile()
194 pr_debug("tmpfile(%pd2, 0%o) = %i\n", dentry, mode, err); in ovl_do_tmpfile()
207 int ovl_want_write(struct dentry *dentry);
208 void ovl_drop_write(struct dentry *dentry);
209 struct dentry *ovl_workdir(struct dentry *dentry);
213 struct dentry *ovl_indexdir(struct super_block *sb);
217 bool ovl_dentry_remote(struct dentry *dentry);
218 bool ovl_dentry_weird(struct dentry *dentry);
219 enum ovl_path_type ovl_path_type(struct dentry *dentry);
220 void ovl_path_upper(struct dentry *dentry, struct path *path);
221 void ovl_path_lower(struct dentry *dentry, struct path *path);
222 void ovl_path_lowerdata(struct dentry *dentry, struct path *path);
223 enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path);
224 struct dentry *ovl_dentry_upper(struct dentry *dentry);
225 struct dentry *ovl_dentry_lower(struct dentry *dentry);
226 struct dentry *ovl_dentry_lowerdata(struct dentry *dentry);
227 struct ovl_layer *ovl_layer_lower(struct dentry *dentry);
228 struct dentry *ovl_dentry_real(struct dentry *dentry);
229 struct dentry *ovl_i_dentry_upper(struct inode *inode);
237 void ovl_dentry_set_flag(unsigned long flag, struct dentry *dentry);
238 void ovl_dentry_clear_flag(unsigned long flag, struct dentry *dentry);
239 bool ovl_dentry_test_flag(unsigned long flag, struct dentry *dentry);
240 bool ovl_dentry_is_opaque(struct dentry *dentry);
241 bool ovl_dentry_is_whiteout(struct dentry *dentry);
242 void ovl_dentry_set_opaque(struct dentry *dentry);
243 bool ovl_dentry_has_upper_alias(struct dentry *dentry);
244 void ovl_dentry_set_upper_alias(struct dentry *dentry);
245 bool ovl_dentry_needs_data_copy_up(struct dentry *dentry, int flags);
246 bool ovl_dentry_needs_data_copy_up_locked(struct dentry *dentry, int flags);
250 const char *ovl_dentry_get_redirect(struct dentry *dentry);
251 void ovl_dentry_set_redirect(struct dentry *dentry, const char *redirect);
252 void ovl_inode_init(struct inode *inode, struct dentry *upperdentry,
253 struct dentry *lowerdentry, struct dentry *lowerdata);
254 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry);
255 void ovl_dir_modified(struct dentry *dentry, bool impurity);
256 u64 ovl_dentry_version_get(struct dentry *dentry);
257 bool ovl_is_whiteout(struct dentry *dentry);
259 int ovl_copy_up_start(struct dentry *dentry, int flags);
260 void ovl_copy_up_end(struct dentry *dentry);
261 bool ovl_already_copied_up(struct dentry *dentry, int flags);
262 bool ovl_check_origin_xattr(struct dentry *dentry);
263 bool ovl_check_dir_xattr(struct dentry *dentry, const char *name);
264 int ovl_check_setxattr(struct dentry *dentry, struct dentry *upperdentry,
267 int ovl_set_impure(struct dentry *dentry, struct dentry *upperdentry);
271 bool ovl_inuse_trylock(struct dentry *dentry);
272 void ovl_inuse_unlock(struct dentry *dentry);
273 bool ovl_need_index(struct dentry *dentry);
274 int ovl_nlink_start(struct dentry *dentry, bool *locked);
275 void ovl_nlink_end(struct dentry *dentry, bool locked);
276 int ovl_lock_rename_workdir(struct dentry *workdir, struct dentry *upperdir);
277 int ovl_check_metacopy_xattr(struct dentry *dentry);
278 bool ovl_is_metacopy_dentry(struct dentry *dentry);
279 char *ovl_get_redirect_xattr(struct dentry *dentry, int padding);
281 static inline bool ovl_is_impuredir(struct dentry *dentry) in ovl_is_impuredir() argument
283 return ovl_check_dir_xattr(dentry, OVL_XATTR_IMPURE); in ovl_is_impuredir()
296 struct dentry *ovl_decode_real_fh(struct ovl_fh *fh, struct vfsmount *mnt,
299 struct dentry *upperdentry, struct ovl_path **stackp);
300 int ovl_verify_set_fh(struct dentry *dentry, const char *name,
301 struct dentry *real, bool is_upper, bool set);
302 struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index);
303 int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index);
304 int ovl_get_index_name(struct dentry *origin, struct qstr *name);
305 struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh);
306 struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper,
307 struct dentry *origin, bool verify);
308 int ovl_path_next(int idx, struct dentry *dentry, struct path *path);
309 struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
311 bool ovl_lower_positive(struct dentry *dentry);
313 static inline int ovl_verify_origin(struct dentry *upper, in ovl_verify_origin()
314 struct dentry *origin, bool set) in ovl_verify_origin()
319 static inline int ovl_verify_upper(struct dentry *index, in ovl_verify_upper()
320 struct dentry *upper, bool set) in ovl_verify_upper()
327 int ovl_check_empty_dir(struct dentry *dentry, struct list_head *list);
328 void ovl_cleanup_whiteouts(struct dentry *upper, struct list_head *list);
333 struct dentry *dentry, int level);
337 int ovl_set_nlink_upper(struct dentry *dentry);
338 int ovl_set_nlink_lower(struct dentry *dentry);
339 unsigned int ovl_get_nlink(struct dentry *lowerdentry,
340 struct dentry *upperdentry,
342 int ovl_setattr(struct dentry *dentry, struct iattr *attr);
346 int ovl_xattr_set(struct dentry *dentry, struct inode *inode, const char *name,
348 int ovl_xattr_get(struct dentry *dentry, struct inode *inode, const char *name,
350 ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size);
357 struct dentry *upperdentry;
359 struct dentry *index;
362 struct dentry *lowerdata;
365 struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *real,
389 int ovl_cleanup_and_whiteout(struct dentry *workdir, struct inode *dir,
390 struct dentry *dentry);
395 struct dentry *hardlink;
400 struct dentry *ovl_create_real(struct inode *dir, struct dentry *newdentry,
402 int ovl_cleanup(struct inode *dir, struct dentry *dentry);
403 struct dentry *ovl_create_temp(struct dentry *workdir, struct ovl_cattr *attr);
409 int ovl_copy_up(struct dentry *dentry);
410 int ovl_copy_up_with_data(struct dentry *dentry);
411 int ovl_copy_up_flags(struct dentry *dentry, int flags);
412 int ovl_open_maybe_copy_up(struct dentry *dentry, unsigned int file_flags);
413 int ovl_copy_xattr(struct dentry *old, struct dentry *new);
414 int ovl_set_attr(struct dentry *upper, struct kstat *stat);
415 struct ovl_fh *ovl_encode_real_fh(struct dentry *real, bool is_upper);
416 int ovl_set_origin(struct dentry *dentry, struct dentry *lower,
417 struct dentry *upper);