public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] btrfs: Convert kmap/memset/kunmap to memzero_user()
@ 2021-03-09 21:21 ira.weiny
  2021-03-09 21:21 ` [PATCH 1/3] iov_iter: Lift memzero_page() to highmem.h ira.weiny
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: ira.weiny @ 2021-03-09 21:21 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Ira Weiny, David Sterba, Chris Mason, Josef Bacik, linux-btrfs,
	linux-kernel

From: Ira Weiny <ira.weiny@intel.com>

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/20210223192506.GY3014244@iweiny-DESK2.sc.intel.com/


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

-- 
2.28.0.rc0.12.gb6a658bd00c9


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

end of thread, other threads:[~2021-03-12 12:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-09 21:21 [PATCH 0/3] btrfs: Convert kmap/memset/kunmap to memzero_user() ira.weiny
2021-03-09 21:21 ` [PATCH 1/3] iov_iter: Lift memzero_page() to highmem.h ira.weiny
2021-03-09 21:21 ` [PATCH 2/3] mm/highmem: Convert memzero_page() to kmap_local_page() ira.weiny
2021-03-09 21:21 ` [PATCH 3/3] btrfs: Use memzero_page() instead of open coded kmap pattern ira.weiny
2021-03-12 11:23   ` David Sterba
2021-03-10 23:58 ` [PATCH 0/3] btrfs: Convert kmap/memset/kunmap to memzero_user() Andrew Morton
2021-03-11 15:57   ` Ira Weiny
2021-03-12 11:57     ` David Sterba

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