Skip to content

Commit 334f6f5

Browse files
author
Matthew Wilcox (Oracle)
committed
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) <[email protected]>
1 parent 69a37a8 commit 334f6f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/mm_types.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ struct page {
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 {
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;

0 commit comments

Comments
 (0)