Skip to contentSkip to conversation

erofs-utils: get rid of PAGE_SIZE leftovers

PATCH New Gao Xiang 1 participant 1 message Feb 22, 2023 Library code

lore
Share & tools
lore

Gao Xiang

author
#0 lore raw

PATCH 1/1 erofs-utils: get rid of PAGE_SIZE leftovers

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

---
 lib/xattr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/xattr.c +2 -2
index 0ca89a4..024ecbe 100644
@@ -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;
Signature · 1 line
2.24.4