]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
gfs2: use lockref_init for qd_lockref
authorChristoph Hellwig <hch@lst.de>
Wed, 15 Jan 2025 09:46:44 +0000 (10:46 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 16 Jan 2025 10:48:12 +0000 (11:48 +0100)
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>
fs/gfs2/quota.c

index 72b48f6f556175a1143b5c1c41249969e591c2e7..58bc5013ca49ccbffd8a120eb1a1b5918ec55275 100644 (file)
@@ -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);