linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Btrfs: heuristic/compression convert workspace memory cache
@ 2017-12-24  4:55 Timofey Titovets
  2017-12-24  4:55 ` [PATCH 1/2] Btrfs: heuristic: replace workspace managment code by mempool API Timofey Titovets
  2017-12-24  4:55 ` [PATCH 2/2] Btrfs: compression: " Timofey Titovets
  0 siblings, 2 replies; 4+ messages in thread
From: Timofey Titovets @ 2017-12-24  4:55 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Timofey Titovets

Attemp to simplify/cleanup compression code.
Little tested under high memory pressure.
At least all looks like working as expected.

First patch include preparation work for
replace old linked list based approach
with the new one based on mempool API.
Covert only one part as proof of concept, heuristic memory managment.
Define usage pattern and mempool_alloc_wrap() - handle
pool resize and pool init errors.

Second move zlib/lzo/zstd to new mempool API

Timofey Titovets (2):
  Btrfs: heuristic: replace workspace managment code by mempool API
  Btrfs: compression: replace workspace managment code by mempool API

 fs/btrfs/compression.c | 332 ++++++++++++++++---------------------------------
 fs/btrfs/compression.h |  12 +-
 fs/btrfs/lzo.c         |  64 ++++++----
 fs/btrfs/zlib.c        |  56 +++++----
 fs/btrfs/zstd.c        |  49 +++++---
 5 files changed, 215 insertions(+), 298 deletions(-)

-- 
2.15.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-30 20:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-24  4:55 [PATCH 0/2] Btrfs: heuristic/compression convert workspace memory cache Timofey Titovets
2017-12-24  4:55 ` [PATCH 1/2] Btrfs: heuristic: replace workspace managment code by mempool API Timofey Titovets
2017-12-30 20:43   ` Timofey Titovets
2017-12-24  4:55 ` [PATCH 2/2] Btrfs: compression: " Timofey Titovets

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).