From: Timofey Titovets <nefelim4ag@gmail.com>
To: linux-btrfs@vger.kernel.org
Cc: Timofey Titovets <nefelim4ag@gmail.com>
Subject: [PATCH 0/2] Btrfs: heuristic/compression convert workspace memory cache
Date: Sun, 24 Dec 2017 07:55:26 +0300 [thread overview]
Message-ID: <20171224045528.12991-1-nefelim4ag@gmail.com> (raw)
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
next reply other threads:[~2017-12-24 4:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-24 4:55 Timofey Titovets [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171224045528.12991-1-nefelim4ag@gmail.com \
--to=nefelim4ag@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).