]> www.infradead.org Git - users/hch/xfs.git/commit
gfs2: use lockref_init for gl_lockref
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 30 Jan 2025 13:56:21 +0000 (14:56 +0100)
committerChristian Brauner <brauner@kernel.org>
Fri, 7 Feb 2025 09:27:25 +0000 (10:27 +0100)
commitd9b3a3c70df2c2b87c83ca3f6e8ab49bd092fdbd
treeacc847b5b2f08e396549d5d04e58d80ff7f17bfd
parente52e97f09fb66fd868260d05bd6b74a9a3db39ee
gfs2: use lockref_init for gl_lockref

Move the initialization of gl_lockref from gfs2_init_glock_once() to
gfs2_glock_get().  This allows to use lockref_init() there.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Link: https://lore.kernel.org/r/20250130135624.1899988-2-agruenba@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/gfs2/glock.c
fs/gfs2/main.c