From 4ae280cb0795d8d91ae8f443776eba940b38489f Mon Sep 17 00:00:00 2001 From: Nick Piggin Date: Fri, 6 Jan 2006 00:11:21 -0800 Subject: [PATCH] --- yaml --- r: 16339 b: refs/heads/master c: b09eb1c06a14641209e6b86e9a5b28ea8287f193 h: refs/heads/master i: 16337: c3522bd54c95e714d0c9ec2f731788d2021c9c01 16335: 969de83a6a2e22ff58d18ebba7c7659dee2b01f6 v: v3 --- [refs] | 2 +- trunk/include/linux/page-flags.h | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 95899ee52da5..a74d35c3f68c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a74609fafa2e5cc31d558012abaaa55ec9ad9da4 +refs/heads/master: b09eb1c06a14641209e6b86e9a5b28ea8287f193 diff --git a/trunk/include/linux/page-flags.h b/trunk/include/linux/page-flags.h index dede8d412dca..d52999c43336 100644 --- a/trunk/include/linux/page-flags.h +++ b/trunk/include/linux/page-flags.h @@ -79,13 +79,23 @@ /* * Global page accounting. One instance per CPU. Only unsigned longs are * allowed. + * + * - Fields can be modified with xxx_page_state and xxx_page_state_zone at + * any time safely (which protects the instance from modification by + * interrupt. + * - 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. */ struct page_state { unsigned long nr_dirty; /* Dirty writeable pages */ unsigned long nr_writeback; /* Pages under writeback */ unsigned long nr_unstable; /* NFS unstable pages */ unsigned long nr_page_table_pages;/* Pages used for pagetables */ - unsigned long nr_mapped; /* mapped into pagetables */ + unsigned long nr_mapped; /* mapped into pagetables. + * only modified from process context */ unsigned long nr_slab; /* In slab */ #define GET_PAGE_STATE_LAST nr_slab