From: Matthew Wilcox <willy@infradead.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Ira Weiny <ira.weiny@intel.com>,
Prathu Baronia <prathubaronia2011@gmail.com>,
linux-kernel@vger.kernel.org, chintan.pandya@oneplus.com,
Prathu Baronia <prathu.baronia@oneplus.com>,
Thomas Gleixner <tglx@linutronix.de>,
"Peter Zijlstra (Intel)" <peterz@infradead.org>,
Randy Dunlap <rdunlap@infradead.org>
Subject: Re: [PATCH v4 1/1] mm/highmem: Remove deprecated kmap_atomic
Date: Fri, 5 Nov 2021 16:51:40 +0000 [thread overview]
Message-ID: <YYVhHCJcm2DM2G9u@casper.infradead.org> (raw)
In-Reply-To: <YYU2YSOGHJFIrzmm@casper.infradead.org>
On Fri, Nov 05, 2021 at 01:50:37PM +0000, Matthew Wilcox wrote:
> On Thu, Feb 11, 2021 at 03:56:25PM -0800, Andrew Morton wrote:
> > On Wed, 10 Feb 2021 16:33:07 -0800 Ira Weiny <ira.weiny@intel.com> wrote:
> >
> > > > Signed-off-by: Ira Weiny <ira.weiny@intel.com>
> > >
> > > This already has my signed off by so I'm not going to 'review'. With Prathu's
> > > testing information I hope this can land.
> > >
> > > Andrew did you see this patch?
> >
> > I did now ;)
> >
> > Tossed onto the post-rc1 pile, thanks,
>
> This patch seems to have slipped through the gaps for a couple of cycles
> now? I found a missed spot in it for CONFIG_HIGHMEM:
Ugh, sorry, wrong version of the patch.
---
mm/highmem.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mm/highmem.c b/mm/highmem.c
index 471d9779a7f4..88f65f155845 100644
--- a/mm/highmem.c
+++ b/mm/highmem.c
@@ -382,7 +382,7 @@ void zero_user_segments(struct page *page, unsigned start1, unsigned end1,
unsigned this_end = min_t(unsigned, end1, PAGE_SIZE);
if (end1 > start1) {
- kaddr = kmap_atomic(page + i);
+ kaddr = kmap_local_page(page + i);
memset(kaddr + start1, 0, this_end - start1);
}
end1 -= this_end;
@@ -397,7 +397,7 @@ void zero_user_segments(struct page *page, unsigned start1, unsigned end1,
if (end2 > start2) {
if (!kaddr)
- kaddr = kmap_atomic(page + i);
+ kaddr = kmap_local_page(page + i);
memset(kaddr + start2, 0, this_end - start2);
}
end2 -= this_end;
@@ -405,7 +405,7 @@ void zero_user_segments(struct page *page, unsigned start1, unsigned end1,
}
if (kaddr) {
- kunmap_atomic(kaddr);
+ kunmap_local(kaddr);
flush_dcache_page(page + i);
}
--
2.33.0
next prev parent reply other threads:[~2021-11-05 16:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-04 7:32 [PATCH v4 0/1] " Prathu Baronia
2021-02-04 7:32 ` [PATCH v4 1/1] " Prathu Baronia
2021-02-11 0:33 ` Ira Weiny
2021-02-11 23:56 ` Andrew Morton
2021-11-05 13:49 ` Matthew Wilcox
2021-11-05 16:51 ` Matthew Wilcox [this message]
2021-11-05 16:58 ` Ira Weiny
2021-11-05 17:23 ` Matthew Wilcox
2021-11-05 18:38 ` Ira Weiny
2021-11-08 10:12 ` Prathu Baronia
2021-11-05 16:56 ` Ira Weiny
2021-11-05 17:35 ` Matthew Wilcox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YYVhHCJcm2DM2G9u@casper.infradead.org \
--to=willy@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=chintan.pandya@oneplus.com \
--cc=ira.weiny@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=prathu.baronia@oneplus.com \
--cc=prathubaronia2011@gmail.com \
--cc=rdunlap@infradead.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®