mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Replace kmap() with kmap_local_page() in zstd.c
@ 2022-06-16  7:15 Fabio M. De Francesco
  2022-06-16  7:15 ` [PATCH v3 1/2] highmem: Make __kunmap_{local,atomic}() take "const void *" Fabio M. De Francesco
  2022-06-16  7:15 ` [PATCH v3 2/2] btrfs: Replace kmap() with kmap_local_page() in zstd.c Fabio M. De Francesco
  0 siblings, 2 replies; 5+ messages in thread
From: Fabio M. De Francesco @ 2022-06-16  7:15 UTC (permalink / raw)
  To: David Sterba
  Cc: Chris Mason, Josef Bacik, Nick Terrell, linux-btrfs,
	linux-kernel, 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,
but, above all else, it has the purpose to conform the prototypes of
__kunmap_{local,atomic}() to their own semantic. Since those functions
don't make changes to the memory pointed by their arguments, make those
arguments take pointers to const void.

This little series has version number 3, despite it's the first time the
two component patches have been re-united in a series. This may be a
questionable choice, however patch 1/2 should be at its v3 and patch 2/2
should be at its v2. I've tried to preserve the logs of version changes,
so, as said, this new series carries v3.

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                      | 42 +++++++++++++++-------------
 include/linux/highmem-internal.h     | 10 +++----
 mm/highmem.c                         |  2 +-
 5 files changed, 33 insertions(+), 29 deletions(-)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH v4 0/2] Replace kmap() with kmap_local_page() in zstd.c
@ 2022-06-16  8:11 Fabio M. De Francesco
  2022-06-16  8:11 ` [PATCH v3 1/2] highmem: Make __kunmap_{local,atomic}() take "const void *" Fabio M. De Francesco
  0 siblings, 1 reply; 5+ messages in thread
From: Fabio M. De Francesco @ 2022-06-16  8:11 UTC (permalink / raw)
  To: David Sterba
  Cc: Chris Mason, Josef Bacik, Nick Terrell, linux-btrfs,
	linux-kernel, Ira Weiny, Andrew Morton, Matthew Wilcox,
	Kees Cook, Sebastian Andrzej Siewior, James E . J . Bottomley,
	Helge Deller, John David Anglin, linux-parisc,
	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,
but, above all else, it has the purpose to conform the prototypes of
__kunmap_{local,atomic}() to their own semantic. Since those functions
don't make changes to the memory pointed by their arguments, make those
arguments take pointers to const void.

This little series has version number 4, despite it's the first time the
two component patches have been re-united in a series. This may be a
questionable choice, however patch 1/2 should be at its v4 and patch 2/2
should be at its v3. I've tried to preserve the logs of version changes,
so, as said, this new series carries v4.

Furthermore, v4 is due to the fact that for v3 (where for the first time
the two above-mentioned patches had been united in a series) I forgot to
Cc several Maintainers and lists related to patch 1/2.

Sorry for the noise I provided to whom have received this same series
twice with no changes at all.

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                      | 42 +++++++++++++++-------------
 include/linux/highmem-internal.h     | 10 +++----
 mm/highmem.c                         |  2 +-
 5 files changed, 33 insertions(+), 29 deletions(-)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <https://lore.kernel.org/lkml/20220616081133.14144-1-fmdefrancesco@gmail.com/T/#ma6b3315779fb36350b66dd49108ff9b3af50177c>]

end of thread, other threads:[~2022-06-16  8:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-16  7:15 [PATCH v3 0/2] Replace kmap() with kmap_local_page() in zstd.c Fabio M. De Francesco
2022-06-16  7:15 ` [PATCH v3 1/2] highmem: Make __kunmap_{local,atomic}() take "const void *" Fabio M. De Francesco
2022-06-16  7:15 ` [PATCH v3 2/2] btrfs: Replace kmap() with kmap_local_page() in zstd.c Fabio M. De Francesco
2022-06-16  8:11 [PATCH v4 0/2] " Fabio M. De Francesco
2022-06-16  8:11 ` [PATCH v3 1/2] highmem: Make __kunmap_{local,atomic}() take "const void *" Fabio M. De Francesco
     [not found] <https://lore.kernel.org/lkml/20220616081133.14144-1-fmdefrancesco@gmail.com/T/#ma6b3315779fb36350b66dd49108ff9b3af50177c>
2022-06-16  8:31 ` Fabio M. De Francesco

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

all inboxes | Powered by JetHome®