]> www.infradead.org Git - users/willy/linux.git/commit
mm: Remove bogus VM_BUG_ON
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 18 Aug 2021 14:43:41 +0000 (10:43 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 3 Oct 2021 10:56:47 +0000 (06:56 -0400)
commit51cbb3f3ce31fc203f185fc3d92dae0e56b5aab3
tree2e033da6389b88dc76f655c9a39a50d57e9dcc78
parent7b66f4393ad421e425ba643fde0493fa64346a43
mm: Remove bogus VM_BUG_ON

It is not safe to check page->index without holding the page lock.
It can be changed if the page is moved between the swap cache and the
page cache for a shmem file, for example.  There is a VM_BUG_ON below
which checks page->index is correct after taking the page lock.

Cc: stable@vger.kernel.org
Fixes: 5c211ba29deb ("mm: add and use find_lock_entries")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
mm/filemap.c