]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gfs2: Check quota consistency on mount
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 3 Jun 2024 16:45:00 +0000 (18:45 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 7 Jun 2024 20:36:16 +0000 (22:36 +0200)
commitde0d95c26c41c1776e4d23b1a8b3f2bcfd1dae5f
tree4b124a391c7148d12b5fddb5b98c51b66e250cd9
parent51316523d1f233c1cea182d4cccbc3b22ef75d87
gfs2: Check quota consistency on mount

In gfs2_quota_init(), make sure that the per-node "quota_change%u" file
doesn't contain duplicate uids/gids.  Those duplicates would cause us to
acquire the glock corresponding to those ids repeatedly, which the glock
code doesn't allow.

When finding inconsistencies, we wipe them out and ignore them.  The
resulting quotas will likely be inconsistent, and running quotacheck(1)
is advised.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/quota.c