We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c32b87 commit 6f86f14Copy full SHA for 6f86f14
fs/erofs/zdata.c
@@ -747,8 +747,7 @@ static int z_erofs_register_pcluster(struct z_erofs_decompress_frontend *fe)
747
if (IS_ERR(pcl))
748
return PTR_ERR(pcl);
749
750
- spin_lock_init(&pcl->lockref.lock);
751
- pcl->lockref.count = 1; /* one ref for this request */
+ lockref_init(&pcl->lockref, 1); /* one ref for this request */
752
pcl->algorithmformat = map->m_algorithmformat;
753
pcl->length = 0;
754
pcl->partial = true;
0 commit comments