Skip to content

Commit 5587a81

Browse files
Al Virohsiangkao
authored andcommitted
z_erofs_pcluster_begin(): don't bother with rounding position down
... and be more idiomatic when calculating ->pageofs_in. Signed-off-by: Al Viro <[email protected]> Link: https://lore.kernel.org/r/20240425200017.GF1031757@ZenIV [ Gao Xiang: don't use `offset_in_page(mptr)` due to EROFS_NO_KMAP. ] Signed-off-by: Gao Xiang <[email protected]>
1 parent 4afe6b8 commit 5587a81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/erofs/zdata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ static int z_erofs_pcluster_begin(struct z_erofs_decompress_frontend *fe)
868868
} else {
869869
void *mptr;
870870

871-
mptr = erofs_read_metabuf(&map->buf, sb, erofs_pos(sb, blknr), EROFS_NO_KMAP);
871+
mptr = erofs_read_metabuf(&map->buf, sb, map->m_pa, EROFS_NO_KMAP);
872872
if (IS_ERR(mptr)) {
873873
ret = PTR_ERR(mptr);
874874
erofs_err(sb, "failed to get inline data %d", ret);

0 commit comments

Comments
 (0)