linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Parameter reduction in compression wrappers
@ 2017-02-17 18:05 David Sterba
  2017-02-17 18:05 ` [PATCH 1/5] btrfs: merge length input and output parameter in compress_pages David Sterba
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: David Sterba @ 2017-02-17 18:05 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

I've noticed that some of the parameters passed to compress_pages are redundant
and that we can either reuse a parameter for both input and output value
(number of pages) or we can infer some value from the existing parameters (the
maximum output limit).

There's no functional change, the stack consumption is slightly smaller.

David Sterba (5):
      btrfs: merge length input and output parameter in compress_pages
      btrfs: merge nr_pages input and output parameter in compress_pages
      btrfs: export compression buffer limits in a header
      btrfs: use predefined limits for calculating maximum number of pages for compression
      btrfs: derive maximum output size in the compression implementation

 fs/btrfs/compression.c | 33 ++++++++++++++-------------------
 fs/btrfs/compression.h | 28 +++++++++++++++++++---------
 fs/btrfs/inode.c       | 37 +++++++++++++------------------------
 fs/btrfs/lzo.c         | 10 +++++-----
 fs/btrfs/zlib.c        |  9 +++++----
 5 files changed, 56 insertions(+), 61 deletions(-)

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

end of thread, other threads:[~2017-02-20  8:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-17 18:05 [PATCH 0/5] Parameter reduction in compression wrappers David Sterba
2017-02-17 18:05 ` [PATCH 1/5] btrfs: merge length input and output parameter in compress_pages David Sterba
2017-02-17 18:05 ` [PATCH 2/5] btrfs: merge nr_pages " David Sterba
2017-02-17 18:05 ` [PATCH 3/5] btrfs: export compression buffer limits in a header David Sterba
2017-02-20  8:07   ` Qu Wenruo
2017-02-17 18:05 ` [PATCH 4/5] btrfs: use predefined limits for calculating maximum number of pages for compression David Sterba
2017-02-17 18:06 ` [PATCH 5/5] btrfs: derive maximum output size in the compression implementation David Sterba

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).