diff options
author | Gao Xiang <hsiangkao@linux.alibaba.com> | 2023-02-23 03:08:14 +0800 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2023-02-23 03:16:30 +0800 |
commit | 5653f1a6c08bb3d6fe08c98ce6372a103de8f3ef (patch) | |
tree | 84d931bcc76165b49f89ebe67f0054c37e120a00 | |
parent | b1dfb6ec46b91bb49f7498446409e5b9fa3e169a (diff) | |
download | erofs-utils-5653f1a6c08bb3d6fe08c98ce6372a103de8f3ef.tar.gz |
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 <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230222190814.102585-1-hsiangkao@linux.alibaba.com
-rw-r--r-- | lib/xattr.c | 4 |
1 files 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; |