• Home
  • Raw
  • Download

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 return vfs_getxattr(dentry, name, value, size); in ovl_do_getxattr()
190 static inline int ovl_do_setxattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_setxattr() argument
195 int err = vfs_setxattr(dentry, name, value, size, 0); in ovl_do_setxattr()
197 dentry, name, min((int)size, 48), value, size, err); in ovl_do_setxattr()
201 static inline int ovl_do_removexattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_removexattr() argument
205 int err = vfs_removexattr(dentry, name); in ovl_do_removexattr()
206 pr_debug("removexattr(%pd2, \"%s\") = %i\n", dentry, name, err); in ovl_do_removexattr()
210 static inline int ovl_do_rename(struct inode *olddir, struct dentry *olddentry, in ovl_do_rename()
211 struct inode *newdir, struct dentry *newdentry, in ovl_do_rename()
225 static inline int ovl_do_whiteout(struct inode *dir, struct dentry *dentry) in ovl_do_whiteout() argument
227 int err = vfs_whiteout(dir, dentry); in ovl_do_whiteout()
228 pr_debug("whiteout(%pd2) = %i\n", dentry, err); in ovl_do_whiteout()
232 static inline struct dentry *ovl_do_tmpfile(struct dentry *dentry, umode_t mode) in ovl_do_tmpfile() argument
234 struct dentry *ret = vfs_tmpfile(dentry, mode, 0); in ovl_do_tmpfile()
237 pr_debug("tmpfile(%pd2, 0%o) = %i\n", dentry, mode, err); in ovl_do_tmpfile()
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 *upperdentry,
262 bool ovl_dentry_weird(struct dentry *dentry);
263 enum ovl_path_type ovl_path_type(struct dentry *dentry);
264 void ovl_path_upper(struct dentry *dentry, struct path *path);
265 void ovl_path_lower(struct dentry *dentry, struct path *path);
266 void ovl_path_lowerdata(struct dentry *dentry, struct path *path);
267 enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path);
268 struct dentry *ovl_dentry_upper(struct dentry *dentry);
269 struct dentry *ovl_dentry_lower(struct dentry *dentry);
270 struct dentry *ovl_dentry_lowerdata(struct dentry *dentry);
271 const struct ovl_layer *ovl_layer_lower(struct dentry *dentry);
272 struct dentry *ovl_dentry_real(struct dentry *dentry);
273 struct dentry *ovl_i_dentry_upper(struct inode *inode);
281 void ovl_dentry_set_flag(unsigned long flag, struct dentry *dentry);
282 void ovl_dentry_clear_flag(unsigned long flag, struct dentry *dentry);
283 bool ovl_dentry_test_flag(unsigned long flag, struct dentry *dentry);
284 bool ovl_dentry_is_opaque(struct dentry *dentry);
285 bool ovl_dentry_is_whiteout(struct dentry *dentry);
286 void ovl_dentry_set_opaque(struct dentry *dentry);
287 bool ovl_dentry_has_upper_alias(struct dentry *dentry);
288 void ovl_dentry_set_upper_alias(struct dentry *dentry);
289 bool ovl_dentry_needs_data_copy_up(struct dentry *dentry, int flags);
290 bool ovl_dentry_needs_data_copy_up_locked(struct dentry *dentry, int flags);
294 const char *ovl_dentry_get_redirect(struct dentry *dentry);
295 void ovl_dentry_set_redirect(struct dentry *dentry, const char *redirect);
296 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry);
297 void ovl_dir_modified(struct dentry *dentry, bool impurity);
298 u64 ovl_dentry_version_get(struct dentry *dentry);
299 bool ovl_is_whiteout(struct dentry *dentry);
301 int ovl_copy_up_start(struct dentry *dentry, int flags);
302 void ovl_copy_up_end(struct dentry *dentry);
303 bool ovl_already_copied_up(struct dentry *dentry, int flags);
304 bool ovl_check_origin_xattr(struct ovl_fs *ofs, struct dentry *dentry);
305 bool ovl_check_dir_xattr(struct super_block *sb, struct dentry *dentry,
307 int ovl_check_setxattr(struct dentry *dentry, struct dentry *upperdentry,
310 int ovl_set_impure(struct dentry *dentry, struct dentry *upperdentry);
311 bool ovl_inuse_trylock(struct dentry *dentry);
312 void ovl_inuse_unlock(struct dentry *dentry);
313 bool ovl_is_inuse(struct dentry *dentry);
314 bool ovl_need_index(struct dentry *dentry);
315 int ovl_nlink_start(struct dentry *dentry);
316 void ovl_nlink_end(struct dentry *dentry);
317 int ovl_lock_rename_workdir(struct dentry *workdir, struct dentry *upperdir);
318 int ovl_check_metacopy_xattr(struct ovl_fs *ofs, struct dentry *dentry);
319 bool ovl_is_metacopy_dentry(struct dentry *dentry);
320 char *ovl_get_redirect_xattr(struct ovl_fs *ofs, struct dentry *dentry,
340 struct dentry *dentry) in ovl_is_impuredir() argument
342 return ovl_check_dir_xattr(sb, dentry, OVL_XATTR_IMPURE); in ovl_is_impuredir()
399 struct dentry *ovl_decode_real_fh(struct ovl_fh *fh, struct vfsmount *mnt,
402 struct dentry *upperdentry, struct ovl_path **stackp);
403 int ovl_verify_set_fh(struct ovl_fs *ofs, struct dentry *dentry,
404 enum ovl_xattr ox, struct dentry *real, bool is_upper,
406 struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index);
407 int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index);
408 int ovl_get_index_name(struct dentry *origin, struct qstr *name);
409 struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh);
410 struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper,
411 struct dentry *origin, bool verify);
412 int ovl_path_next(int idx, struct dentry *dentry, struct path *path);
413 struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
415 bool ovl_lower_positive(struct dentry *dentry);
417 static inline int ovl_verify_origin(struct ovl_fs *ofs, struct dentry *upper, in ovl_verify_origin()
418 struct dentry *origin, bool set) in ovl_verify_origin()
424 static inline int ovl_verify_upper(struct ovl_fs *ofs, struct dentry *index, in ovl_verify_upper()
425 struct dentry *upper, bool set) in ovl_verify_upper()
433 int ovl_check_empty_dir(struct dentry *dentry, struct list_head *list);
434 void ovl_cleanup_whiteouts(struct dentry *upper, struct list_head *list);
439 struct dentry *dentry, int level);
449 static inline bool ovl_dir_is_real(struct dentry *dir) in ovl_dir_is_real()
455 int ovl_set_nlink_upper(struct dentry *dentry);
456 int ovl_set_nlink_lower(struct dentry *dentry);
457 unsigned int ovl_get_nlink(struct ovl_fs *ofs, struct dentry *lowerdentry,
458 struct dentry *upperdentry,
460 int ovl_setattr(struct dentry *dentry, struct iattr *attr);
464 int ovl_xattr_set(struct dentry *dentry, struct inode *inode, const char *name,
466 int ovl_xattr_get(struct dentry *dentry, struct inode *inode, const char *name,
468 ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size);
475 struct dentry *upperdentry;
480 struct dentry *lowerdata;
485 struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *real,
487 bool ovl_lookup_trap_inode(struct super_block *sb, struct dentry *dir);
488 struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir);
512 struct dentry *dentry);
517 struct dentry *hardlink;
522 int ovl_mkdir_real(struct inode *dir, struct dentry **newdentry, umode_t mode);
523 struct dentry *ovl_create_real(struct inode *dir, struct dentry *newdentry,
525 int ovl_cleanup(struct inode *dir, struct dentry *dentry);
526 struct dentry *ovl_lookup_temp(struct dentry *workdir);
527 struct dentry *ovl_create_temp(struct dentry *workdir, struct ovl_cattr *attr);
537 int ovl_copy_up(struct dentry *dentry);
538 int ovl_copy_up_with_data(struct dentry *dentry);
539 int ovl_maybe_copy_up(struct dentry *dentry, int flags);
540 int ovl_copy_xattr(struct super_block *sb, struct dentry *old,
541 struct dentry *new);
542 int ovl_set_attr(struct dentry *upper, struct kstat *stat);
543 struct ovl_fh *ovl_encode_real_fh(struct dentry *real, bool is_upper);
544 int ovl_set_origin(struct dentry *dentry, struct dentry *lower,
545 struct dentry *upper);