]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Bring truncate.c's code for truncate_inode_pages_range() inline into
authorHugh Dickins <hughd@google.com>
Tue, 26 Jul 2011 10:14:53 +0000 (20:14 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 1 Aug 2011 03:36:36 +0000 (13:36 +1000)
commit199bf482549b1c13abb39e225c6bd2a042239014
tree2456afc36c957278cbdf499e6ab6fa52e89cf9cf
parent9036eae9c7c327075277c1a6d185e12e1f350249
Bring truncate.c's code for truncate_inode_pages_range() inline into
shmem_truncate_range(), replacing its first call (there's a followup call
below, but leave that one, it will disappear next).

Don't play with it yet, apart from leaving out the cleancache flush, and
(importantly) the nrpages == 0 skip, and moving shmem_setattr()'s partial
page preparation into its partial page handling.

Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/shmem.c