btrfs-use-larger-zlib-buffer-for-s390-hardware-compression.patch removed from -mm tree
The patch titled
Subject: btrfs: use larger zlib buffer for s390 hardware compression
has been removed from the -mm tree. Its filename was
btrfs-use-larger-zlib-buffer-for-s390-hardware-compression.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Mikhail Zaslonko <[email protected]>
Subject: btrfs: use larger zlib buffer for s390 hardware compression
In order to benefit from s390 zlib hardware compression support, increase the btrfs zlib workspace buffer size from 1 to 4 pages (if s390 zlib hardware support is enabled on the machine). This brings up to 60% better performance in hardware on s390 compared to the PAGE_SIZE buffer and much more compared to the software zlib processing in btrfs. In case of memory pressure, fall back to a single page buffer during workspace allocation.
The data compressed with larger input buffers will still conform to zlib standard and thus can be decompressed also on a systems that uses only PAGE_SIZE buffer for btrfs zlib.
---
fs/btrfs/compression.c | 2 fs/btrfs/zlib.c | 135 ++++++++++++++++++++++++++++----------- 2 files changed, 101 insertions(+), 36 deletions(-)
fs/btrfs/compression.c renamed from fs/btrfs/compression.c~btrfs-use-larger-zlib-buffer-for-s390-hardware-compression +1 -1
@@ -1290,7 +1290,7 @@ int btrfs_decompress_buf2page(const char/* copy bytes from the working buffer into the pages */ while (working_bytes >0 ) { bytes = min_t(unsigned long, bvec.bv_len, -PAGE_SIZE - buf_offset); +PAGE_SIZE - (buf_offset %PAGE_SIZE )); bytes =min (bytes, working_bytes); kaddr =kmap_atomic (bvec.bv_page);
fs/btrfs/zlib.c renamed from fs/btrfs/zlib.c~btrfs-use-larger-zlib-buffer-for-s390-hardware-compression +100 -35
211 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are