Skip to content

Commit 3e652eb

Browse files
Christoph Hellwigbrauner
authored andcommitted
gfs2: use lockref_init for qd_lockref
Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20250115094702.504610-9-hch@lst.de Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 6f86f14 commit 3e652eb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fs/gfs2/quota.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,7 @@ static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, str
236236
return NULL;
237237

238238
qd->qd_sbd = sdp;
239-
qd->qd_lockref.count = 0;
240-
spin_lock_init(&qd->qd_lockref.lock);
239+
lockref_init(&qd->qd_lockref, 0);
241240
qd->qd_id = qid;
242241
qd->qd_slot = -1;
243242
INIT_LIST_HEAD(&qd->qd_lru);

0 commit comments

Comments
 (0)