]> git.baikalelectronics.ru Git - kernel.git/commit
mm: pincer in truncate_inode_pages_range
authorHugh Dickins <hughd@google.com>
Tue, 26 Jul 2011 00:12:25 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 03:57:10 +0000 (20:57 -0700)
commite978044c82ccbd4f95a6740d4de4fe9cb07455c4
treebfc182422f665b39d7ae703a198ea7144fea122b
parentf3bef1583886cbbcce0272dbd7aae5ec678a12d9
mm: pincer in truncate_inode_pages_range

truncate_inode_pages_range()'s final loop has a nice pincer property,
bringing start and end together, squeezing out the last pages.  But the
range handling missed out on that, just sliding up the range, perhaps
letting pages come in behind it.  Add one more test to give it the same
pincer effect.

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/truncate.c