Home
last modified time | relevance | path

Searched hist:"77142517990 fd3d982678c2945ea2c4188ec5f9a" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/mm/
H A Dshmem.cdiff 77142517990fd3d982678c2945ea2c4188ec5f9a Wed Aug 06 18:06:34 CDT 2014 Konstantin Khlebnikov <koct9i@gmail.com> 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/<pid>/map_files/... (available if
CONFIG_CHECKPOINT_RESTORE=y) allows that.

This patch adjusts the memory reservation in shmem_setattr().

Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com>
Acked-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>