summaryrefslogtreecommitdiff
path: root/block/cfq.h
diff options
context:
space:
mode:
authorMichel Lespinasse <walken@google.com>2011-01-13 15:46:09 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-13 17:32:35 -0800
commit5ecfda041e4b4bd858d25bbf5a16c2a6c06d7272 (patch)
treee6c3e7dac64a5e45b48ab7836318752202579a17 /block/cfq.h
parent72ddc8f72270758951ccefb7d190f364d20215ab (diff)
downloadlinux-3.10-5ecfda041e4b4bd858d25bbf5a16c2a6c06d7272.tar.gz
linux-3.10-5ecfda041e4b4bd858d25bbf5a16c2a6c06d7272.tar.bz2
linux-3.10-5ecfda041e4b4bd858d25bbf5a16c2a6c06d7272.zip
mlock: avoid dirtying pages and triggering writeback
When faulting in pages for mlock(), we want to break COW for anonymous or file pages within VM_WRITABLE, non-VM_SHARED vmas. However, there is no need to write-fault into VM_SHARED vmas since shared file pages can be mlocked first and dirtied later, when/if they actually get written to. Skipping the write fault is desirable, as we don't want to unnecessarily cause these pages to be dirtied and queued for writeback. Signed-off-by: Michel Lespinasse <walken@google.com> Cc: Hugh Dickins <hughd@google.com> Cc: Rik van Riel <riel@redhat.com> Cc: Kosaki Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Nick Piggin <npiggin@kernel.dk> Cc: Theodore Tso <tytso@google.com> Cc: Michael Rubin <mrubin@google.com> Cc: Suleiman Souhlal <suleiman@google.com> Cc: Dave Chinner <david@fromorbit.com> Cc: Christoph Hellwig <hch@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block/cfq.h')
0 files changed, 0 insertions, 0 deletions