Skip to content

Commit 3e652eb

Browse files
Christoph Hellwigbrauner
authored andcommitted
gfs2: use lockref_init for qd_lockref
Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 6f86f14 commit 3e652eb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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)