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
227227 * struct folio - Represents a contiguous set of bytes.
228228 * @flags: Identical to the page flags.
229229 * @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().
230231 * @mapping: The file this page belongs to, or refers to the anon_vma for
231232 * anonymous memory.
232233 * @index: Offset within the file, in units of pages. For anonymous memory,
@@ -255,10 +256,14 @@ struct folio { · 22 unmodified lines
255256 unsigned long flags;
256257 union {
257258 struct list_head lru;
259+ /* private: avoid cluttering the output */
258260 struct {
259261 void *__filler;
262+ /* public: */
260263 unsigned int mlock_count;
264+ /* private: */
261265 };
266+ /* public: */
262267 };
263268 struct address_space *mapping;
264269 pgoff_t index;