Lines Matching refs:ofs
120 static inline const char *ovl_xattr(struct ovl_fs *ofs, enum ovl_xattr ox) in ovl_xattr() argument
122 return ovl_xattr_table[ox][ofs->config.userxattr]; in ovl_xattr()
185 static inline ssize_t ovl_do_getxattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_getxattr() argument
189 const char *name = ovl_xattr(ofs, ox); in ovl_do_getxattr()
198 static inline int ovl_do_setxattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_setxattr() argument
202 const char *name = ovl_xattr(ofs, ox); in ovl_do_setxattr()
209 static inline int ovl_do_removexattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_do_removexattr() argument
212 const char *name = ovl_xattr(ofs, ox); in ovl_do_removexattr()
266 static inline bool ovl_allow_offline_changes(struct ovl_fs *ofs) in ovl_allow_offline_changes() argument
273 return (!ofs->config.index && !ofs->config.metacopy && in ovl_allow_offline_changes()
274 !ofs->config.redirect_dir && ofs->config.xino != OVL_XINO_ON); in ovl_allow_offline_changes()
333 bool ovl_check_origin_xattr(struct ovl_fs *ofs, struct dentry *dentry);
336 int ovl_check_setxattr(struct ovl_fs *ofs, struct dentry *upperdentry,
347 int ovl_check_metacopy_xattr(struct ovl_fs *ofs, struct dentry *dentry);
349 char *ovl_get_redirect_xattr(struct ovl_fs *ofs, struct dentry *dentry,
351 int ovl_sync_status(struct ovl_fs *ofs);
428 struct dentry *ovl_decode_real_fh(struct ovl_fs *ofs, struct ovl_fh *fh,
430 int ovl_check_origin_fh(struct ovl_fs *ofs, struct ovl_fh *fh, bool connected,
432 int ovl_verify_set_fh(struct ovl_fs *ofs, struct dentry *dentry,
435 struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index);
436 int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index);
437 int ovl_get_index_name(struct ovl_fs *ofs, struct dentry *origin,
439 struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh);
440 struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper,
447 static inline int ovl_verify_origin(struct ovl_fs *ofs, struct dentry *upper, in ovl_verify_origin() argument
450 return ovl_verify_set_fh(ofs, upper, OVL_XATTR_ORIGIN, origin, in ovl_verify_origin()
454 static inline int ovl_verify_upper(struct ovl_fs *ofs, struct dentry *index, in ovl_verify_upper() argument
457 return ovl_verify_set_fh(ofs, index, OVL_XATTR_UPPER, upper, true, set); in ovl_verify_upper()
470 int ovl_indexdir_cleanup(struct ovl_fs *ofs);
487 unsigned int ovl_get_nlink(struct ovl_fs *ofs, struct dentry *lowerdentry,
562 int ovl_cleanup_and_whiteout(struct ovl_fs *ofs, struct inode *dir,
597 struct ovl_fh *ovl_encode_real_fh(struct ovl_fs *ofs, struct dentry *real,
599 int ovl_set_origin(struct ovl_fs *ofs, struct dentry *lower,