|author||Jan Kara <email@example.com>||2012-12-11 16:01:09 -0800|
|committer||Linus Torvalds <firstname.lastname@example.org>||2012-12-11 17:22:23 -0800|
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 <email@example.com> Cc: Martin Schwidefsky <firstname.lastname@example.org> Cc: Mel Gorman <email@example.com> Cc: Hugh Dickins <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
Diffstat (limited to 'arch/s390')
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/include/asm/page.h b/arch/s390/include/asm/page.h
index 6d5367060a5..39faa4ac966 100644
@@ -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.
static inline int page_test_and_clear_dirty(unsigned long pfn, int mapped)