Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d414152 authored by Nick Piggin's avatar Nick Piggin Committed by Linus Torvalds
Browse files

[PATCH] mm: page_state comment more



Clarify that preemption needs to be guarded against with the
__xxx_page_state functions.

Signed-off-by: default avatarNick Piggin <npiggin@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8dfcc9ba
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -86,8 +86,9 @@
 * - The __xxx_page_state variants can be used safely when interrupts are
 * disabled.
 * - The __xxx_page_state variants can be used if the field is only
 * modified from process context, or only modified from interrupt context.
 * In this case, the field should be commented here.
 * modified from process context and protected from preemption, or only
 * modified from interrupt context.  In this case, the field should be
 * commented here.
 */
struct page_state {
	unsigned long nr_dirty;		/* Dirty writeable pages */