Skip to content

btrfs: Replace kmap() with kmap_local_page() in zstd.c

Fabio M. De Francesco linux-btrfs linux-mm linux-parisc lkml 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 3 repliesIn review
  2. v52 patches 3 repliesSuperseded
  3. v4 posting 2/22 patches 4 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v3 posting 3/32 patches0 repliesSuperseded
v3 posting 2/32 patches0 repliesSuperseded
v4 posting 1/20 of 2 patches0 repliesSuperseded
v3 posting 1/32 patches0 repliesSuperseded
v21 patch1 replySuperseded
v11 patch1 replySuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2highmem: Make __kunmap_{local,atomic}() take "const void *"arch/parisc/include/asm/cacheflush.h arch/parisc/kernel/cache.c include/linux/highmem-internal.h +1 more+10 -102 replies
2/2btrfs: Replace kmap() with kmap_local_page() in zstd.cfs/btrfs/zstd.c+13 -200 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchIra WeinyAndrew MortonHelge Deller
1/2R-b A-b A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/2] btrfs: Replace kmap() with kmap_local_page() in zstd.c

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(-)
Signature · 1 line
2.36.1