Whamcloud - gitweb
LU-14535 quota: get all quota info in LFS
[fs/lustre-release.git] / lustre / llite / llite_lib.c
index 7e67cf5..4649227 100644 (file)
@@ -226,6 +226,8 @@ static struct ll_sb_info *ll_init_sbi(struct lustre_sb_info *lsi)
        sbi->ll_oc_thrsh_count = SBI_DEFAULT_OPENCACHE_THRESHOLD_COUNT;
        sbi->ll_oc_max_ms = SBI_DEFAULT_OPENCACHE_THRESHOLD_MAX_MS;
        sbi->ll_oc_thrsh_ms = SBI_DEFAULT_OPENCACHE_THRESHOLD_MS;
+
+       INIT_LIST_HEAD(&sbi->ll_all_quota_list);
        RETURN(sbi);
 out_destroy_ra:
        if (sbi->ll_foreign_symlink_prefix)
@@ -1548,6 +1550,8 @@ void ll_put_super(struct super_block *sb)
        CDEBUG(D_VFSTRACE, "VFS Op: cfg_instance %s-%016lx (sb %p)\n",
               profilenm, cfg_instance, sb);
 
+       ll_quota_iter_check_and_cleanup(sbi, false);
+
        cfg.cfg_instance = cfg_instance;
        lustre_end_log(sb, profilenm, &cfg);