Lines Matching refs:dentry
122 static inline int ovl_do_rmdir(struct inode *dir, struct dentry *dentry) in ovl_do_rmdir() argument
124 int err = vfs_rmdir(dir, dentry); in ovl_do_rmdir()
126 pr_debug("rmdir(%pd2) = %i\n", dentry, err); in ovl_do_rmdir()
130 static inline int ovl_do_unlink(struct inode *dir, struct dentry *dentry) in ovl_do_unlink() argument
132 int err = vfs_unlink(dir, dentry, NULL); in ovl_do_unlink()
134 pr_debug("unlink(%pd2) = %i\n", dentry, err); in ovl_do_unlink()
138 static inline int ovl_do_link(struct dentry *old_dentry, struct inode *dir, in ovl_do_link()
139 struct dentry *new_dentry) in ovl_do_link()
147 static inline int ovl_do_create(struct inode *dir, struct dentry *dentry, in ovl_do_create() argument
150 int err = vfs_create(dir, dentry, mode, true); in ovl_do_create()
152 pr_debug("create(%pd2, 0%o) = %i\n", dentry, mode, err); in ovl_do_create()
156 static inline int ovl_do_mkdir(struct inode *dir, struct dentry *dentry, in ovl_do_mkdir() argument
159 int err = vfs_mkdir(dir, dentry, mode); in ovl_do_mkdir()
160 pr_debug("mkdir(%pd2, 0%o) = %i\n", dentry, mode, err); in ovl_do_mkdir()
164 static inline int ovl_do_mknod(struct inode *dir, struct dentry *dentry, in ovl_do_mknod() argument
167 int err = vfs_mknod(dir, dentry, mode, dev); in ovl_do_mknod()
169 pr_debug("mknod(%pd2, 0%o, 0%o) = %i\n", dentry, mode, dev, err); in ovl_do_mknod()
173 static inline int ovl_do_symlink(struct inode *dir, struct dentry *dentry, in ovl_do_symlink() argument
176 int err = vfs_symlink(dir, dentry, oldname); in ovl_do_symlink()
178 pr_debug("symlink(\"%s\", %pd2) = %i\n", oldname, dentry, err); in ovl_do_symlink()
182 static inline ssize_t ovl_do_getxattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_getxattr() argument
187 struct inode *ip = d_inode(dentry); in ovl_do_getxattr()
189 return __vfs_getxattr(dentry, ip, name, value, size, XATTR_NOSECURITY); in ovl_do_getxattr()
192 static inline int ovl_do_setxattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_setxattr() argument
197 int err = vfs_setxattr(dentry, name, value, size, 0); in ovl_do_setxattr()
199 dentry, name, min((int)size, 48), value, size, err); in ovl_do_setxattr()
203 static inline int ovl_do_removexattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_removexattr() argument
207 int err = vfs_removexattr(dentry, name); in ovl_do_removexattr()
208 pr_debug("removexattr(%pd2, \"%s\") = %i\n", dentry, name, err); in ovl_do_removexattr()
212 static inline int ovl_do_rename(struct inode *olddir, struct dentry *olddentry, in ovl_do_rename()
213 struct inode *newdir, struct dentry *newdentry, in ovl_do_rename()
227 static inline int ovl_do_whiteout(struct inode *dir, struct dentry *dentry) in ovl_do_whiteout() argument
229 int err = vfs_whiteout(dir, dentry); in ovl_do_whiteout()
230 pr_debug("whiteout(%pd2) = %i\n", dentry, err); in ovl_do_whiteout()
234 static inline struct dentry *ovl_do_tmpfile(struct dentry *dentry, umode_t mode) in ovl_do_tmpfile() argument
236 struct dentry *ret = vfs_tmpfile(dentry, mode, 0); in ovl_do_tmpfile()
239 pr_debug("tmpfile(%pd2, 0%o) = %i\n", dentry, mode, err); in ovl_do_tmpfile()
252 int ovl_want_write(struct dentry *dentry);
253 void ovl_drop_write(struct dentry *dentry);
254 struct dentry *ovl_workdir(struct dentry *dentry);
258 struct dentry *ovl_indexdir(struct super_block *sb);
262 bool ovl_dentry_remote(struct dentry *dentry);
263 void ovl_dentry_update_reval(struct dentry *dentry, struct dentry *upperdentry,
265 bool ovl_dentry_weird(struct dentry *dentry);
266 enum ovl_path_type ovl_path_type(struct dentry *dentry);
267 void ovl_path_upper(struct dentry *dentry, struct path *path);
268 void ovl_path_lower(struct dentry *dentry, struct path *path);
269 void ovl_path_lowerdata(struct dentry *dentry, struct path *path);
270 enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path);
271 struct dentry *ovl_dentry_upper(struct dentry *dentry);
272 struct dentry *ovl_dentry_lower(struct dentry *dentry);
273 struct dentry *ovl_dentry_lowerdata(struct dentry *dentry);
274 const struct ovl_layer *ovl_layer_lower(struct dentry *dentry);
275 struct dentry *ovl_dentry_real(struct dentry *dentry);
276 struct dentry *ovl_i_dentry_upper(struct inode *inode);
284 void ovl_dentry_set_flag(unsigned long flag, struct dentry *dentry);
285 void ovl_dentry_clear_flag(unsigned long flag, struct dentry *dentry);
286 bool ovl_dentry_test_flag(unsigned long flag, struct dentry *dentry);
287 bool ovl_dentry_is_opaque(struct dentry *dentry);
288 bool ovl_dentry_is_whiteout(struct dentry *dentry);
289 void ovl_dentry_set_opaque(struct dentry *dentry);
290 bool ovl_dentry_has_upper_alias(struct dentry *dentry);
291 void ovl_dentry_set_upper_alias(struct dentry *dentry);
292 bool ovl_dentry_needs_data_copy_up(struct dentry *dentry, int flags);
293 bool ovl_dentry_needs_data_copy_up_locked(struct dentry *dentry, int flags);
297 const char *ovl_dentry_get_redirect(struct dentry *dentry);
298 void ovl_dentry_set_redirect(struct dentry *dentry, const char *redirect);
299 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry);
300 void ovl_dir_modified(struct dentry *dentry, bool impurity);
301 u64 ovl_dentry_version_get(struct dentry *dentry);
302 bool ovl_is_whiteout(struct dentry *dentry);
304 int ovl_copy_up_start(struct dentry *dentry, int flags);
305 void ovl_copy_up_end(struct dentry *dentry);
306 bool ovl_already_copied_up(struct dentry *dentry, int flags);
307 bool ovl_check_origin_xattr(struct ovl_fs *ofs, struct dentry *dentry);
308 bool ovl_check_dir_xattr(struct super_block *sb, struct dentry *dentry,
310 int ovl_check_setxattr(struct dentry *dentry, struct dentry *upperdentry,
313 int ovl_set_impure(struct dentry *dentry, struct dentry *upperdentry);
314 bool ovl_inuse_trylock(struct dentry *dentry);
315 void ovl_inuse_unlock(struct dentry *dentry);
316 bool ovl_is_inuse(struct dentry *dentry);
317 bool ovl_need_index(struct dentry *dentry);
318 int ovl_nlink_start(struct dentry *dentry);
319 void ovl_nlink_end(struct dentry *dentry);
320 int ovl_lock_rename_workdir(struct dentry *workdir, struct dentry *upperdir);
321 int ovl_check_metacopy_xattr(struct ovl_fs *ofs, struct dentry *dentry);
322 bool ovl_is_metacopy_dentry(struct dentry *dentry);
323 char *ovl_get_redirect_xattr(struct ovl_fs *ofs, struct dentry *dentry,
343 struct dentry *dentry) in ovl_is_impuredir() argument
345 return ovl_check_dir_xattr(sb, dentry, OVL_XATTR_IMPURE); in ovl_is_impuredir()
402 struct dentry *ovl_decode_real_fh(struct ovl_fh *fh, struct vfsmount *mnt,
405 struct dentry *upperdentry, struct ovl_path **stackp);
406 int ovl_verify_set_fh(struct ovl_fs *ofs, struct dentry *dentry,
407 enum ovl_xattr ox, struct dentry *real, bool is_upper,
409 struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index);
410 int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index);
411 int ovl_get_index_name(struct dentry *origin, struct qstr *name);
412 struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh);
413 struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper,
414 struct dentry *origin, bool verify);
415 int ovl_path_next(int idx, struct dentry *dentry, struct path *path);
416 struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
418 bool ovl_lower_positive(struct dentry *dentry);
420 static inline int ovl_verify_origin(struct ovl_fs *ofs, struct dentry *upper, in ovl_verify_origin()
421 struct dentry *origin, bool set) in ovl_verify_origin()
427 static inline int ovl_verify_upper(struct ovl_fs *ofs, struct dentry *index, in ovl_verify_upper()
428 struct dentry *upper, bool set) in ovl_verify_upper()
436 int ovl_check_empty_dir(struct dentry *dentry, struct list_head *list);
437 void ovl_cleanup_whiteouts(struct dentry *upper, struct list_head *list);
442 struct dentry *dentry, int level);
452 static inline bool ovl_dir_is_real(struct dentry *dir) in ovl_dir_is_real()
458 int ovl_set_nlink_upper(struct dentry *dentry);
459 int ovl_set_nlink_lower(struct dentry *dentry);
460 unsigned int ovl_get_nlink(struct ovl_fs *ofs, struct dentry *lowerdentry,
461 struct dentry *upperdentry,
463 int ovl_setattr(struct dentry *dentry, struct iattr *attr);
467 int ovl_xattr_set(struct dentry *dentry, struct inode *inode, const char *name,
469 int ovl_xattr_get(struct dentry *dentry, struct inode *inode, const char *name,
471 ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size);
478 struct dentry *upperdentry;
483 struct dentry *lowerdata;
488 struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *real,
490 bool ovl_lookup_trap_inode(struct super_block *sb, struct dentry *dir);
491 struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir);
515 struct dentry *dentry);
520 struct dentry *hardlink;
525 int ovl_mkdir_real(struct inode *dir, struct dentry **newdentry, umode_t mode);
526 struct dentry *ovl_create_real(struct inode *dir, struct dentry *newdentry,
528 int ovl_cleanup(struct inode *dir, struct dentry *dentry);
529 struct dentry *ovl_lookup_temp(struct dentry *workdir);
530 struct dentry *ovl_create_temp(struct dentry *workdir, struct ovl_cattr *attr);
540 int ovl_copy_up(struct dentry *dentry);
541 int ovl_copy_up_with_data(struct dentry *dentry);
542 int ovl_maybe_copy_up(struct dentry *dentry, int flags);
543 int ovl_copy_xattr(struct super_block *sb, struct dentry *old,
544 struct dentry *new);
545 int ovl_set_attr(struct dentry *upper, struct kstat *stat);
546 struct ovl_fh *ovl_encode_real_fh(struct dentry *real, bool is_upper);
547 int ovl_set_origin(struct dentry *dentry, struct dentry *lower,
548 struct dentry *upper);