Lines Matching refs:dentry

139 				       struct dentry *upperdentry,  in ovl_do_notify_change()
146 struct inode *dir, struct dentry *dentry) in ovl_do_rmdir() argument
148 int err = vfs_rmdir(ovl_upper_mnt_userns(ofs), dir, dentry); in ovl_do_rmdir()
150 pr_debug("rmdir(%pd2) = %i\n", dentry, err); in ovl_do_rmdir()
155 struct dentry *dentry) in ovl_do_unlink() argument
157 int err = vfs_unlink(ovl_upper_mnt_userns(ofs), dir, dentry, NULL); in ovl_do_unlink()
159 pr_debug("unlink(%pd2) = %i\n", dentry, err); in ovl_do_unlink()
163 static inline int ovl_do_link(struct ovl_fs *ofs, struct dentry *old_dentry, in ovl_do_link()
164 struct inode *dir, struct dentry *new_dentry) in ovl_do_link()
173 struct inode *dir, struct dentry *dentry, in ovl_do_create() argument
176 int err = vfs_create(ovl_upper_mnt_userns(ofs), dir, dentry, mode, true); in ovl_do_create()
178 pr_debug("create(%pd2, 0%o) = %i\n", dentry, mode, err); in ovl_do_create()
183 struct inode *dir, struct dentry *dentry, in ovl_do_mkdir() argument
186 int err = vfs_mkdir(ovl_upper_mnt_userns(ofs), dir, dentry, mode); in ovl_do_mkdir()
187 pr_debug("mkdir(%pd2, 0%o) = %i\n", dentry, mode, err); in ovl_do_mkdir()
192 struct inode *dir, struct dentry *dentry, in ovl_do_mknod() argument
195 int err = vfs_mknod(ovl_upper_mnt_userns(ofs), dir, dentry, mode, dev); in ovl_do_mknod()
197 pr_debug("mknod(%pd2, 0%o, 0%o) = %i\n", dentry, mode, dev, err); in ovl_do_mknod()
202 struct inode *dir, struct dentry *dentry, in ovl_do_symlink() argument
205 int err = vfs_symlink(ovl_upper_mnt_userns(ofs), dir, dentry, oldname); in ovl_do_symlink()
207 pr_debug("symlink(\"%s\", %pd2) = %i\n", oldname, dentry, err); in ovl_do_symlink()
216 WARN_ON(path->dentry->d_sb != path->mnt->mnt_sb); in ovl_do_getxattr()
218 err = vfs_getxattr(mnt_user_ns(path->mnt), path->dentry, in ovl_do_getxattr()
223 path->dentry, name, min(len, 48), value, size, err); in ovl_do_getxattr()
228 struct dentry *upperdentry, in ovl_getxattr_upper()
233 .dentry = upperdentry, in ovl_getxattr_upper()
248 static inline int ovl_do_setxattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_setxattr() argument
252 int err = vfs_setxattr(ovl_upper_mnt_userns(ofs), dentry, name, in ovl_do_setxattr()
256 dentry, name, min((int)size, 48), value, size, flags, err); in ovl_do_setxattr()
260 static inline int ovl_setxattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_setxattr() argument
264 return ovl_do_setxattr(ofs, dentry, ovl_xattr(ofs, ox), value, size, 0); in ovl_setxattr()
267 static inline int ovl_do_removexattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_removexattr() argument
270 int err = vfs_removexattr(ovl_upper_mnt_userns(ofs), dentry, name); in ovl_do_removexattr()
271 pr_debug("removexattr(%pd2, \"%s\") = %i\n", dentry, name, err); in ovl_do_removexattr()
275 static inline int ovl_removexattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_removexattr() argument
278 return ovl_do_removexattr(ofs, dentry, ovl_xattr(ofs, ox)); in ovl_removexattr()
282 struct dentry *olddentry, struct inode *newdir, in ovl_do_rename()
283 struct dentry *newdentry, unsigned int flags) in ovl_do_rename()
306 struct inode *dir, struct dentry *dentry) in ovl_do_whiteout() argument
308 int err = vfs_whiteout(ovl_upper_mnt_userns(ofs), dir, dentry); in ovl_do_whiteout()
309 pr_debug("whiteout(%pd2) = %i\n", dentry, err); in ovl_do_whiteout()
314 struct dentry *dentry, umode_t mode) in ovl_do_tmpfile() argument
316 struct path path = { .mnt = ovl_upper_mnt(ofs), .dentry = dentry }; in ovl_do_tmpfile()
321 pr_debug("tmpfile(%pd2, 0%o) = %i\n", dentry, mode, err); in ovl_do_tmpfile()
325 static inline struct dentry *ovl_lookup_upper(struct ovl_fs *ofs, in ovl_lookup_upper()
327 struct dentry *base, int len) in ovl_lookup_upper()
353 int ovl_want_write(struct dentry *dentry);
354 void ovl_drop_write(struct dentry *dentry);
355 struct dentry *ovl_workdir(struct dentry *dentry);
358 struct dentry *ovl_indexdir(struct super_block *sb);
362 bool ovl_dentry_remote(struct dentry *dentry);
363 void ovl_dentry_update_reval(struct dentry *dentry, struct dentry *upperdentry,
365 bool ovl_dentry_weird(struct dentry *dentry);
366 enum ovl_path_type ovl_path_type(struct dentry *dentry);
367 void ovl_path_upper(struct dentry *dentry, struct path *path);
368 void ovl_path_lower(struct dentry *dentry, struct path *path);
369 void ovl_path_lowerdata(struct dentry *dentry, struct path *path);
371 enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path);
372 enum ovl_path_type ovl_path_realdata(struct dentry *dentry, struct path *path);
373 struct dentry *ovl_dentry_upper(struct dentry *dentry);
374 struct dentry *ovl_dentry_lower(struct dentry *dentry);
375 struct dentry *ovl_dentry_lowerdata(struct dentry *dentry);
377 const struct ovl_layer *ovl_layer_lower(struct dentry *dentry);
378 struct dentry *ovl_dentry_real(struct dentry *dentry);
379 struct dentry *ovl_i_dentry_upper(struct inode *inode);
387 void ovl_dentry_set_flag(unsigned long flag, struct dentry *dentry);
388 void ovl_dentry_clear_flag(unsigned long flag, struct dentry *dentry);
389 bool ovl_dentry_test_flag(unsigned long flag, struct dentry *dentry);
390 bool ovl_dentry_is_opaque(struct dentry *dentry);
391 bool ovl_dentry_is_whiteout(struct dentry *dentry);
392 void ovl_dentry_set_opaque(struct dentry *dentry);
393 bool ovl_dentry_has_upper_alias(struct dentry *dentry);
394 void ovl_dentry_set_upper_alias(struct dentry *dentry);
395 bool ovl_dentry_needs_data_copy_up(struct dentry *dentry, int flags);
396 bool ovl_dentry_needs_data_copy_up_locked(struct dentry *dentry, int flags);
400 const char *ovl_dentry_get_redirect(struct dentry *dentry);
401 void ovl_dentry_set_redirect(struct dentry *dentry, const char *redirect);
402 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry);
403 void ovl_dir_modified(struct dentry *dentry, bool impurity);
404 u64 ovl_dentry_version_get(struct dentry *dentry);
405 bool ovl_is_whiteout(struct dentry *dentry);
407 int ovl_copy_up_start(struct dentry *dentry, int flags);
408 void ovl_copy_up_end(struct dentry *dentry);
409 bool ovl_already_copied_up(struct dentry *dentry, int flags);
415 struct dentry *upperdentry) in ovl_check_origin_xattr()
418 .dentry = upperdentry, in ovl_check_origin_xattr()
424 int ovl_check_setxattr(struct ovl_fs *ofs, struct dentry *upperdentry,
427 int ovl_set_impure(struct dentry *dentry, struct dentry *upperdentry);
428 bool ovl_inuse_trylock(struct dentry *dentry);
429 void ovl_inuse_unlock(struct dentry *dentry);
430 bool ovl_is_inuse(struct dentry *dentry);
431 bool ovl_need_index(struct dentry *dentry);
432 int ovl_nlink_start(struct dentry *dentry);
433 void ovl_nlink_end(struct dentry *dentry);
434 int ovl_lock_rename_workdir(struct dentry *workdir, struct dentry *upperdir);
436 bool ovl_is_metacopy_dentry(struct dentry *dentry);
456 struct dentry *upperdentry) in ovl_is_impuredir()
460 .dentry = upperdentry, in ovl_is_impuredir()
521 struct dentry *ovl_decode_real_fh(struct ovl_fs *ofs, struct ovl_fh *fh,
524 struct dentry *upperdentry, struct ovl_path **stackp);
525 int ovl_verify_set_fh(struct ovl_fs *ofs, struct dentry *dentry,
526 enum ovl_xattr ox, struct dentry *real, bool is_upper,
528 struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index);
529 int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index);
530 int ovl_get_index_name(struct ovl_fs *ofs, struct dentry *origin,
532 struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh);
533 struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper,
534 struct dentry *origin, bool verify);
535 int ovl_path_next(int idx, struct dentry *dentry, struct path *path);
536 struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
538 bool ovl_lower_positive(struct dentry *dentry);
540 static inline int ovl_verify_origin(struct ovl_fs *ofs, struct dentry *upper, in ovl_verify_origin()
541 struct dentry *origin, bool set) in ovl_verify_origin()
547 static inline int ovl_verify_upper(struct ovl_fs *ofs, struct dentry *index, in ovl_verify_upper()
548 struct dentry *upper, bool set) in ovl_verify_upper()
556 int ovl_check_empty_dir(struct dentry *dentry, struct list_head *list);
557 void ovl_cleanup_whiteouts(struct ovl_fs *ofs, struct dentry *upper,
563 struct vfsmount *mnt, struct dentry *dentry, int level);
573 static inline bool ovl_dir_is_real(struct dentry *dir) in ovl_dir_is_real()
579 int ovl_set_nlink_upper(struct dentry *dentry);
580 int ovl_set_nlink_lower(struct dentry *dentry);
581 unsigned int ovl_get_nlink(struct ovl_fs *ofs, struct dentry *lowerdentry,
582 struct dentry *upperdentry,
584 int ovl_setattr(struct user_namespace *mnt_userns, struct dentry *dentry,
590 int ovl_xattr_set(struct dentry *dentry, struct inode *inode, const char *name,
592 int ovl_xattr_get(struct dentry *dentry, struct inode *inode, const char *name,
594 ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size);
607 struct dentry *upperdentry;
612 struct dentry *lowerdata;
617 struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *real,
619 bool ovl_lookup_trap_inode(struct super_block *sb, struct dentry *dir);
620 struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir);
640 void ovl_check_protattr(struct inode *inode, struct dentry *upper);
641 int ovl_set_protattr(struct inode *inode, struct dentry *upper,
654 struct dentry *dentry);
659 struct dentry *hardlink;
665 struct dentry **newdentry, umode_t mode);
666 struct dentry *ovl_create_real(struct ovl_fs *ofs,
667 struct inode *dir, struct dentry *newdentry,
669 int ovl_cleanup(struct ovl_fs *ofs, struct inode *dir, struct dentry *dentry);
670 struct dentry *ovl_lookup_temp(struct ovl_fs *ofs, struct dentry *workdir);
671 struct dentry *ovl_create_temp(struct ovl_fs *ofs, struct dentry *workdir,
680 int ovl_fileattr_get(struct dentry *dentry, struct fileattr *fa);
682 struct dentry *dentry, struct fileattr *fa);
685 int ovl_copy_up(struct dentry *dentry);
686 int ovl_copy_up_with_data(struct dentry *dentry);
687 int ovl_maybe_copy_up(struct dentry *dentry, int flags);
688 int ovl_copy_xattr(struct super_block *sb, const struct path *path, struct dentry *new);
689 int ovl_set_attr(struct ovl_fs *ofs, struct dentry *upper, struct kstat *stat);
690 struct ovl_fh *ovl_encode_real_fh(struct ovl_fs *ofs, struct dentry *real,
692 int ovl_set_origin(struct ovl_fs *ofs, struct dentry *lower,
693 struct dentry *upper);