[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210309212137.2610186-1-ira.weiny@intel.com>
Date: Tue, 9 Mar 2021 13:21:34 -0800
From: ira.weiny@...el.com
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Ira Weiny <ira.weiny@...el.com>, David Sterba <dsterba@...e.com>,
Chris Mason <clm@...com>, Josef Bacik <josef@...icpanda.com>,
linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 0/3] btrfs: Convert kmap/memset/kunmap to memzero_user()
From: Ira Weiny <ira.weiny@...el.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
Powered by blists - more mailing lists