diff options
author | Hugh Dickins <hugh@veritas.com> | 2005-10-29 21:15:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 00:40:37 -0400 |
commit | ab50b8ed818016cfecd747d6d4bb9139986bc029 (patch) | |
tree | 33c666578c14dccce05b3f7a5538405098eebcc4 /mm/mprotect.c | |
parent | 72866f6f277ec0ddd6df7a3b6ecdcf59a28de115 (diff) |
[PATCH] mm: vm_stat_account unshackled
The original vm_stat_account has fallen into disuse, with only one user, and
only one user of vm_stat_unaccount. It's easier to keep track if we convert
them all to __vm_stat_account, then free it from its __shackles.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/mprotect.c')
-rw-r--r-- | mm/mprotect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/mprotect.c b/mm/mprotect.c index 57577f63b305..b426f01c5e9c 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c | |||
@@ -168,8 +168,8 @@ success: | |||
168 | vma->vm_flags = newflags; | 168 | vma->vm_flags = newflags; |
169 | vma->vm_page_prot = newprot; | 169 | vma->vm_page_prot = newprot; |
170 | change_protection(vma, start, end, newprot); | 170 | change_protection(vma, start, end, newprot); |
171 | __vm_stat_account(mm, oldflags, vma->vm_file, -nrpages); | 171 | vm_stat_account(mm, oldflags, vma->vm_file, -nrpages); |
172 | __vm_stat_account(mm, newflags, vma->vm_file, nrpages); | 172 | vm_stat_account(mm, newflags, vma->vm_file, nrpages); |
173 | return 0; | 173 | return 0; |
174 | 174 | ||
175 | fail: | 175 | fail: |