Skip to content

Commit 89b4223

Browse files
mchehabJonathan Corbet
authored andcommitted
mm: pagemap.h: fix two kernel-doc markups
Changeset a8cf7f2 ("mm: add find_lock_head") renamed the index parameter, but forgot to update the kernel-doc markups accordingly. Fixes: a8cf7f2 ("mm: add find_lock_head") Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Link: https://lore.kernel.org/r/dce89b296a4f5f9f8f798d5e76b6736c14a916ac.1603791716.git.mchehab+huawei@kernel.org Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 6a6223e commit 89b4223

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/linux/pagemap.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,9 @@ static inline struct page *find_get_page_flags(struct address_space *mapping,
344344
/**
345345
* find_lock_page - locate, pin and lock a pagecache page
346346
* @mapping: the address_space to search
347-
* @offset: the page index
347+
* @index: the page index
348348
*
349-
* Looks up the page cache entry at @mapping & @offset. If there is a
349+
* Looks up the page cache entry at @mapping & @index. If there is a
350350
* page cache page, it is returned locked and with an increased
351351
* refcount.
352352
*
@@ -363,9 +363,9 @@ static inline struct page *find_lock_page(struct address_space *mapping,
363363
/**
364364
* find_lock_head - Locate, pin and lock a pagecache page.
365365
* @mapping: The address_space to search.
366-
* @offset: The page index.
366+
* @index: The page index.
367367
*
368-
* Looks up the page cache entry at @mapping & @offset. If there is a
368+
* Looks up the page cache entry at @mapping & @index. If there is a
369369
* page cache page, its head page is returned locked and with an increased
370370
* refcount.
371371
*

0 commit comments

Comments
 (0)