Lines Matching refs:ofs
21 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_want_write() local
22 return mnt_want_write(ovl_upper_mnt(ofs)); in ovl_want_write()
27 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_drop_write() local
28 mnt_drop_write(ovl_upper_mnt(ofs)); in ovl_drop_write()
33 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_workdir() local
34 return ofs->workdir; in ovl_workdir()
39 struct ovl_fs *ofs = sb->s_fs_info; in ovl_override_creds() local
41 return override_creds(ofs->creator_cred); in ovl_override_creds()
65 struct ovl_fs *ofs = sb->s_fs_info; in ovl_indexdir() local
67 return ofs->indexdir; in ovl_indexdir()
73 struct ovl_fs *ofs = sb->s_fs_info; in ovl_index_all() local
75 return ofs->config.nfs_export && ofs->config.index; in ovl_index_all()
81 struct ovl_fs *ofs = sb->s_fs_info; in ovl_verify_lower() local
83 return ofs->config.nfs_export && ofs->config.index; in ovl_verify_lower()
155 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_path_upper() local
157 path->mnt = ovl_upper_mnt(ofs); in ovl_path_upper()
391 struct ovl_fs *ofs = sb->s_fs_info; in ovl_redirect_dir() local
393 return ofs->config.redirect_dir && !ofs->noxattr; in ovl_redirect_dir()
553 bool ovl_check_origin_xattr(struct ovl_fs *ofs, struct dentry *dentry) in ovl_check_origin_xattr() argument
557 res = ovl_do_getxattr(ofs, dentry, OVL_XATTR_ORIGIN, NULL, 0); in ovl_check_origin_xattr()
606 int ovl_check_setxattr(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_check_setxattr() argument
612 if (ofs->noxattr) in ovl_check_setxattr()
615 err = ovl_do_setxattr(ofs, upperdentry, ox, value, size); in ovl_check_setxattr()
618 pr_warn("cannot set %s xattr on upper\n", ovl_xattr(ofs, ox)); in ovl_check_setxattr()
619 ofs->noxattr = true; in ovl_check_setxattr()
628 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_set_impure() local
638 err = ovl_check_setxattr(ofs, upperdentry, OVL_XATTR_IMPURE, "y", 1, 0); in ovl_set_impure()
650 struct ovl_fs *ofs = OVL_FS(inode->i_sb); in ovl_check_protattr() local
655 res = ovl_do_getxattr(ofs, upper, OVL_XATTR_PROTATTR, buf, in ovl_check_protattr()
686 struct ovl_fs *ofs = OVL_FS(inode->i_sb); in ovl_set_protattr() local
708 err = ovl_check_setxattr(ofs, upper, OVL_XATTR_PROTATTR, in ovl_set_protattr()
711 err = ovl_do_removexattr(ofs, upper, OVL_XATTR_PROTATTR); in ovl_set_protattr()
794 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_cleanup_index() local
804 err = ovl_get_index_name(ofs, lowerdentry, &name); in ovl_cleanup_index()
946 int ovl_check_metacopy_xattr(struct ovl_fs *ofs, struct dentry *dentry) in ovl_check_metacopy_xattr() argument
954 res = ovl_do_getxattr(ofs, dentry, OVL_XATTR_METACOPY, NULL, 0); in ovl_check_metacopy_xattr()
963 if (ofs->config.userxattr && res == -EACCES) in ovl_check_metacopy_xattr()
990 char *ovl_get_redirect_xattr(struct ovl_fs *ofs, struct dentry *dentry, in ovl_get_redirect_xattr() argument
996 res = ovl_do_getxattr(ofs, dentry, OVL_XATTR_REDIRECT, NULL, 0); in ovl_get_redirect_xattr()
1008 res = ovl_do_getxattr(ofs, dentry, OVL_XATTR_REDIRECT, buf, res); in ovl_get_redirect_xattr()
1050 int ovl_sync_status(struct ovl_fs *ofs) in ovl_sync_status() argument
1054 if (ovl_should_sync(ofs)) in ovl_sync_status()
1057 mnt = ovl_upper_mnt(ofs); in ovl_sync_status()
1061 return errseq_check(&mnt->mnt_sb->s_wb_err, ofs->errseq); in ovl_sync_status()