erofs-utils: get rid of PAGE_SIZE leftovers
PATCH 1/1 erofs-utils: get rid of PAGE_SIZE leftovers
commit c47df5aa2d16 ("erofs-utils: fuse: introduce xattr support") introduced two new references.
Signed-off-by Gao Xiang <[email protected]>
--- lib/xattr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/xattr.c +2 -2
@@ -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