summaryrefslogtreecommitdiffstats
path: root/arch/s390/include
diff options
context:
space:
mode:
authorJan Kara2012-12-12 01:01:09 +0100
committerLinus Torvalds2012-12-12 02:22:23 +0100
commite749eb95531ac8349df47f8d46ce2641dcb16589 (patch)
treec78428ed9c92bf0e4915f6dfa6a21d4e58e14465 /arch/s390/include
parentmm/memory_hotplug.c: update start_pfn in zone and pg_data when spanned_pages ... (diff)
downloadkernel-qcow2-linux-e749eb95531ac8349df47f8d46ce2641dcb16589.tar.gz
kernel-qcow2-linux-e749eb95531ac8349df47f8d46ce2641dcb16589.tar.xz
kernel-qcow2-linux-e749eb95531ac8349df47f8d46ce2641dcb16589.zip
mm: add comment on storage key dirty bit semantics
Add comments that dirty bit in storage key gets set whenever page content is changed. Hopefully if someone will use this function, he'll have a look at one of the two places where we comment on this. Signed-off-by: Jan Kara <jack@suse.cz> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Mel Gorman <mgorman@suse.de> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/s390/include')
-rw-r--r--arch/s390/include/asm/page.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/include/asm/page.h b/arch/s390/include/asm/page.h
index 6d5367060a56..39faa4ac9660 100644
--- a/arch/s390/include/asm/page.h
+++ b/arch/s390/include/asm/page.h
@@ -158,6 +158,9 @@ static inline int page_reset_referenced(unsigned long addr)
* race against modification of the referenced bit. This function
* should therefore only be called if it is not mapped in any
* address space.
+ *
+ * Note that the bit gets set whenever page content is changed. That means
+ * also when the page is modified by DMA or from inside the kernel.
*/
#define __HAVE_ARCH_PAGE_TEST_AND_CLEAR_DIRTY
static inline int page_test_and_clear_dirty(unsigned long pfn, int mapped)