Konstantin Khlebnikov
314e51b985
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
...
A long time ago, in v2.4, VM_RESERVED kept swapout process off VMA,
currently it lost original meaning but still has some effects:
| effect | alternative flags
-+------------------------+---------------------------------------------
1| account as reserved_vm | VM_IO
2| skip in core dump | VM_IO, VM_DONTDUMP
3| do not merge or expand | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP
4| do not mlock | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP
This patch removes reserved_vm counter from mm_struct. Seems like nobody
cares about it, it does not exported into userspace directly, it only
reduces total_vm showed in proc.
Thus VM_RESERVED can be replaced with VM_IO or pair VM_DONTEXPAND | VM_DONTDUMP.
remap_pfn_range() and io_remap_pfn_range() set VM_IO|VM_DONTEXPAND|VM_DONTDUMP.
remap_vmalloc_range() set VM_DONTEXPAND | VM_DONTDUMP.
[[email protected] : drivers/vfio/pci/vfio_pci.c fixup]
Signed-off-by: Konstantin Khlebnikov <[email protected] >
Cc: Alexander Viro <[email protected] >
Cc: Carsten Otte <[email protected] >
Cc: Chris Metcalf <[email protected] >
Cc: Cyrill Gorcunov <[email protected] >
Cc: Eric Paris <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: Hugh Dickins <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: James Morris <[email protected] >
Cc: Jason Baron <[email protected] >
Cc: Kentaro Takeda <[email protected] >
Cc: Matt Helsley <[email protected] >
Cc: Nick Piggin <[email protected] >
Cc: Oleg Nesterov <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Robert Richter <[email protected] >
Cc: Suresh Siddha <[email protected] >
Cc: Tetsuo Handa <[email protected] >
Cc: Venkatesh Pallipadi <[email protected] >
Acked-by: Linus Torvalds <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2012-10-09 16:22:19 +09:00
..
accessibility
acpi
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
2012-10-08 07:14:06 +09:00
amba
ata
SCSI for-linus on 20121002
2012-10-02 19:01:32 -07:00
atm
sections: fix section conflicts in drivers/atm
2012-10-06 03:04:40 +09:00
auxdisplay
base
firmware: use 'kernel_read()' to read firmware into kernel buffer
2012-10-04 09:19:02 -07:00
bcma
block
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
2012-10-08 06:38:18 +09:00
bluetooth
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2012-10-02 13:38:27 -07:00
bus
cdrom
char
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
2012-10-09 16:22:19 +09:00
clk
spi: Updates for v3.7
2012-10-02 17:26:42 -07:00
clocksource
Power management updates for 3.7-rc1
2012-10-02 18:32:35 -07:00
connector
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2012-10-02 13:38:27 -07:00
cpufreq
Power management updates for 3.7-rc1
2012-10-02 18:32:35 -07:00
cpuidle
crypto
ARM: soc: late platform updates
2012-10-07 20:55:16 +09:00
dca
devfreq
dio
dma
Sound updates for 3.7-rc1
2012-10-09 07:07:14 +09:00
edac
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
2012-10-06 03:16:12 +09:00
eisa
extcon
firewire
firmware
gpio
ARM: soc: late platform updates
2012-10-07 20:55:16 +09:00
gpu
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
2012-10-09 16:22:19 +09:00
hid
hsi
hv
hwmon
ARM: soc: late platform updates
2012-10-07 20:55:16 +09:00
hwspinlock
i2c
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
2012-10-08 07:14:06 +09:00
ide
sections: fix section conflicts in drivers/ide
2012-10-06 03:04:41 +09:00
idle
iio
infiniband
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
2012-10-09 16:22:19 +09:00
input
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
2012-10-08 07:14:06 +09:00
iommu
IOMMU Updates for Linux v3.7-rc1
2012-10-08 06:33:44 +09:00
irqchip
isdn
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2012-10-02 13:38:27 -07:00
leds
MFD bits for the 3.7 merge window.
2012-10-05 12:01:30 +09:00
lguest
Merge branch 'virtio-next' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
2012-10-07 21:04:56 +09:00
macintosh
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
2012-10-06 03:16:12 +09:00
md
media
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
2012-10-09 16:22:19 +09:00
memory
memstick
message
mfd
1. New drivers:
2012-10-07 17:29:24 +09:00
misc
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
2012-10-09 16:22:19 +09:00
mmc
sections: fix section conflicts in drivers/mmc
2012-10-06 03:04:42 +09:00
mtd
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
2012-10-09 16:22:19 +09:00
net
Second batch of changes for the 3.7 merge window:
2012-10-07 17:19:49 +09:00
nfc
nubus
of
Devicetree updates for 3.7
2012-10-03 09:44:08 -07:00
oprofile
mm: use mm->exe_file instead of first VM_EXECUTABLE vma->vm_file
2012-10-09 16:22:18 +09:00
parisc
parport
pci
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
2012-10-06 03:16:12 +09:00
pcmcia
pinctrl
ARM: soc: late platform updates
2012-10-07 20:55:16 +09:00
platform
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
2012-10-08 07:14:06 +09:00
pnp
power
1. New drivers:
2012-10-07 17:29:24 +09:00
pps
idr: rename MAX_LEVEL to MAX_IDR_LEVEL
2012-10-06 03:04:56 +09:00
ps3
ptp
pwm
MFD bits for the 3.7 merge window.
2012-10-05 12:01:30 +09:00
rapidio
rapidio: add destination ID allocation mechanism
2012-10-06 03:05:23 +09:00
regulator
MFD bits for the 3.7 merge window.
2012-10-05 12:01:30 +09:00
remoteproc
Merge branch 'virtio-next' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
2012-10-07 21:04:56 +09:00
rpmsg
Merge branch 'virtio-next' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
2012-10-07 21:04:56 +09:00
rtc
Merge branch 'akpm' (Andrew's patch-bomb)
2012-10-06 03:09:16 +09:00
s390
Merge branch 'virtio-next' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
2012-10-07 21:04:56 +09:00
sbus
scsi
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
2012-10-09 16:22:19 +09:00
sfi
sh
sn
spi
ARM: soc: late platform updates
2012-10-07 20:55:16 +09:00
ssb
staging
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
2012-10-09 16:22:19 +09:00
target
tc
thermal
idr: rename MAX_LEVEL to MAX_IDR_LEVEL
2012-10-06 03:04:56 +09:00
tty
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
2012-10-06 03:16:12 +09:00
uio
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
2012-10-09 16:22:19 +09:00
usb
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
2012-10-09 16:22:19 +09:00
uwb
vfio
vhost
video
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
2012-10-09 16:22:19 +09:00
virt
virtio
vlynq
vme
w1
watchdog
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
2012-10-07 21:06:10 +09:00
xen
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
2012-10-09 16:22:19 +09:00
zorro
Kconfig
Makefile
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2012-10-02 13:38:27 -07:00