Re: [PATCH 05/17] fs/btrfs: Convert to memzero_page()

From: Ira Weiny
Date: Tue Nov 24 2020 - 14:25:11 EST


On Tue, Nov 24, 2020 at 03:12:44PM +0100, David Sterba wrote:
> On Mon, Nov 23, 2020 at 10:07:43PM -0800, ira.weiny@xxxxxxxxx wrote:
> > From: Ira Weiny <ira.weiny@xxxxxxxxx>
> >
> > Remove the kmap/memset()/kunmap pattern and use the new memzero_page()
> > call where possible.
> >
> > Cc: Chris Mason <clm@xxxxxx>
> > Cc: Josef Bacik <josef@xxxxxxxxxxxxxx>
> > Cc: David Sterba <dsterba@xxxxxxxx>
> > Signed-off-by: Ira Weiny <ira.weiny@xxxxxxxxx>
> > ---
> > fs/btrfs/inode.c | 21 +++++----------------
>
> The patch converts the pattern only in inode.c, but there's more in
> compression.c, extent_io.c, zlib.c,d zstd.c (kmap_atomic) and reflink.c,
> send.c (kmap).

Thanks... not sure how I missed reflink.c and send.c.

I'll add them in v2.

Thanks!
Ira