mm: Add kernel-doc for folio->mlock_count

Fix "./include/linux/mm_types.h:279: warning: Function parameter or member
'mlock_count' not described in 'folio'".  Also neaten the html by hiding
the anon struct.
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
parent 69a37a8b
...@@ -227,6 +227,7 @@ struct page { ...@@ -227,6 +227,7 @@ struct page {
* struct folio - Represents a contiguous set of bytes. * struct folio - Represents a contiguous set of bytes.
* @flags: Identical to the page flags. * @flags: Identical to the page flags.
* @lru: Least Recently Used list; tracks how recently this folio was used. * @lru: Least Recently Used list; tracks how recently this folio was used.
* @mlock_count: Number of times this folio has been pinned by mlock().
* @mapping: The file this page belongs to, or refers to the anon_vma for * @mapping: The file this page belongs to, or refers to the anon_vma for
* anonymous memory. * anonymous memory.
* @index: Offset within the file, in units of pages. For anonymous memory, * @index: Offset within the file, in units of pages. For anonymous memory,
...@@ -255,10 +256,14 @@ struct folio { ...@@ -255,10 +256,14 @@ struct folio {
unsigned long flags; unsigned long flags;
union { union {
struct list_head lru; struct list_head lru;
/* private: avoid cluttering the output */
struct { struct {
void *__filler; void *__filler;
/* public: */
unsigned int mlock_count; unsigned int mlock_count;
/* private: */
}; };
/* public: */
}; };
struct address_space *mapping; struct address_space *mapping;
pgoff_t index; pgoff_t 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