Lines Matching refs:ofs
316 struct ovl_fs *ofs = OVL_FS(rdd->dentry->d_sb); in ovl_fill_merge() local
321 if (ofs->casefold) in ovl_fill_merge()
438 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_dir_read_merged() local
443 if (ofs->casefold) in ovl_dir_read_merged()
555 struct ovl_fs *ofs = OVL_FS(dir->d_sb); in ovl_cache_update() local
559 int xinobits = ovl_xino_bits(ofs); in ovl_cache_update()
562 if (!ovl_same_dev(ofs) && !p->check_xwhiteout) in ovl_cache_update()
590 if (!ovl_same_dev(ofs) || !update_ino) in ovl_cache_update()
615 ovl_xino_warn(ofs)); in ovl_cache_update()
698 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_cache_get_impure() local
725 ovl_removexattr(ofs, ovl_dentry_upper(dentry), in ovl_cache_get_impure()
798 struct ovl_fs *ofs = OVL_FS(dir->d_sb); in ovl_iterate_real() local
804 .xinobits = ovl_xino_bits(ofs), in ovl_iterate_real()
805 .xinowarn = ovl_xino_warn(ofs), in ovl_iterate_real()
878 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_need_adjust_d_ino() local
881 if (ovl_xino_bits(ofs)) in ovl_need_adjust_d_ino()
885 if (!ovl_same_fs(ofs)) in ovl_need_adjust_d_ino()
1114 void ovl_cleanup_whiteouts(struct ovl_fs *ofs, struct dentry *upper, in ovl_cleanup_whiteouts() argument
1125 dentry = ovl_lookup_upper_unlocked(ofs, p->name, upper, p->len); in ovl_cleanup_whiteouts()
1133 ovl_cleanup(ofs, upper, dentry); in ovl_cleanup_whiteouts()
1177 static int ovl_workdir_cleanup_recurse(struct ovl_fs *ofs, const struct path *path, in ovl_workdir_cleanup_recurse() argument
1217 dentry = ovl_lookup_upper_unlocked(ofs, p->name, path->dentry, p->len); in ovl_workdir_cleanup_recurse()
1221 err = ovl_workdir_cleanup(ofs, path->dentry, path->mnt, in ovl_workdir_cleanup_recurse()
1232 int ovl_workdir_cleanup(struct ovl_fs *ofs, struct dentry *parent, in ovl_workdir_cleanup() argument
1238 return ovl_cleanup(ofs, parent, dentry); in ovl_workdir_cleanup()
1243 err = ovl_do_rmdir(ofs, parent->d_inode, dentry); in ovl_workdir_cleanup()
1248 err = ovl_workdir_cleanup_recurse(ofs, &path, level + 1); in ovl_workdir_cleanup()
1250 err = ovl_cleanup(ofs, parent, dentry); in ovl_workdir_cleanup()
1256 int ovl_indexdir_cleanup(struct ovl_fs *ofs) in ovl_indexdir_cleanup() argument
1259 struct dentry *indexdir = ofs->workdir; in ovl_indexdir_cleanup()
1261 struct path path = { .mnt = ovl_upper_mnt(ofs), .dentry = indexdir }; in ovl_indexdir_cleanup()
1277 index = ovl_lookup_upper_unlocked(ofs, p->name, indexdir, p->len); in ovl_indexdir_cleanup()
1285 err = ovl_workdir_cleanup(ofs, indexdir, path.mnt, index, 1); in ovl_indexdir_cleanup()
1290 err = ovl_verify_index(ofs, index); in ovl_indexdir_cleanup()
1295 err = ovl_cleanup(ofs, indexdir, index); in ovl_indexdir_cleanup()
1303 } else if (ofs->config.nfs_export) { in ovl_indexdir_cleanup()
1308 err = ovl_cleanup_and_whiteout(ofs, indexdir, index); in ovl_indexdir_cleanup()
1311 err = ovl_cleanup(ofs, indexdir, index); in ovl_indexdir_cleanup()