summaryrefslogtreecommitdiffstats
path: root/kernel/futex
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-02-12 21:27:42 +0100
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-03-21 17:59:01 +0100
commit1b8ddbeeb9b819e62b7190115023ce858a159f5c (patch)
tree46665243b7be89ad71c6e56b1e8ae42923369a90 /kernel/futex
parentsplice: Use a folio in page_cache_pipe_buf_try_steal() (diff)
downloadlinux-1b8ddbeeb9b819e62b7190115023ce858a159f5c.tar.xz
linux-1b8ddbeeb9b819e62b7190115023ce858a159f5c.zip
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>
Diffstat (limited to 'kernel/futex')
-rw-r--r--kernel/futex/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/futex/core.c b/kernel/futex/core.c
index 51dd822a8060..b22ef1efe751 100644
--- a/kernel/futex/core.c
+++ b/kernel/futex/core.c
@@ -302,7 +302,7 @@ again:
* found it, but truncated or holepunched or subjected to
* invalidate_complete_page2 before we got the page lock (also
* cases which we are happy to fail). And we hold a reference,
- * so refcount care in invalidate_complete_page's remove_mapping
+ * so refcount care in invalidate_inode_page's remove_mapping
* prevents drop_caches from setting mapping to NULL beneath us.
*
* The case we do have to guard against is when memory pressure made