Lines Matching refs:dentry

122 static inline int ovl_do_rmdir(struct inode *dir, struct dentry *dentry)
124 int err = vfs_rmdir(dir, dentry);
126 pr_debug("rmdir(%pd2) = %i\n", dentry, err);
130 static inline int ovl_do_unlink(struct inode *dir, struct dentry *dentry)
132 int err = vfs_unlink(dir, dentry, NULL);
134 pr_debug("unlink(%pd2) = %i\n", dentry, err);
138 static inline int ovl_do_link(struct dentry *old_dentry, struct inode *dir,
139 struct dentry *new_dentry)
147 static inline int ovl_do_create(struct inode *dir, struct dentry *dentry,
150 int err = vfs_create(dir, dentry, mode, true);
152 pr_debug("create(%pd2, 0%o) = %i\n", dentry, mode, err);
156 static inline int ovl_do_mkdir(struct inode *dir, struct dentry *dentry,
159 int err = vfs_mkdir(dir, dentry, mode);
160 pr_debug("mkdir(%pd2, 0%o) = %i\n", dentry, mode, err);
164 static inline int ovl_do_mknod(struct inode *dir, struct dentry *dentry,
167 int err = vfs_mknod(dir, dentry, mode, dev);
169 pr_debug("mknod(%pd2, 0%o, 0%o) = %i\n", dentry, mode, dev, err);
173 static inline int ovl_do_symlink(struct inode *dir, struct dentry *dentry,
176 int err = vfs_symlink(dir, dentry, oldname);
178 pr_debug("symlink(\"%s\", %pd2) = %i\n", oldname, dentry, err);
182 static inline ssize_t ovl_do_getxattr(struct ovl_fs *ofs, struct dentry *dentry,
187 return vfs_getxattr(dentry, name, value, size);
190 static inline int ovl_do_setxattr(struct ovl_fs *ofs, struct dentry *dentry,
195 int err = vfs_setxattr(dentry, name, value, size, 0);
197 dentry, name, min((int)size, 48), value, size, err);
201 static inline int ovl_do_removexattr(struct ovl_fs *ofs, struct dentry *dentry,
205 int err = vfs_removexattr(dentry, name);
206 pr_debug("removexattr(%pd2, \"%s\") = %i\n", dentry, name, err);
210 static inline int ovl_do_rename(struct inode *olddir, struct dentry *olddentry,
211 struct inode *newdir, struct dentry *newdentry,
225 static inline int ovl_do_whiteout(struct inode *dir, struct dentry *dentry)
227 int err = vfs_whiteout(dir, dentry);
228 pr_debug("whiteout(%pd2) = %i\n", dentry, err);
232 static inline struct dentry *ovl_do_tmpfile(struct dentry *dentry, umode_t mode)
234 struct dentry *ret = vfs_tmpfile(dentry, mode, 0);
237 pr_debug("tmpfile(%pd2, 0%o) = %i\n", dentry, mode, err);
250 int ovl_want_write(struct dentry *dentry);
251 void ovl_drop_write(struct dentry *dentry);
252 struct dentry *ovl_workdir(struct dentry *dentry);
255 struct dentry *ovl_indexdir(struct super_block *sb);
259 bool ovl_dentry_remote(struct dentry *dentry);
260 void ovl_dentry_update_reval(struct dentry *dentry, struct dentry *realdentry);
261 void ovl_dentry_init_reval(struct dentry *dentry, struct dentry *upperdentry);
262 void ovl_dentry_init_flags(struct dentry *dentry, struct dentry *upperdentry,
264 bool ovl_dentry_weird(struct dentry *dentry);
265 enum ovl_path_type ovl_path_type(struct dentry *dentry);
266 void ovl_path_upper(struct dentry *dentry, struct path *path);
267 void ovl_path_lower(struct dentry *dentry, struct path *path);
268 void ovl_path_lowerdata(struct dentry *dentry, struct path *path);
269 enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path);
270 struct dentry *ovl_dentry_upper(struct dentry *dentry);
271 struct dentry *ovl_dentry_lower(struct dentry *dentry);
272 struct dentry *ovl_dentry_lowerdata(struct dentry *dentry);
273 const struct ovl_layer *ovl_layer_lower(struct dentry *dentry);
274 struct dentry *ovl_dentry_real(struct dentry *dentry);
275 struct dentry *ovl_i_dentry_upper(struct inode *inode);
283 void ovl_dentry_set_flag(unsigned long flag, struct dentry *dentry);
284 void ovl_dentry_clear_flag(unsigned long flag, struct dentry *dentry);
285 bool ovl_dentry_test_flag(unsigned long flag, struct dentry *dentry);
286 bool ovl_dentry_is_opaque(struct dentry *dentry);
287 bool ovl_dentry_is_whiteout(struct dentry *dentry);
288 void ovl_dentry_set_opaque(struct dentry *dentry);
289 bool ovl_dentry_has_upper_alias(struct dentry *dentry);
290 void ovl_dentry_set_upper_alias(struct dentry *dentry);
291 bool ovl_dentry_needs_data_copy_up(struct dentry *dentry, int flags);
292 bool ovl_dentry_needs_data_copy_up_locked(struct dentry *dentry, int flags);
296 const char *ovl_dentry_get_redirect(struct dentry *dentry);
297 void ovl_dentry_set_redirect(struct dentry *dentry, const char *redirect);
298 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry);
299 void ovl_dir_modified(struct dentry *dentry, bool impurity);
300 u64 ovl_dentry_version_get(struct dentry *dentry);
301 bool ovl_is_whiteout(struct dentry *dentry);
303 int ovl_copy_up_start(struct dentry *dentry, int flags);
304 void ovl_copy_up_end(struct dentry *dentry);
305 bool ovl_already_copied_up(struct dentry *dentry, int flags);
306 bool ovl_check_origin_xattr(struct ovl_fs *ofs, struct dentry *dentry);
307 bool ovl_check_dir_xattr(struct super_block *sb, struct dentry *dentry,
309 int ovl_check_setxattr(struct dentry *dentry, struct dentry *upperdentry,
312 int ovl_set_impure(struct dentry *dentry, struct dentry *upperdentry);
313 bool ovl_inuse_trylock(struct dentry *dentry);
314 void ovl_inuse_unlock(struct dentry *dentry);
315 bool ovl_is_inuse(struct dentry *dentry);
316 bool ovl_need_index(struct dentry *dentry);
317 int ovl_nlink_start(struct dentry *dentry);
318 void ovl_nlink_end(struct dentry *dentry);
319 int ovl_lock_rename_workdir(struct dentry *workdir, struct dentry *upperdir);
320 int ovl_check_metacopy_xattr(struct ovl_fs *ofs, struct dentry *dentry);
321 bool ovl_is_metacopy_dentry(struct dentry *dentry);
322 char *ovl_get_redirect_xattr(struct ovl_fs *ofs, struct dentry *dentry,
342 struct dentry *dentry)
344 return ovl_check_dir_xattr(sb, dentry, OVL_XATTR_IMPURE);
401 struct dentry *ovl_decode_real_fh(struct ovl_fh *fh, struct vfsmount *mnt,
404 struct dentry *upperdentry, struct ovl_path **stackp);
405 int ovl_verify_set_fh(struct ovl_fs *ofs, struct dentry *dentry,
406 enum ovl_xattr ox, struct dentry *real, bool is_upper,
408 struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index);
409 int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index);
410 int ovl_get_index_name(struct dentry *origin, struct qstr *name);
411 struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh);
412 struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper,
413 struct dentry *origin, bool verify);
414 int ovl_path_next(int idx, struct dentry *dentry, struct path *path);
415 struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
417 bool ovl_lower_positive(struct dentry *dentry);
419 static inline int ovl_verify_origin(struct ovl_fs *ofs, struct dentry *upper,
420 struct dentry *origin, bool set)
426 static inline int ovl_verify_upper(struct ovl_fs *ofs, struct dentry *index,
427 struct dentry *upper, bool set)
435 int ovl_check_empty_dir(struct dentry *dentry, struct list_head *list);
436 void ovl_cleanup_whiteouts(struct dentry *upper, struct list_head *list);
441 struct dentry *dentry, int level);
451 static inline bool ovl_dir_is_real(struct dentry *dir)
457 int ovl_set_nlink_upper(struct dentry *dentry);
458 int ovl_set_nlink_lower(struct dentry *dentry);
459 unsigned int ovl_get_nlink(struct ovl_fs *ofs, struct dentry *lowerdentry,
460 struct dentry *upperdentry,
462 int ovl_setattr(struct dentry *dentry, struct iattr *attr);
466 int ovl_xattr_set(struct dentry *dentry, struct inode *inode, const char *name,
468 int ovl_xattr_get(struct dentry *dentry, struct inode *inode, const char *name,
470 ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size);
477 struct dentry *upperdentry;
482 struct dentry *lowerdata;
487 struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *real,
489 bool ovl_lookup_trap_inode(struct super_block *sb, struct dentry *dir);
490 struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir);
514 struct dentry *dentry);
519 struct dentry *hardlink;
524 int ovl_mkdir_real(struct inode *dir, struct dentry **newdentry, umode_t mode);
525 struct dentry *ovl_create_real(struct inode *dir, struct dentry *newdentry,
527 int ovl_cleanup(struct inode *dir, struct dentry *dentry);
528 struct dentry *ovl_lookup_temp(struct dentry *workdir);
529 struct dentry *ovl_create_temp(struct dentry *workdir, struct ovl_cattr *attr);
539 int ovl_copy_up(struct dentry *dentry);
540 int ovl_copy_up_with_data(struct dentry *dentry);
541 int ovl_maybe_copy_up(struct dentry *dentry, int flags);
542 int ovl_copy_xattr(struct super_block *sb, struct dentry *old,
543 struct dentry *new);
544 int ovl_set_attr(struct dentry *upper, struct kstat *stat);
545 struct ovl_fh *ovl_encode_real_fh(struct dentry *real, bool is_upper);
546 int ovl_set_origin(struct dentry *dentry, struct dentry *lower,
547 struct dentry *upper);