From: Konstantin Khlebnikov Date: Wed, 6 Aug 2014 23:06:34 +0000 (-0700) Subject: shmem: update memory reservation on truncate X-Git-Tag: omap-for-v3.17/fixes-against-rc2~137^2~136 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77142517990fd3d982678c2945ea2c4188ec5f9a;p=pandora-kernel.git shmem: update memory reservation on truncate A shared anonymous mapping created without MAP_NORESERVE holds memory reservation for whole range of shmem segment. Usually there is no way to change its size, but /proc//map_files/... (available if CONFIG_CHECKPOINT_RESTORE=y) allows that. This patch adjusts the memory reservation in shmem_setattr(). Signed-off-by: Konstantin Khlebnikov Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed