diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-06-09 09:13:57 -0400 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-06-09 16:24:25 -0400 |
commit | 334f6f53abcf57782bd2fe81da1cbd893e4ef05c (patch) | |
tree | c860fb3e29053783d2dfe1653bb1d7c47439a20a | |
parent | 69a37a8ba1b408a1c7616494aa7018e4b3844cbe (diff) | |
download | linux-stable-334f6f53abcf57782bd2fe81da1cbd893e4ef05c.tar.gz linux-stable-334f6f53abcf57782bd2fe81da1cbd893e4ef05c.tar.bz2 linux-stable-334f6f53abcf57782bd2fe81da1cbd893e4ef05c.zip |
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: Matthew Wilcox (Oracle) <willy@infradead.org>
-rw-r--r-- | include/linux/mm_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index b34ff2cdbc4f..c29ab4c0cd5c 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -227,6 +227,7 @@ struct page { * struct folio - Represents a contiguous set of bytes. * @flags: Identical to the page flags. * @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 * anonymous memory. * @index: Offset within the file, in units of pages. For anonymous memory, @@ -255,10 +256,14 @@ struct folio { unsigned long flags; union { struct list_head lru; + /* private: avoid cluttering the output */ struct { void *__filler; + /* public: */ unsigned int mlock_count; + /* private: */ }; + /* public: */ }; struct address_space *mapping; pgoff_t index; |