diff options
author | Christoph Hellwig <hch@lst.de> | 2025-01-15 12:46:44 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-01-16 13:48:12 +0300 |
commit | 3e652eba244c222b0ba95a3f6fd79315eb020f73 (patch) | |
tree | b3263043b3e9b19a1d1c26d1b7de991c2fb80585 /fs/gfs2 | |
parent | 6f86f1465b595864d4e4c58179f2ebcc3dbf5b62 (diff) | |
download | linux-3e652eba244c222b0ba95a3f6fd79315eb020f73.tar.xz |
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>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/quota.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 72b48f6f5561..58bc5013ca49 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); |