Commit 4b17f030 authored by Rui Sun's avatar Rui Sun Committed by Linus Torvalds
Browse files

mm/filemap: update stale comment

Commit a6de4b48 ("mm: convert find_get_entry to return the head page")
uses @index instead of @offset, but the comment is stale, update it.

Link: https://lkml.kernel.org/r/1617948260-50724-1-git-send-email-zhangshaokun@hisilicon.com


Signed-off-by: default avatarRui Sun <sunrui26@huawei.com>
Signed-off-by: default avatarShaokun Zhang <zhangshaokun@hisilicon.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 842ca547
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1767,7 +1767,7 @@ EXPORT_SYMBOL(page_cache_prev_miss);
 * @mapping: the address_space to search
 * @index: The page cache index.
 *
 * Looks up the page cache slot at @mapping & @offset.  If there is a
 * Looks up the page cache slot at @mapping & @index.  If there is a
 * page cache page, the head page is returned with an increased refcount.
 *
 * If the slot holds a shadow entry of a previously evicted page, or a