Lines Matching refs:ofs

295 	struct ovl_fs *ofs = fc->s_fs_info;  in ovl_parse_param_upperdir()  local
296 struct ovl_config *config = &ofs->config; in ovl_parse_param_upperdir()
527 struct ovl_fs *ofs = fc->s_fs_info; in ovl_parse_param() local
528 struct ovl_config *config = &ofs->config; in ovl_parse_param()
629 struct ovl_fs *ofs = fc->s_fs_info; in ovl_free() local
638 if (ofs) in ovl_free()
639 ovl_free_fs(ofs); in ovl_free()
648 struct ovl_fs *ofs = OVL_FS(sb); in ovl_reconfigure() local
652 if (!(fc->sb_flags & SB_RDONLY) && ovl_force_readonly(ofs)) in ovl_reconfigure()
656 upper_sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_reconfigure()
657 if (ovl_should_sync(ofs)) { in ovl_reconfigure()
685 struct ovl_fs *ofs; in ovl_init_fs_context() local
700 ofs = kzalloc(sizeof(struct ovl_fs), GFP_KERNEL); in ovl_init_fs_context()
701 if (!ofs) in ovl_init_fs_context()
704 ofs->config.redirect_mode = ovl_redirect_mode_def(); in ovl_init_fs_context()
705 ofs->config.index = ovl_index_def; in ovl_init_fs_context()
706 ofs->config.uuid = ovl_uuid_def(); in ovl_init_fs_context()
707 ofs->config.nfs_export = ovl_nfs_export_def; in ovl_init_fs_context()
708 ofs->config.xino = ovl_xino_def(); in ovl_init_fs_context()
709 ofs->config.metacopy = ovl_metacopy_def; in ovl_init_fs_context()
711 fc->s_fs_info = ofs; in ovl_init_fs_context()
722 void ovl_free_fs(struct ovl_fs *ofs) in ovl_free_fs() argument
727 iput(ofs->workbasedir_trap); in ovl_free_fs()
728 iput(ofs->indexdir_trap); in ovl_free_fs()
729 iput(ofs->workdir_trap); in ovl_free_fs()
730 dput(ofs->whiteout); in ovl_free_fs()
731 dput(ofs->indexdir); in ovl_free_fs()
732 dput(ofs->workdir); in ovl_free_fs()
733 if (ofs->workdir_locked) in ovl_free_fs()
734 ovl_inuse_unlock(ofs->workbasedir); in ovl_free_fs()
735 dput(ofs->workbasedir); in ovl_free_fs()
736 if (ofs->upperdir_locked) in ovl_free_fs()
737 ovl_inuse_unlock(ovl_upper_mnt(ofs)->mnt_root); in ovl_free_fs()
740 mounts = (struct vfsmount **) ofs->config.lowerdirs; in ovl_free_fs()
741 for (i = 0; i < ofs->numlayer; i++) { in ovl_free_fs()
742 iput(ofs->layers[i].trap); in ovl_free_fs()
743 kfree(ofs->config.lowerdirs[i]); in ovl_free_fs()
744 mounts[i] = ofs->layers[i].mnt; in ovl_free_fs()
746 kern_unmount_array(mounts, ofs->numlayer); in ovl_free_fs()
747 kfree(ofs->layers); in ovl_free_fs()
748 for (i = 0; i < ofs->numfs; i++) in ovl_free_fs()
749 free_anon_bdev(ofs->fs[i].pseudo_dev); in ovl_free_fs()
750 kfree(ofs->fs); in ovl_free_fs()
752 kfree(ofs->config.lowerdirs); in ovl_free_fs()
753 kfree(ofs->config.upperdir); in ovl_free_fs()
754 kfree(ofs->config.workdir); in ovl_free_fs()
755 if (ofs->creator_cred) in ovl_free_fs()
756 put_cred(ofs->creator_cred); in ovl_free_fs()
757 kfree(ofs); in ovl_free_fs()
935 struct ovl_fs *ofs = OVL_FS(sb); in ovl_show_options() local
936 size_t nr, nr_merged_lower = ofs->numlayer - ofs->numdatalayer; in ovl_show_options()
947 for (nr = 1; nr < ofs->numlayer; nr++) { in ovl_show_options()
952 seq_escape(m, ofs->config.lowerdirs[nr], ":, \t\n\\"); in ovl_show_options()
954 if (ofs->config.upperdir) { in ovl_show_options()
955 seq_show_option(m, "upperdir", ofs->config.upperdir); in ovl_show_options()
956 seq_show_option(m, "workdir", ofs->config.workdir); in ovl_show_options()
958 if (ofs->config.default_permissions) in ovl_show_options()
960 if (ofs->config.redirect_mode != ovl_redirect_mode_def()) in ovl_show_options()
962 ovl_redirect_mode(&ofs->config)); in ovl_show_options()
963 if (ofs->config.index != ovl_index_def) in ovl_show_options()
964 seq_printf(m, ",index=%s", ofs->config.index ? "on" : "off"); in ovl_show_options()
965 if (ofs->config.uuid != ovl_uuid_def()) in ovl_show_options()
966 seq_printf(m, ",uuid=%s", ovl_uuid_mode(&ofs->config)); in ovl_show_options()
967 if (ofs->config.nfs_export != ovl_nfs_export_def) in ovl_show_options()
968 seq_printf(m, ",nfs_export=%s", ofs->config.nfs_export ? in ovl_show_options()
970 if (ofs->config.xino != ovl_xino_def() && !ovl_same_fs(ofs)) in ovl_show_options()
971 seq_printf(m, ",xino=%s", ovl_xino_mode(&ofs->config)); in ovl_show_options()
972 if (ofs->config.metacopy != ovl_metacopy_def) in ovl_show_options()
974 ofs->config.metacopy ? "on" : "off"); in ovl_show_options()
975 if (ofs->config.ovl_volatile) in ovl_show_options()
977 if (ofs->config.userxattr) in ovl_show_options()
979 if (ofs->config.verity_mode != ovl_verity_mode_def()) in ovl_show_options()
981 ovl_verity_mode(&ofs->config)); in ovl_show_options()