aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorBongkyu Kim <bongkyu.kim@lge.com>2016-01-20 15:01:08 -0800
committerMichael Bestas <mkbestas@lineageos.org>2018-06-10 14:59:14 +0300
commit1df757e5a72b3b92a0d6cab76e6590e4a3135758 (patch)
tree2d892d921eddcd927c5f438997f7c7eaddff3e7c /net/lapb/lapb_in.c
parent780b21fb3bf8916031153d2d7f923b9f32954dc1 (diff)
UPSTREAM: lz4: fix wrong compress buffer size for 64-bits
(cherry picked from commit 06af1c52c9ea234e0b1266cc0b52c3e0c6c8fe9f) The current lz4 compress buffer is 16kb on 32-bits, 32kb on 64-bits system. But, lz4 needs only 16kb on both. On 64-bits, this causes wasted cpu cycles for additional memset during every compression. In case of lz4hc, the current buffer size is (256kb + 8) on 32-bits, (512kb + 16) on 64-bits. But, lz4hc needs only (256kb + 2 * pointer) on both. This patch fixes these wrong compress buffer sizes for 64-bits. Change-Id: I258fcf92aea80787b02e14f09f93be5d17245904 Signed-off-by: Bongkyu Kim <bongkyu.kim@lge.com> Cc: Chanho Min <chanho.min@lge.com> Cc: Yann Collet <yann.collet.73@gmail.com> Cc: Kyungsik Lee <kyungsik.lee@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions