]> git.baikalelectronics.ru Git - kernel.git/commit
mm/truncate: Inline invalidate_complete_page() into its one caller
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 12 Feb 2022 20:27:42 +0000 (15:27 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 16:59:01 +0000 (12:59 -0400)
commit42b609d5273eb883618f36b75c9f5f8c174f7fb2
tree46665243b7be89ad71c6e56b1e8ae42923369a90
parent878ff15a877b4dd82e69cb2f8034764a77aaa3de
mm/truncate: Inline invalidate_complete_page() into its one caller

invalidate_inode_page() is the only caller of invalidate_complete_page()
and inlining it reveals that the first check is unnecessary (because we
hold the page locked, and we just retrieved the mapping from the page).
Actually, it does make a difference, in that tail pages no longer fail
at this check, so it's now possible to remove a tail page from a mapping.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
kernel/futex/core.c
mm/truncate.c