diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-06 20:54:06 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-06 21:05:17 (GMT) |
commit | 4f74d2c8e827af12596f153a564c868bf6dbe3dd (patch) | |
tree | 6ef2bafd6c23a4c4a9ef716ea530daea824a7721 /arch/x86/include | |
parent | 7e027b14d53e9729f823ba8652095d1e309aa8e9 (diff) | |
download | linux-fsl-qoriq-4f74d2c8e827af12596f153a564c868bf6dbe3dd.tar.xz |
vm: remove 'nr_accounted' calculations from the unmap_vmas() interfaces
The VM accounting makes no sense at this level, and half of the callers
didn't ever actually use the end result. The only time we want to
unaccount the memory is when we actually remove the vma, so do the
accounting at that point instead.
This simplifies the interfaces (no need to pass down that silly page
counter to functions that really don't care), and also makes it much
more obvious what is actually going on: we do vm_[un]acct_memory() when
adding or removing the vma, not on random page walking.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/include')
0 files changed, 0 insertions, 0 deletions