Lines Matching refs:ofs
20 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_want_write() local
21 return mnt_want_write(ovl_upper_mnt(ofs)); in ovl_want_write()
26 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_drop_write() local
27 mnt_drop_write(ovl_upper_mnt(ofs)); in ovl_drop_write()
32 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_workdir() local
33 return ofs->workdir; in ovl_workdir()
38 struct ovl_fs *ofs = sb->s_fs_info; in ovl_override_creds() local
40 if (!ofs->config.override_creds) in ovl_override_creds()
42 return override_creds(ofs->creator_cred); in ovl_override_creds()
69 struct ovl_fs *ofs = sb->s_fs_info; in ovl_indexdir() local
71 return ofs->indexdir; in ovl_indexdir()
77 struct ovl_fs *ofs = sb->s_fs_info; in ovl_index_all() local
79 return ofs->config.nfs_export && ofs->config.index; in ovl_index_all()
85 struct ovl_fs *ofs = sb->s_fs_info; in ovl_verify_lower() local
87 return ofs->config.nfs_export && ofs->config.index; in ovl_verify_lower()
159 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_path_upper() local
161 path->mnt = ovl_upper_mnt(ofs); in ovl_path_upper()
395 struct ovl_fs *ofs = sb->s_fs_info; in ovl_redirect_dir() local
397 return ofs->config.redirect_dir && !ofs->noxattr; in ovl_redirect_dir()
557 bool ovl_check_origin_xattr(struct ovl_fs *ofs, struct dentry *dentry) in ovl_check_origin_xattr() argument
561 res = ovl_do_getxattr(ofs, dentry, OVL_XATTR_ORIGIN, NULL, 0); in ovl_check_origin_xattr()
612 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_check_setxattr() local
614 if (ofs->noxattr) in ovl_check_setxattr()
617 err = ovl_do_setxattr(ofs, upperdentry, ox, value, size); in ovl_check_setxattr()
620 pr_warn("cannot set %s xattr on upper\n", ovl_xattr(ofs, ox)); in ovl_check_setxattr()
621 ofs->noxattr = true; in ovl_check_setxattr()
865 int ovl_check_metacopy_xattr(struct ovl_fs *ofs, struct dentry *dentry) in ovl_check_metacopy_xattr() argument
873 res = ovl_do_getxattr(ofs, dentry, OVL_XATTR_METACOPY, NULL, 0); in ovl_check_metacopy_xattr()
902 char *ovl_get_redirect_xattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_get_redirect_xattr() argument
908 res = ovl_do_getxattr(ofs, dentry, OVL_XATTR_REDIRECT, NULL, 0); in ovl_get_redirect_xattr()
920 res = ovl_do_getxattr(ofs, dentry, OVL_XATTR_REDIRECT, buf, res); in ovl_get_redirect_xattr()
962 int ovl_sync_status(struct ovl_fs *ofs) in ovl_sync_status() argument
966 if (ovl_should_sync(ofs)) in ovl_sync_status()
969 mnt = ovl_upper_mnt(ofs); in ovl_sync_status()
973 return errseq_check(&mnt->mnt_sb->s_wb_err, ofs->errseq); in ovl_sync_status()