Commit 767e5ee5 authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle) Committed by Linus Torvalds

mm: add pagemap.h to the fine documentation

The documentation currently does not include the deathless prose written
to describe functions in pagemap.h because it's not included in any rst
file.  Fix up the mismatches between parameter names and the documentation
and add the file to mm-api.
Signed-off-by: default avatarMatthew Wilcox (Oracle) <>
Signed-off-by: default avatarAndrew Morton <>
Reviewed-by: default avatarZi Yan <>
Reviewed-by: default avatarJohn Hubbard <>
Cc: Jonathan Corbet <>
Link: default avatarLinus Torvalds <>
parent 222100ee
......@@ -73,6 +73,9 @@ File Mapping and Page Cache
.. kernel-doc:: mm/truncate.c
.. kernel-doc:: include/linux/pagemap.h
Memory pools
......@@ -33,8 +33,8 @@ enum mapping_flags {
* mapping_set_error - record a writeback error in the address_space
* @mapping - the mapping in which an error should be set
* @error - the error to set in the mapping
* @mapping: the mapping in which an error should be set
* @error: the error to set in the mapping
* When writeback fails in some way, we must record that error so that
* userspace can be informed when fsync and the like are called. We endeavor
......@@ -303,9 +303,9 @@ static inline struct page *find_lock_page(struct address_space *mapping,
* atomic allocation!
static inline struct page *find_or_create_page(struct address_space *mapping,
pgoff_t offset, gfp_t gfp_mask)
pgoff_t index, gfp_t gfp_mask)
return pagecache_get_page(mapping, offset,
return pagecache_get_page(mapping, index,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment