Skip to content

Commit fae2e73

Browse files
author
Andreas Gruenbacher
committed
gfs2: No more quota complaints after withdraw
Once a filesystem is withdrawn, don't complain about quota changes that can't be synced to the main quota file anymore. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent faada74 commit fae2e73

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

fs/gfs2/quota.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,11 @@ static void gfs2_qd_dispose(struct gfs2_quota_data *qd)
124124
hlist_bl_del_rcu(&qd->qd_hlist);
125125
spin_unlock_bucket(qd->qd_hash);
126126

127-
gfs2_assert_warn(sdp, !qd->qd_change);
128-
gfs2_assert_warn(sdp, !qd->qd_slot_count);
129-
gfs2_assert_warn(sdp, !qd->qd_bh_count);
127+
if (!gfs2_withdrawn(sdp)) {
128+
gfs2_assert_warn(sdp, !qd->qd_change);
129+
gfs2_assert_warn(sdp, !qd->qd_slot_count);
130+
gfs2_assert_warn(sdp, !qd->qd_bh_count);
131+
}
130132

131133
gfs2_glock_put(qd->qd_gl);
132134
call_rcu(&qd->qd_rcu, gfs2_qd_dealloc);

0 commit comments

Comments
 (0)