• 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 struct inode *ip = d_inode(dentry); in ovl_do_getxattr()
189 return __vfs_getxattr(dentry, ip, name, value, size, XATTR_NOSECURITY); in ovl_do_getxattr()
192 static inline int ovl_do_setxattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_setxattr() argument
197 int err = vfs_setxattr(dentry, name, value, size, 0); in ovl_do_setxattr()
199 dentry, name, min((int)size, 48), value, size, err); in ovl_do_setxattr()
203 static inline int ovl_do_removexattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_removexattr() argument
207 int err = vfs_removexattr(dentry, name); in ovl_do_removexattr()
208 pr_debug("removexattr(%pd2, \"%s\") = %i\n", dentry, name, err); in ovl_do_removexattr()
212 static inline int ovl_do_rename(struct inode *olddir, struct dentry *olddentry, in ovl_do_rename()
213 struct inode *newdir, struct dentry *newdentry, in ovl_do_rename()
227 static inline int ovl_do_whiteout(struct inode *dir, struct dentry *dentry) in ovl_do_whiteout() argument
229 int err = vfs_whiteout(dir, dentry); in ovl_do_whiteout()
230 pr_debug("whiteout(%pd2) = %i\n", dentry, err); in ovl_do_whiteout()
234 static inline struct dentry *ovl_do_tmpfile(struct dentry *dentry, umode_t mode) in ovl_do_tmpfile() argument
236 struct dentry *ret = vfs_tmpfile(dentry, mode, 0); in ovl_do_tmpfile()
239 pr_debug("tmpfile(%pd2, 0%o) = %i\n", dentry, mode, err); in ovl_do_tmpfile()
252 int ovl_want_write(struct dentry *dentry);
253 void ovl_drop_write(struct dentry *dentry);
254 struct dentry *ovl_workdir(struct dentry *dentry);
258 struct dentry *ovl_indexdir(struct super_block *sb);
262 bool ovl_dentry_remote(struct dentry *dentry);
263 void ovl_dentry_update_reval(struct dentry *dentry, struct dentry *realdentry);
264 void ovl_dentry_init_reval(struct dentry *dentry, struct dentry *upperdentry);
265 void ovl_dentry_init_flags(struct dentry *dentry, struct dentry *upperdentry,
267 bool ovl_dentry_weird(struct dentry *dentry);
268 enum ovl_path_type ovl_path_type(struct dentry *dentry);
269 void ovl_path_upper(struct dentry *dentry, struct path *path);
270 void ovl_path_lower(struct dentry *dentry, struct path *path);
271 void ovl_path_lowerdata(struct dentry *dentry, struct path *path);
272 enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path);
273 struct dentry *ovl_dentry_upper(struct dentry *dentry);
274 struct dentry *ovl_dentry_lower(struct dentry *dentry);
275 struct dentry *ovl_dentry_lowerdata(struct dentry *dentry);
276 const struct ovl_layer *ovl_layer_lower(struct dentry *dentry);
277 struct dentry *ovl_dentry_real(struct dentry *dentry);
278 struct dentry *ovl_i_dentry_upper(struct inode *inode);
286 void ovl_dentry_set_flag(unsigned long flag, struct dentry *dentry);
287 void ovl_dentry_clear_flag(unsigned long flag, struct dentry *dentry);
288 bool ovl_dentry_test_flag(unsigned long flag, struct dentry *dentry);
289 bool ovl_dentry_is_opaque(struct dentry *dentry);
290 bool ovl_dentry_is_whiteout(struct dentry *dentry);
291 void ovl_dentry_set_opaque(struct dentry *dentry);
292 bool ovl_dentry_has_upper_alias(struct dentry *dentry);
293 void ovl_dentry_set_upper_alias(struct dentry *dentry);
294 bool ovl_dentry_needs_data_copy_up(struct dentry *dentry, int flags);
295 bool ovl_dentry_needs_data_copy_up_locked(struct dentry *dentry, int flags);
299 const char *ovl_dentry_get_redirect(struct dentry *dentry);
300 void ovl_dentry_set_redirect(struct dentry *dentry, const char *redirect);
301 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry);
302 void ovl_dir_modified(struct dentry *dentry, bool impurity);
303 u64 ovl_dentry_version_get(struct dentry *dentry);
304 bool ovl_is_whiteout(struct dentry *dentry);
306 int ovl_copy_up_start(struct dentry *dentry, int flags);
307 void ovl_copy_up_end(struct dentry *dentry);
308 bool ovl_already_copied_up(struct dentry *dentry, int flags);
309 bool ovl_check_origin_xattr(struct ovl_fs *ofs, struct dentry *dentry);
310 bool ovl_check_dir_xattr(struct super_block *sb, struct dentry *dentry,
312 int ovl_check_setxattr(struct dentry *dentry, struct dentry *upperdentry,
315 int ovl_set_impure(struct dentry *dentry, struct dentry *upperdentry);
316 bool ovl_inuse_trylock(struct dentry *dentry);
317 void ovl_inuse_unlock(struct dentry *dentry);
318 bool ovl_is_inuse(struct dentry *dentry);
319 bool ovl_need_index(struct dentry *dentry);
320 int ovl_nlink_start(struct dentry *dentry);
321 void ovl_nlink_end(struct dentry *dentry);
322 int ovl_lock_rename_workdir(struct dentry *workdir, struct dentry *upperdir);
323 int ovl_check_metacopy_xattr(struct ovl_fs *ofs, struct dentry *dentry);
324 bool ovl_is_metacopy_dentry(struct dentry *dentry);
325 char *ovl_get_redirect_xattr(struct ovl_fs *ofs, struct dentry *dentry,
345 struct dentry *dentry) in ovl_is_impuredir() argument
347 return ovl_check_dir_xattr(sb, dentry, OVL_XATTR_IMPURE); in ovl_is_impuredir()
404 struct dentry *ovl_decode_real_fh(struct ovl_fh *fh, struct vfsmount *mnt,
407 struct dentry *upperdentry, struct ovl_path **stackp);
408 int ovl_verify_set_fh(struct ovl_fs *ofs, struct dentry *dentry,
409 enum ovl_xattr ox, struct dentry *real, bool is_upper,
411 struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index);
412 int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index);
413 int ovl_get_index_name(struct dentry *origin, struct qstr *name);
414 struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh);
415 struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper,
416 struct dentry *origin, bool verify);
417 int ovl_path_next(int idx, struct dentry *dentry, struct path *path);
418 struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
420 bool ovl_lower_positive(struct dentry *dentry);
422 static inline int ovl_verify_origin(struct ovl_fs *ofs, struct dentry *upper, in ovl_verify_origin()
423 struct dentry *origin, bool set) in ovl_verify_origin()
429 static inline int ovl_verify_upper(struct ovl_fs *ofs, struct dentry *index, in ovl_verify_upper()
430 struct dentry *upper, bool set) in ovl_verify_upper()
438 int ovl_check_empty_dir(struct dentry *dentry, struct list_head *list);
439 void ovl_cleanup_whiteouts(struct dentry *upper, struct list_head *list);
444 struct dentry *dentry, int level);
454 static inline bool ovl_dir_is_real(struct dentry *dir) in ovl_dir_is_real()
460 int ovl_set_nlink_upper(struct dentry *dentry);
461 int ovl_set_nlink_lower(struct dentry *dentry);
462 unsigned int ovl_get_nlink(struct ovl_fs *ofs, struct dentry *lowerdentry,
463 struct dentry *upperdentry,
465 int ovl_setattr(struct dentry *dentry, struct iattr *attr);
469 int ovl_xattr_set(struct dentry *dentry, struct inode *inode, const char *name,
471 int ovl_xattr_get(struct dentry *dentry, struct inode *inode, const char *name,
473 ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size);
480 struct dentry *upperdentry;
485 struct dentry *lowerdata;
490 struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *real,
492 bool ovl_lookup_trap_inode(struct super_block *sb, struct dentry *dir);
493 struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir);
517 struct dentry *dentry);
522 struct dentry *hardlink;
527 int ovl_mkdir_real(struct inode *dir, struct dentry **newdentry, umode_t mode);
528 struct dentry *ovl_create_real(struct inode *dir, struct dentry *newdentry,
530 int ovl_cleanup(struct inode *dir, struct dentry *dentry);
531 struct dentry *ovl_lookup_temp(struct dentry *workdir);
532 struct dentry *ovl_create_temp(struct dentry *workdir, struct ovl_cattr *attr);
542 int ovl_copy_up(struct dentry *dentry);
543 int ovl_copy_up_with_data(struct dentry *dentry);
544 int ovl_maybe_copy_up(struct dentry *dentry, int flags);
545 int ovl_copy_xattr(struct super_block *sb, struct dentry *old,
546 struct dentry *new);
547 int ovl_set_attr(struct dentry *upper, struct kstat *stat);
548 struct ovl_fh *ovl_encode_real_fh(struct dentry *real, bool is_upper);
549 int ovl_set_origin(struct dentry *dentry, struct dentry *lower,
550 struct dentry *upper);