Skip to content
Unverified Commit 34ad6fa2 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Christian Brauner
Browse files

gfs2: switch to lockref_init(..., 1)



In qd_alloc(), initialize the lockref count to 1 to cover the common
case.  Compensate for that in gfs2_quota_init() by adjusting the count
back down to 0; this only occurs when mounting the filesystem rw.

Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
Link: https://lore.kernel.org/r/20250130135624.1899988-3-agruenba@redhat.com


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent d9b3a3c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment