]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
tmpfs: copy truncate_inode_pages_range
authorHugh Dickins <hughd@google.com>
Wed, 3 Aug 2011 23:21:21 +0000 (16:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 4 Aug 2011 00:25:23 +0000 (14:25 -1000)
commitbda97eab0cc9c6385b9f26abdda6459f630f4513
treebfa418b90c5889a1cd33836fd8f0a2f0232e3dac
parent41ffe5d5ceef7f7ff2ff18e320d88ca6d629efaf
tmpfs: copy truncate_inode_pages_range

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/shmem.c