linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/2] btrfs: Replace kmap() with kmap_local_page() in zstd.c
@ 2022-07-06 11:15 Fabio M. De Francesco
  2022-07-06 11:15 ` [PATCH v6 1/2] highmem: Make __kunmap_{local,atomic}() take "const void *" Fabio M. De Francesco
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Fabio M. De Francesco @ 2022-07-06 11:15 UTC (permalink / raw)
  To: David Sterba, Chris Mason, Josef Bacik, Nick Terrell,
	linux-btrfs, linux-mm, linux-kernel, Ira Weiny, Andrew Morton,
	Matthew Wilcox, Kees Cook, Sebastian Andrzej Siewior,
	James E. J. Bottomley, Helge Deller, John David Anglin,
	linux-parisc
  Cc: Fabio M. De Francesco

This is a little series which serves the purpose to replace kmap() with
kmap_local_page() in btrfs/zstd.c. Actually this task is only accomplished
in patch 2/2.

Instead patch 1/2 is a pre-requisite for the above-mentioned replacement,
however, above all else, it has the purpose to conform the prototypes of
__kunmap_{local,atomic}() to their own correct semantics. Since those
functions don't make changes to the memory pointed by their arguments,
change the type of those arguments to become pointers to const void.

v5 -> v6: Delete an unnecessary assignment in 2/2 (thanks to Ira Weiny).

v4 -> v5: Use plain page_address() for pages which cannot come from Highmem
(instead of kmapping them); remove unnecessary initializations to NULL
in 2/2 (thanks to Ira Weiny).

v3 -> v4: Resend and add linux-mm to the list of recipients (thanks to
Andrew Morton).

Fabio M. De Francesco (2):
  highmem: Make __kunmap_{local,atomic}() take "const void *"
  btrfs: Replace kmap() with kmap_local_page() in zstd.c

 arch/parisc/include/asm/cacheflush.h |  6 ++---
 arch/parisc/kernel/cache.c           |  2 +-
 fs/btrfs/zstd.c                      | 33 +++++++++++-----------------
 include/linux/highmem-internal.h     | 10 ++++-----
 mm/highmem.c                         |  2 +-
 5 files changed, 23 insertions(+), 30 deletions(-)

-- 
2.36.1



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

end of thread, other threads:[~2022-07-08 12:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-06 11:15 [PATCH v6 0/2] btrfs: Replace kmap() with kmap_local_page() in zstd.c Fabio M. De Francesco
2022-07-06 11:15 ` [PATCH v6 1/2] highmem: Make __kunmap_{local,atomic}() take "const void *" Fabio M. De Francesco
2022-07-06 19:07   ` Andrew Morton
2022-07-08 12:47     ` Helge Deller
2022-07-06 11:15 ` [PATCH v6 2/2] btrfs: Replace kmap() with kmap_local_page() in zstd.c Fabio M. De Francesco
2022-07-07 22:12 ` [PATCH v6 0/2] " David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox