]> git.karo-electronics.de Git - karo-tx-linux.git/commit
truncate_inode_pages_range()'s final loop has a nice pincer property,
authorHugh Dickins <hughd@google.com>
Sat, 16 Jul 2011 13:30:42 +0000 (23:30 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Jul 2011 05:04:38 +0000 (15:04 +1000)
commit5340c4e461936439555e51da845be881b48f3ed5
treeadf537b0579a2f16a3ca32266c042268ba2375b4
parent9a2e1886e0bd39ec174eb88f6f8951b78e1bfb2c
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>
mm/truncate.c