Lines Matching refs:dentry

185 				       struct dentry *upperdentry,  in ovl_do_notify_change()
192 struct inode *dir, struct dentry *dentry) in ovl_do_rmdir() argument
194 int err = vfs_rmdir(ovl_upper_mnt_idmap(ofs), dir, dentry); in ovl_do_rmdir()
196 pr_debug("rmdir(%pd2) = %i\n", dentry, err); in ovl_do_rmdir()
201 struct dentry *dentry) in ovl_do_unlink() argument
203 int err = vfs_unlink(ovl_upper_mnt_idmap(ofs), dir, dentry, NULL); in ovl_do_unlink()
205 pr_debug("unlink(%pd2) = %i\n", dentry, err); in ovl_do_unlink()
209 static inline int ovl_do_link(struct ovl_fs *ofs, struct dentry *old_dentry, in ovl_do_link()
210 struct inode *dir, struct dentry *new_dentry) in ovl_do_link()
220 struct inode *dir, struct dentry *dentry, in ovl_do_create() argument
223 int err = vfs_create(ovl_upper_mnt_idmap(ofs), dir, dentry, mode, true); in ovl_do_create()
225 pr_debug("create(%pd2, 0%o) = %i\n", dentry, mode, err); in ovl_do_create()
230 struct inode *dir, struct dentry *dentry, in ovl_do_mkdir() argument
233 int err = vfs_mkdir(ovl_upper_mnt_idmap(ofs), dir, dentry, mode); in ovl_do_mkdir()
234 pr_debug("mkdir(%pd2, 0%o) = %i\n", dentry, mode, err); in ovl_do_mkdir()
239 struct inode *dir, struct dentry *dentry, in ovl_do_mknod() argument
242 int err = vfs_mknod(ovl_upper_mnt_idmap(ofs), dir, dentry, mode, dev); in ovl_do_mknod()
244 pr_debug("mknod(%pd2, 0%o, 0%o) = %i\n", dentry, mode, dev, err); in ovl_do_mknod()
249 struct inode *dir, struct dentry *dentry, in ovl_do_symlink() argument
252 int err = vfs_symlink(ovl_upper_mnt_idmap(ofs), dir, dentry, oldname); in ovl_do_symlink()
254 pr_debug("symlink(\"%s\", %pd2) = %i\n", oldname, dentry, err); in ovl_do_symlink()
263 WARN_ON(path->dentry->d_sb != path->mnt->mnt_sb); in ovl_do_getxattr()
265 err = vfs_getxattr(mnt_idmap(path->mnt), path->dentry, in ovl_do_getxattr()
270 path->dentry, name, min(len, 48), value, size, err); in ovl_do_getxattr()
275 struct dentry *upperdentry, in ovl_getxattr_upper()
280 .dentry = upperdentry, in ovl_getxattr_upper()
295 static inline int ovl_do_setxattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_setxattr() argument
299 int err = vfs_setxattr(ovl_upper_mnt_idmap(ofs), dentry, name, in ovl_do_setxattr()
303 dentry, name, min((int)size, 48), value, size, flags, err); in ovl_do_setxattr()
307 static inline int ovl_setxattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_setxattr() argument
311 return ovl_do_setxattr(ofs, dentry, ovl_xattr(ofs, ox), value, size, 0); in ovl_setxattr()
314 static inline int ovl_do_removexattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_removexattr() argument
317 int err = vfs_removexattr(ovl_upper_mnt_idmap(ofs), dentry, name); in ovl_do_removexattr()
318 pr_debug("removexattr(%pd2, \"%s\") = %i\n", dentry, name, err); in ovl_do_removexattr()
322 static inline int ovl_removexattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_removexattr() argument
325 return ovl_do_removexattr(ofs, dentry, ovl_xattr(ofs, ox)); in ovl_removexattr()
328 static inline int ovl_do_set_acl(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_set_acl() argument
331 return vfs_set_acl(ovl_upper_mnt_idmap(ofs), dentry, acl_name, acl); in ovl_do_set_acl()
334 static inline int ovl_do_remove_acl(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_remove_acl() argument
337 return vfs_remove_acl(ovl_upper_mnt_idmap(ofs), dentry, acl_name); in ovl_do_remove_acl()
341 struct dentry *olddentry, struct inode *newdir, in ovl_do_rename()
342 struct dentry *newdentry, unsigned int flags) in ovl_do_rename()
365 struct inode *dir, struct dentry *dentry) in ovl_do_whiteout() argument
367 int err = vfs_whiteout(ovl_upper_mnt_idmap(ofs), dir, dentry); in ovl_do_whiteout()
368 pr_debug("whiteout(%pd2) = %i\n", dentry, err); in ovl_do_whiteout()
373 struct dentry *dentry, umode_t mode) in ovl_do_tmpfile() argument
375 struct path path = { .mnt = ovl_upper_mnt(ofs), .dentry = dentry }; in ovl_do_tmpfile()
381 pr_debug("tmpfile(%pd2, 0%o) = %i\n", dentry, mode, err); in ovl_do_tmpfile()
385 static inline struct dentry *ovl_lookup_upper(struct ovl_fs *ofs, in ovl_lookup_upper()
387 struct dentry *base, int len) in ovl_lookup_upper()
401 int ovl_want_write(struct dentry *dentry);
402 void ovl_drop_write(struct dentry *dentry);
403 struct dentry *ovl_workdir(struct dentry *dentry);
406 struct dentry *ovl_indexdir(struct super_block *sb);
415 bool ovl_dentry_remote(struct dentry *dentry);
416 void ovl_dentry_update_reval(struct dentry *dentry, struct dentry *realdentry);
417 void ovl_dentry_init_reval(struct dentry *dentry, struct dentry *upperdentry,
419 void ovl_dentry_init_flags(struct dentry *dentry, struct dentry *upperdentry,
421 bool ovl_dentry_weird(struct dentry *dentry);
422 enum ovl_path_type ovl_path_type(struct dentry *dentry);
423 void ovl_path_upper(struct dentry *dentry, struct path *path);
424 void ovl_path_lower(struct dentry *dentry, struct path *path);
425 void ovl_path_lowerdata(struct dentry *dentry, struct path *path);
427 enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path);
428 enum ovl_path_type ovl_path_realdata(struct dentry *dentry, struct path *path);
429 struct dentry *ovl_dentry_upper(struct dentry *dentry);
430 struct dentry *ovl_dentry_lower(struct dentry *dentry);
431 struct dentry *ovl_dentry_lowerdata(struct dentry *dentry);
432 int ovl_dentry_set_lowerdata(struct dentry *dentry, struct ovl_path *datapath);
434 const struct ovl_layer *ovl_layer_lower(struct dentry *dentry);
435 struct dentry *ovl_dentry_real(struct dentry *dentry);
436 struct dentry *ovl_i_dentry_upper(struct inode *inode);
445 void ovl_dentry_set_flag(unsigned long flag, struct dentry *dentry);
446 void ovl_dentry_clear_flag(unsigned long flag, struct dentry *dentry);
447 bool ovl_dentry_test_flag(unsigned long flag, struct dentry *dentry);
448 bool ovl_dentry_is_opaque(struct dentry *dentry);
449 bool ovl_dentry_is_whiteout(struct dentry *dentry);
450 void ovl_dentry_set_opaque(struct dentry *dentry);
451 bool ovl_dentry_has_upper_alias(struct dentry *dentry);
452 void ovl_dentry_set_upper_alias(struct dentry *dentry);
453 bool ovl_dentry_needs_data_copy_up(struct dentry *dentry, int flags);
454 bool ovl_dentry_needs_data_copy_up_locked(struct dentry *dentry, int flags);
457 const char *ovl_dentry_get_redirect(struct dentry *dentry);
458 void ovl_dentry_set_redirect(struct dentry *dentry, const char *redirect);
459 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry);
460 void ovl_dir_modified(struct dentry *dentry, bool impurity);
462 bool ovl_is_whiteout(struct dentry *dentry);
464 int ovl_copy_up_start(struct dentry *dentry, int flags);
465 void ovl_copy_up_end(struct dentry *dentry);
466 bool ovl_already_copied_up(struct dentry *dentry, int flags);
474 struct dentry *upperdentry) in ovl_check_origin_xattr()
477 .dentry = upperdentry, in ovl_check_origin_xattr()
483 int ovl_check_setxattr(struct ovl_fs *ofs, struct dentry *upperdentry,
486 int ovl_set_impure(struct dentry *dentry, struct dentry *upperdentry);
487 bool ovl_inuse_trylock(struct dentry *dentry);
488 void ovl_inuse_unlock(struct dentry *dentry);
489 bool ovl_is_inuse(struct dentry *dentry);
490 bool ovl_need_index(struct dentry *dentry);
491 int ovl_nlink_start(struct dentry *dentry);
492 void ovl_nlink_end(struct dentry *dentry);
493 int ovl_lock_rename_workdir(struct dentry *workdir, struct dentry *upperdir);
496 int ovl_set_metacopy_xattr(struct ovl_fs *ofs, struct dentry *d,
498 bool ovl_is_metacopy_dentry(struct dentry *dentry);
526 struct dentry *upperdentry) in ovl_is_impuredir()
530 .dentry = upperdentry, in ovl_is_impuredir()
622 struct dentry *ovl_decode_real_fh(struct ovl_fs *ofs, struct ovl_fh *fh,
625 struct dentry *upperdentry, struct ovl_path **stackp);
626 int ovl_verify_set_fh(struct ovl_fs *ofs, struct dentry *dentry,
627 enum ovl_xattr ox, struct dentry *real, bool is_upper,
629 struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index,
631 int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index);
632 int ovl_get_index_name(struct ovl_fs *ofs, struct dentry *origin,
634 struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh);
635 struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper,
636 struct dentry *origin, bool verify);
637 int ovl_path_next(int idx, struct dentry *dentry, struct path *path);
638 int ovl_verify_lowerdata(struct dentry *dentry);
639 struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
641 bool ovl_lower_positive(struct dentry *dentry);
643 static inline int ovl_verify_origin(struct ovl_fs *ofs, struct dentry *upper, in ovl_verify_origin()
644 struct dentry *origin, bool set) in ovl_verify_origin()
650 static inline int ovl_verify_upper(struct ovl_fs *ofs, struct dentry *index, in ovl_verify_upper()
651 struct dentry *upper, bool set) in ovl_verify_upper()
659 int ovl_check_empty_dir(struct dentry *dentry, struct list_head *list);
660 void ovl_cleanup_whiteouts(struct ovl_fs *ofs, struct dentry *upper,
666 struct vfsmount *mnt, struct dentry *dentry, int level);
682 int ovl_set_nlink_upper(struct dentry *dentry);
683 int ovl_set_nlink_lower(struct dentry *dentry);
684 unsigned int ovl_get_nlink(struct ovl_fs *ofs, struct dentry *lowerdentry,
685 struct dentry *upperdentry,
687 int ovl_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
693 int ovl_xattr_set(struct dentry *dentry, struct inode *inode, const char *name,
695 int ovl_xattr_get(struct dentry *dentry, struct inode *inode, const char *name,
697 ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size);
709 struct dentry *dentry, int type) in ovl_get_acl() argument
711 return do_ovl_get_acl(idmap, d_inode(dentry), type, false, false); in ovl_get_acl()
713 int ovl_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
734 struct dentry *upperdentry;
743 struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *real,
745 bool ovl_lookup_trap_inode(struct super_block *sb, struct dentry *dir);
746 struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir);
766 void ovl_check_protattr(struct inode *inode, struct dentry *upper);
767 int ovl_set_protattr(struct inode *inode, struct dentry *upper,
780 struct dentry *dentry);
785 struct dentry *hardlink;
791 struct dentry **newdentry, umode_t mode);
792 struct dentry *ovl_create_real(struct ovl_fs *ofs,
793 struct inode *dir, struct dentry *newdentry,
795 int ovl_cleanup(struct ovl_fs *ofs, struct inode *dir, struct dentry *dentry);
796 struct dentry *ovl_lookup_temp(struct ovl_fs *ofs, struct dentry *workdir);
797 struct dentry *ovl_create_temp(struct ovl_fs *ofs, struct dentry *workdir,
806 int ovl_fileattr_get(struct dentry *dentry, struct fileattr *fa);
808 struct dentry *dentry, struct fileattr *fa);
811 int ovl_copy_up(struct dentry *dentry);
812 int ovl_copy_up_with_data(struct dentry *dentry);
813 int ovl_maybe_copy_up(struct dentry *dentry, int flags);
814 int ovl_copy_xattr(struct super_block *sb, const struct path *path, struct dentry *new);
815 int ovl_set_attr(struct ovl_fs *ofs, struct dentry *upper, struct kstat *stat);
816 struct ovl_fh *ovl_encode_real_fh(struct ovl_fs *ofs, struct dentry *real,
818 int ovl_set_origin(struct ovl_fs *ofs, struct dentry *lower,
819 struct dentry *upper);