diff mbox series

mm/filemap: Update stale comment

Message ID 1617948260-50724-1-git-send-email-zhangshaokun@hisilicon.com (mailing list archive)
State New
Headers show
Series mm/filemap: Update stale comment | expand

Commit Message

Shaokun Zhang April 9, 2021, 6:04 a.m. UTC
From: Rui Sun <sunrui26@huawei.com>

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

Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Rui Sun <sunrui26@huawei.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
 mm/filemap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/mm/filemap.c b/mm/filemap.c
index 5b4afb35c861..080ef83b991d 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1749,7 +1749,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