Skip to content

Commit b348c22

Browse files
committed
anolis: erofs: kill the unnecessary kunmap_atomic in erofs_read_raw_page()
ANBZ: torvalds#511 Or unexpected behaviors could happen because erofs_put_metabuf() already does it. It only has bad impacts when using erofs on block devices. Fixes: 6a5a279 ("erofs: introduce meta buffer operations") Reviewed-by: Jeffle Xu <[email protected]> Tested-by: Jeffle Xu <[email protected]> Reviewed-by: Joseph Qi <[email protected]> Signed-off-by: Gao Xiang <[email protected]>
1 parent baa4bee commit b348c22

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/erofs/data.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,7 @@ static inline struct bio *erofs_read_raw_page(struct bio *bio,
371371
memcpy(vto, vsrc + blkoff, map.m_plen);
372372
memset(vto + map.m_plen, 0, PAGE_SIZE - map.m_plen);
373373
kunmap_atomic(vto);
374-
kunmap_atomic(vsrc);
375374
flush_dcache_page(page);
376-
377375
SetPageUptodate(page);
378376

379377
erofs_put_metabuf(&buf);

0 commit comments

Comments
 (0)