summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2020-05-27 22:11:18 +0200
committerIngo Molnar <mingo@kernel.org>2020-05-28 10:31:10 +0200
commited19f19256be2949af1ab5634e62178d30a355c2 (patch)
tree5a4650415b231d322b538b6d9cc93151628fa4d7 /include/linux
parent3e92fd7bd2b8418b53cb7304855b8b69bedbe2b4 (diff)
zram: Allocate struct zcomp_strm as per-CPU memory
zcomp::stream is a per-CPU pointer, pointing to struct zcomp_strm which contains two pointers. Having struct zcomp_strm allocated directly as per-CPU memory would avoid one additional memory allocation and a pointer dereference. This also simplifies the addition of a local_lock to struct zcomp_strm. Allocate zcomp::stream directly as per-CPU memory. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20200527201119.1692513-7-bigeasy@linutronix.de
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions