From: Christoph Hellwig Date: Wed, 15 Jan 2025 09:46:44 +0000 (+0100) Subject: gfs2: use lockref_init for qd_lockref X-Git-Tag: v6.14-rc1~216^2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e652eba244c222b0ba95a3f6fd79315eb020f73;p=thirdparty%2Fkernel%2Flinux.git gfs2: use lockref_init for qd_lockref Signed-off-by: Christoph Hellwig Link: https://lore.kernel.org/r/20250115094702.504610-9-hch@lst.de Signed-off-by: Christian Brauner --- diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 72b48f6f55617..58bc5013ca49c 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -236,8 +236,7 @@ static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, str return NULL; qd->qd_sbd = sdp; - qd->qd_lockref.count = 0; - spin_lock_init(&qd->qd_lockref.lock); + lockref_init(&qd->qd_lockref, 0); qd->qd_id = qid; qd->qd_slot = -1; INIT_LIST_HEAD(&qd->qd_lru);