From: "Matthew Wilcox (Oracle)" <willy@infradead.org>
To: linux-mm@kvack.org, akpm@linux-foundation.org
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Subject: [PATCH 3/4] fix mm-add-and-use-find_lock_entries.patch
Date: Tue, 24 Nov 2020 04:15:06 +0000 [thread overview]
Message-ID: <20201124041507.28996-3-willy@infradead.org> (raw)
In-Reply-To: <20201124041507.28996-1-willy@infradead.org>
---
mm/filemap.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mm/filemap.c b/mm/filemap.c
index f3b448431bd4..7dfd7024d361 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1941,6 +1941,8 @@ unsigned find_lock_entries(struct address_space *mapping, pgoff_t start,
goto put;
if (page->mapping != mapping || PageWriteback(page))
goto unlock;
+ VM_BUG_ON_PAGE(!thp_contains(page, xas.xa_index),
+ page);
}
indices[pvec->nr] = xas.xa_index;
if (!pagevec_add(pvec, page))
--
2.29.2
next prev parent reply other threads:[~2020-11-24 4:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-24 4:15 [PATCH 1/4] mm: Support THPs in zero_user_segments Matthew Wilcox (Oracle)
2020-11-24 4:15 ` [PATCH 2/4] fix mm-filemap-add-helper-for-finding-pages.patch Matthew Wilcox (Oracle)
2020-11-24 4:15 ` Matthew Wilcox (Oracle) [this message]
2020-11-24 4:15 ` [PATCH 4/4] fix mm-filemap-add-mapping_seek_hole_data.patch Matthew Wilcox (Oracle)
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=20201124041507.28996-3-willy@infradead.org \
--to=willy@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
/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;
as well as URLs for NNTP newsgroup(s).