From: Nick Piggin Date: Tue, 6 Jan 2009 22:39:11 +0000 (-0800) Subject: mm: write_cache_pages terminate quickly X-Git-Tag: v2.6.29-rc1~475 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5482cdf8a0aacb1e6468a97d5544f5829c8d8c4;p=pandora-kernel.git mm: write_cache_pages terminate quickly Terminate the write_cache_pages loop upon encountering the first page past end, without locking the page. Pages cannot have their index change when we have a reference on them (truncate, eg truncate_inode_pages_range performs the same check without the page lock). Signed-off-by: Nick Piggin Cc: Chris Mason Cc: Dave Chinner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed