[PATCH 2/3] erofs-utils: erofs_drop_directly_bhops for blob remapping

Gao Xiang xiang at kernel.org
Tue Sep 28 01:04:00 AEST 2021


Easier to understand, no real impact.

Signed-off-by: Gao Xiang <xiang at kernel.org>
---
 lib/blobchunk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/blobchunk.c b/lib/blobchunk.c
index 725b5173a598..661c5d0121a8 100644
--- a/lib/blobchunk.c
+++ b/lib/blobchunk.c
@@ -193,7 +193,7 @@ int erofs_blob_remap(void)
 	remapped_base = erofs_blknr(pos_out);
 	ret = erofs_copy_file_range(fileno(blobfile), &pos_in,
 				    erofs_devfd, &pos_out, length);
-	bh->op = &erofs_skip_write_bhops;
+	bh->op = &erofs_drop_directly_bhops;
 	erofs_bdrop(bh, false);
 	return ret < length ? -EIO : 0;
 }
-- 
2.20.1



More information about the Linux-erofs mailing list