Skip to content

btrfs: Convert kmap/memset/kunmap to memzero_user()

[email protected] linux-btrfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review 1 of 3 applied

Patches in v1 1 of 3 applied

#Subject and filesSizeRepliesApplied
1/3iov_iter: Lift memzero_page() to highmem.hinclude/linux/highmem.h lib/iov_iter.c+8 -70 replies
2/3mm/highmem: Convert memzero_page() to kmap_local_page()include/linux/highmem.h+2 -20 replies
3/3btrfs: Use memzero_page() instead of open coded kmap patternfs/btrfs/compression.c fs/btrfs/extent_io.c fs/btrfs/inode.c +3 more+18 -581 replyApplied

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndrew MortonDavid Sterba
SeriesA-b
1/3
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] btrfs: Convert kmap/memset/kunmap to memzero_user()

From: Ira Weiny <[email protected]>

Previously this was submitted to convert to zero_user()[1]. zero_user() is not the same as memzero_user() and in fact some zero_user() calls may be better off as memzero_user(). Regardless it was incorrect to convert btrfs to zero_user().

This series corrects this by lifting memzero_user(), converting it to kmap_local_page(), and then using it in btrfs.

Thanks,
Ira

[1] https://lore.kernel.org/lkml/[email protected]/

Ira Weiny (3):
iov_iter: Lift memzero_page() to highmem.h mm/highmem: Convert memzero_page() to kmap_local_page()
btrfs: Use memzero_page() instead of open coded kmap pattern

 fs/btrfs/compression.c  |  5 +----
 fs/btrfs/extent_io.c    | 22 ++++------------------
 fs/btrfs/inode.c        | 33 ++++++++++-----------------------
 fs/btrfs/reflink.c      |  6 +-----
 fs/btrfs/zlib.c         |  5 +----
 fs/btrfs/zstd.c         |  5 +----
 include/linux/highmem.h |  7 +++++++
 lib/iov_iter.c          |  8 +-------
 8 files changed, 26 insertions(+), 65 deletions(-)
Signature · 1 line
2.28.0.rc0.12.gb6a658bd00c9