[PATCH] erofs-utils: get rid of PAGE_SIZE leftovers

Gao Xiang hsiangkao at linux.alibaba.com
Thu Feb 23 06:08:14 AEDT 2023


commit c47df5aa2d16 ("erofs-utils: fuse: introduce xattr support")
introduced two new references.

Signed-off-by: Gao Xiang <hsiangkao at linux.alibaba.com>
---
 lib/xattr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/xattr.c b/lib/xattr.c
index 0ca89a4..024ecbe 100644
--- a/lib/xattr.c
+++ b/lib/xattr.c
@@ -915,7 +915,7 @@ static int xattr_foreach(struct xattr_iter *it,
 			it->ofs = 0;
 		}
 
-		slice = min_t(unsigned int, PAGE_SIZE - it->ofs,
+		slice = min_t(unsigned int, EROFS_BLKSIZ - it->ofs,
 			      entry.e_name_len - processed);
 
 		/* handle name */
@@ -950,7 +950,7 @@ static int xattr_foreach(struct xattr_iter *it,
 			it->ofs = 0;
 		}
 
-		slice = min_t(unsigned int, PAGE_SIZE - it->ofs,
+		slice = min_t(unsigned int, EROFS_BLKSIZ - it->ofs,
 			      value_sz - processed);
 		op->value(it, processed, it->kaddr + it->ofs, slice);
 		it->ofs += slice;
-- 
2.24.4



More information about the Linux-erofs mailing list