aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2012-12-11 19:01:09 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-11 20:22:23 -0500
commite749eb95531ac8349df47f8d46ce2641dcb16589 (patch)
treec78428ed9c92bf0e4915f6dfa6a21d4e58e14465 /arch/s390/include
parent712cd386fdc983d318fecf302a2a9cb8e9de90c9 (diff)
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)
158 * race against modification of the referenced bit. This function 158 * race against modification of the referenced bit. This function
159 * should therefore only be called if it is not mapped in any 159 * should therefore only be called if it is not mapped in any
160 * address space. 160 * address space.
161 *
162 * Note that the bit gets set whenever page content is changed. That means
163 * also when the page is modified by DMA or from inside the kernel.
161 */ 164 */
162#define __HAVE_ARCH_PAGE_TEST_AND_CLEAR_DIRTY 165#define __HAVE_ARCH_PAGE_TEST_AND_CLEAR_DIRTY
163static inline int page_test_and_clear_dirty(unsigned long pfn, int mapped) 166static inline int page_test_and_clear_dirty(unsigned long pfn, int mapped)