Unverified Commit 3e652eba authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Christian Brauner
Browse files

gfs2: use lockref_init for qd_lockref

parent 6f86f146
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);