History

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.

Matthew Wilcox (Oracle) committed 4 years ago

Commit 334f6f51 parent 69a37a81 file · +5 −0Browse files

Unified · Split

include/linux/mm_types.h+5−0
@@ -227,6 +227,7 @@ struct page { · 226 unmodified lines
227 * struct folio - Represents a contiguous set of bytes.227 * struct folio - Represents a contiguous set of bytes.
228 * @flags: Identical to the page flags.228 * @flags: Identical to the page flags.
229 * @lru: Least Recently Used list; tracks how recently this folio was used.229 * @lru: Least Recently Used list; tracks how recently this folio was used.
230 * @mlock_count: Number of times this folio has been pinned by mlock().
230 * @mapping: The file this page belongs to, or refers to the anon_vma for231 * @mapping: The file this page belongs to, or refers to the anon_vma for
231 * anonymous memory.232 * anonymous memory.
232 * @index: Offset within the file, in units of pages. For anonymous memory,233 * @index: Offset within the file, in units of pages. For anonymous memory,
@@ -255,10 +256,14 @@ struct folio { · 22 unmodified lines
255 unsigned long flags;256 unsigned long flags;
256 union {257 union {
257 struct list_head lru;258 struct list_head lru;
259 /* private: avoid cluttering the output */
258 struct {260 struct {
259 void *__filler;261 void *__filler;
262 /* public: */
260 unsigned int mlock_count;263 unsigned int mlock_count;
264 /* private: */
261 };265 };
266 /* public: */
262 };267 };
263 struct address_space *mapping;268 struct address_space *mapping;
264 pgoff_t index;269 pgoff_t index;