summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2022-10-31 20:33:40 +0100
committerDavid Sterba <dsterba@suse.com>2022-12-05 18:00:51 +0100
commit9e5e6d4e2e5e37e28bf2be85fa08761e33aa5efb (patch)
treef3c883c16713758055df48cb9bdc687a9a151b2e
parentbtrfs: send: bump the extent reference count limit for backref walking (diff)
downloadlinux-9e5e6d4e2e5e37e28bf2be85fa08761e33aa5efb.tar.xz
linux-9e5e6d4e2e5e37e28bf2be85fa08761e33aa5efb.zip
btrfs: zlib: use copy_page for full page copy
The copy_page helper may use an optimized version for full page copy (eg. on s390 there's a special instruction for that), there's one more left to convert. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/zlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/zlib.c b/fs/btrfs/zlib.c
index b4f44662cda7..c5275cb23837 100644
--- a/fs/btrfs/zlib.c
+++ b/fs/btrfs/zlib.c
@@ -155,8 +155,8 @@ int zlib_compress_pages(struct list_head *ws, struct address_space *mapping,
in_page = find_get_page(mapping,
start >> PAGE_SHIFT);
data_in = kmap_local_page(in_page);
- memcpy(workspace->buf + i * PAGE_SIZE,
- data_in, PAGE_SIZE);
+ copy_page(workspace->buf + i * PAGE_SIZE,
+ data_in);
start += PAGE_SIZE;
}
workspace->strm.next_in = workspace->buf;