diff options
author | Konstantin Khlebnikov <koct9i@gmail.com> | 2014-08-07 01:06:34 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-07 03:01:19 +0200 |
commit | 77142517990fd3d982678c2945ea2c4188ec5f9a (patch) | |
tree | 9ad927b6f48ad2e6a89830ae4f3ee3fa99976646 /mm/mmap.c | |
parent | shmem: fix double uncharge in __shmem_file_setup() (diff) | |
download | linux-77142517990fd3d982678c2945ea2c4188ec5f9a.tar.xz linux-77142517990fd3d982678c2945ea2c4188ec5f9a.zip |
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions