diff options
author | Christoph Hellwig <hch@lst.de> | 2025-01-15 10:46:43 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-01-16 11:48:12 +0100 |
commit | 6f86f1465b595864d4e4c58179f2ebcc3dbf5b62 (patch) | |
tree | f2b1db26825668ce177a59a6cb4e99838eb0bbe4 /fs/erofs | |
parent | 8c32b87c4f885fab3c9b2378a3f855dbf280fbca (diff) |
erofs: use lockref_init for pcl->lockref
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250115094702.504610-8-hch@lst.de
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/erofs')
-rw-r--r-- | fs/erofs/zdata.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c index 01f147505487..59f143d9744f 100644 --- a/fs/erofs/zdata.c +++ b/fs/erofs/zdata.c @@ -747,8 +747,7 @@ static int z_erofs_register_pcluster(struct z_erofs_decompress_frontend *fe) if (IS_ERR(pcl)) return PTR_ERR(pcl); - spin_lock_init(&pcl->lockref.lock); - pcl->lockref.count = 1; /* one ref for this request */ + lockref_init(&pcl->lockref, 1); /* one ref for this request */ pcl->algorithmformat = map->m_algorithmformat; pcl->length = 0; pcl->partial = true; |