Lines Matching refs:dentry

185 				       struct dentry *upperdentry,
192 struct inode *dir, struct dentry *dentry)
194 int err = vfs_rmdir(ovl_upper_mnt_idmap(ofs), dir, dentry);
196 pr_debug("rmdir(%pd2) = %i\n", dentry, err);
201 struct dentry *dentry)
203 int err = vfs_unlink(ovl_upper_mnt_idmap(ofs), dir, dentry, NULL);
205 pr_debug("unlink(%pd2) = %i\n", dentry, err);
209 static inline int ovl_do_link(struct ovl_fs *ofs, struct dentry *old_dentry,
210 struct inode *dir, struct dentry *new_dentry)
220 struct inode *dir, struct dentry *dentry,
223 int err = vfs_create(ovl_upper_mnt_idmap(ofs), dir, dentry, mode, true);
225 pr_debug("create(%pd2, 0%o) = %i\n", dentry, mode, err);
230 struct inode *dir, struct dentry *dentry,
233 int err = vfs_mkdir(ovl_upper_mnt_idmap(ofs), dir, dentry, mode);
234 pr_debug("mkdir(%pd2, 0%o) = %i\n", dentry, mode, err);
239 struct inode *dir, struct dentry *dentry,
242 int err = vfs_mknod(ovl_upper_mnt_idmap(ofs), dir, dentry, mode, dev);
244 pr_debug("mknod(%pd2, 0%o, 0%o) = %i\n", dentry, mode, dev, err);
249 struct inode *dir, struct dentry *dentry,
252 int err = vfs_symlink(ovl_upper_mnt_idmap(ofs), dir, dentry, oldname);
254 pr_debug("symlink(\"%s\", %pd2) = %i\n", oldname, dentry, err);
263 WARN_ON(path->dentry->d_sb != path->mnt->mnt_sb);
265 err = vfs_getxattr(mnt_idmap(path->mnt), path->dentry,
270 path->dentry, name, min(len, 48), value, size, err);
275 struct dentry *upperdentry,
280 .dentry = upperdentry,
295 static inline int ovl_do_setxattr(struct ovl_fs *ofs, struct dentry *dentry,
299 int err = vfs_setxattr(ovl_upper_mnt_idmap(ofs), dentry, name,
303 dentry, name, min((int)size, 48), value, size, flags, err);
307 static inline int ovl_setxattr(struct ovl_fs *ofs, struct dentry *dentry,
311 return ovl_do_setxattr(ofs, dentry, ovl_xattr(ofs, ox), value, size, 0);
314 static inline int ovl_do_removexattr(struct ovl_fs *ofs, struct dentry *dentry,
317 int err = vfs_removexattr(ovl_upper_mnt_idmap(ofs), dentry, name);
318 pr_debug("removexattr(%pd2, \"%s\") = %i\n", dentry, name, err);
322 static inline int ovl_removexattr(struct ovl_fs *ofs, struct dentry *dentry,
325 return ovl_do_removexattr(ofs, dentry, ovl_xattr(ofs, ox));
328 static inline int ovl_do_set_acl(struct ovl_fs *ofs, struct dentry *dentry,
331 return vfs_set_acl(ovl_upper_mnt_idmap(ofs), dentry, acl_name, acl);
334 static inline int ovl_do_remove_acl(struct ovl_fs *ofs, struct dentry *dentry,
337 return vfs_remove_acl(ovl_upper_mnt_idmap(ofs), dentry, acl_name);
341 struct dentry *olddentry, struct inode *newdir,
342 struct dentry *newdentry, unsigned int flags)
365 struct inode *dir, struct dentry *dentry)
367 int err = vfs_whiteout(ovl_upper_mnt_idmap(ofs), dir, dentry);
368 pr_debug("whiteout(%pd2) = %i\n", dentry, err);
373 struct dentry *dentry, umode_t mode)
375 struct path path = { .mnt = ovl_upper_mnt(ofs), .dentry = dentry };
381 pr_debug("tmpfile(%pd2, 0%o) = %i\n", dentry, mode, err);
385 static inline struct dentry *ovl_lookup_upper(struct ovl_fs *ofs,
387 struct dentry *base, int len)
409 int ovl_want_write(struct dentry *dentry);
410 void ovl_drop_write(struct dentry *dentry);
411 struct dentry *ovl_workdir(struct dentry *dentry);
414 struct dentry *ovl_indexdir(struct super_block *sb);
423 bool ovl_dentry_remote(struct dentry *dentry);
424 void ovl_dentry_update_reval(struct dentry *dentry, struct dentry *realdentry);
425 void ovl_dentry_init_reval(struct dentry *dentry, struct dentry *upperdentry,
427 void ovl_dentry_init_flags(struct dentry *dentry, struct dentry *upperdentry,
429 bool ovl_dentry_weird(struct dentry *dentry);
430 enum ovl_path_type ovl_path_type(struct dentry *dentry);
431 void ovl_path_upper(struct dentry *dentry, struct path *path);
432 void ovl_path_lower(struct dentry *dentry, struct path *path);
433 void ovl_path_lowerdata(struct dentry *dentry, struct path *path);
435 enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path);
436 enum ovl_path_type ovl_path_realdata(struct dentry *dentry, struct path *path);
437 struct dentry *ovl_dentry_upper(struct dentry *dentry);
438 struct dentry *ovl_dentry_lower(struct dentry *dentry);
439 struct dentry *ovl_dentry_lowerdata(struct dentry *dentry);
440 int ovl_dentry_set_lowerdata(struct dentry *dentry, struct ovl_path *datapath);
442 const struct ovl_layer *ovl_layer_lower(struct dentry *dentry);
443 struct dentry *ovl_dentry_real(struct dentry *dentry);
444 struct dentry *ovl_i_dentry_upper(struct inode *inode);
453 void ovl_dentry_set_flag(unsigned long flag, struct dentry *dentry);
454 void ovl_dentry_clear_flag(unsigned long flag, struct dentry *dentry);
455 bool ovl_dentry_test_flag(unsigned long flag, struct dentry *dentry);
456 bool ovl_dentry_is_opaque(struct dentry *dentry);
457 bool ovl_dentry_is_whiteout(struct dentry *dentry);
458 void ovl_dentry_set_opaque(struct dentry *dentry);
459 bool ovl_dentry_has_upper_alias(struct dentry *dentry);
460 void ovl_dentry_set_upper_alias(struct dentry *dentry);
461 bool ovl_dentry_needs_data_copy_up(struct dentry *dentry, int flags);
462 bool ovl_dentry_needs_data_copy_up_locked(struct dentry *dentry, int flags);
465 const char *ovl_dentry_get_redirect(struct dentry *dentry);
466 void ovl_dentry_set_redirect(struct dentry *dentry, const char *redirect);
467 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry);
468 void ovl_dir_modified(struct dentry *dentry, bool impurity);
470 bool ovl_is_whiteout(struct dentry *dentry);
472 int ovl_copy_up_start(struct dentry *dentry, int flags);
473 void ovl_copy_up_end(struct dentry *dentry);
474 bool ovl_already_copied_up(struct dentry *dentry, int flags);
482 struct dentry *upperdentry)
485 .dentry = upperdentry,
491 int ovl_check_setxattr(struct ovl_fs *ofs, struct dentry *upperdentry,
494 int ovl_set_impure(struct dentry *dentry, struct dentry *upperdentry);
495 bool ovl_inuse_trylock(struct dentry *dentry);
496 void ovl_inuse_unlock(struct dentry *dentry);
497 bool ovl_is_inuse(struct dentry *dentry);
498 bool ovl_need_index(struct dentry *dentry);
499 int ovl_nlink_start(struct dentry *dentry);
500 void ovl_nlink_end(struct dentry *dentry);
501 int ovl_lock_rename_workdir(struct dentry *workdir, struct dentry *upperdir);
504 int ovl_set_metacopy_xattr(struct ovl_fs *ofs, struct dentry *d,
506 bool ovl_is_metacopy_dentry(struct dentry *dentry);
534 struct dentry *upperdentry)
538 .dentry = upperdentry,
630 struct dentry *ovl_decode_real_fh(struct ovl_fs *ofs, struct ovl_fh *fh,
633 struct dentry *upperdentry, struct ovl_path **stackp);
634 int ovl_verify_set_fh(struct ovl_fs *ofs, struct dentry *dentry,
635 enum ovl_xattr ox, struct dentry *real, bool is_upper,
637 struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index,
639 int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index);
640 int ovl_get_index_name(struct ovl_fs *ofs, struct dentry *origin,
642 struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh);
643 struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper,
644 struct dentry *origin, bool verify);
645 int ovl_path_next(int idx, struct dentry *dentry, struct path *path);
646 int ovl_verify_lowerdata(struct dentry *dentry);
647 struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
649 bool ovl_lower_positive(struct dentry *dentry);
651 static inline int ovl_verify_origin(struct ovl_fs *ofs, struct dentry *upper,
652 struct dentry *origin, bool set)
658 static inline int ovl_verify_upper(struct ovl_fs *ofs, struct dentry *index,
659 struct dentry *upper, bool set)
667 int ovl_check_empty_dir(struct dentry *dentry, struct list_head *list);
668 void ovl_cleanup_whiteouts(struct ovl_fs *ofs, struct dentry *upper,
674 struct vfsmount *mnt, struct dentry *dentry, int level);
690 int ovl_set_nlink_upper(struct dentry *dentry);
691 int ovl_set_nlink_lower(struct dentry *dentry);
692 unsigned int ovl_get_nlink(struct ovl_fs *ofs, struct dentry *lowerdentry,
693 struct dentry *upperdentry,
695 int ovl_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
701 int ovl_xattr_set(struct dentry *dentry, struct inode *inode, const char *name,
703 int ovl_xattr_get(struct dentry *dentry, struct inode *inode, const char *name,
705 ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size);
717 struct dentry *dentry, int type)
719 return do_ovl_get_acl(idmap, d_inode(dentry), type, false, false);
721 int ovl_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
742 struct dentry *upperdentry;
751 struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *real,
753 bool ovl_lookup_trap_inode(struct super_block *sb, struct dentry *dir);
754 struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir);
774 void ovl_check_protattr(struct inode *inode, struct dentry *upper);
775 int ovl_set_protattr(struct inode *inode, struct dentry *upper,
788 struct dentry *dentry);
793 struct dentry *hardlink;
799 struct dentry **newdentry, umode_t mode);
800 struct dentry *ovl_create_real(struct ovl_fs *ofs,
801 struct inode *dir, struct dentry *newdentry,
803 int ovl_cleanup(struct ovl_fs *ofs, struct inode *dir, struct dentry *dentry);
804 struct dentry *ovl_lookup_temp(struct ovl_fs *ofs, struct dentry *workdir);
805 struct dentry *ovl_create_temp(struct ovl_fs *ofs, struct dentry *workdir,
814 int ovl_fileattr_get(struct dentry *dentry, struct fileattr *fa);
816 struct dentry *dentry, struct fileattr *fa);
819 int ovl_copy_up(struct dentry *dentry);
820 int ovl_copy_up_with_data(struct dentry *dentry);
821 int ovl_maybe_copy_up(struct dentry *dentry, int flags);
822 int ovl_copy_xattr(struct super_block *sb, const struct path *path, struct dentry *new);
823 int ovl_set_attr(struct ovl_fs *ofs, struct dentry *upper, struct kstat *stat);
824 struct ovl_fh *ovl_encode_real_fh(struct ovl_fs *ofs, struct dentry *real,
826 int ovl_set_origin(struct ovl_fs *ofs, struct dentry *lower,
827 struct dentry *upper);