Messages in this thread Patch in this message | | | Date | Wed, 13 Jul 2011 21:39:35 +0200 | From | Oleg Nesterov <> | Subject | [PATCH] acct_arg_size: ptl is no longer needed for add_mm_counter() |
| |
acct_arg_size() takes ->page_table_lock around add_mm_counter() if !SPLIT_RSS_COUNTING. This is no needed after 172703b0 "mm: delete non-atomic mm counter implementation".
Signed-off-by: Oleg Nesterov <oleg@redhat.com> ---
fs/exec.c | 7 ------- 1 file changed, 7 deletions(-)
--- ptrace/fs/exec.c~acct_arg_size-no-ptl 2011-07-10 16:20:01.000000000 +0200 +++ ptrace/fs/exec.c 2011-07-13 21:36:29.000000000 +0200 @@ -181,14 +181,7 @@ static void acct_arg_size(struct linux_b return; bprm->vma_pages = pages; - -#ifdef SPLIT_RSS_COUNTING add_mm_counter(mm, MM_ANONPAGES, diff); -#else - spin_lock(&mm->page_table_lock); - add_mm_counter(mm, MM_ANONPAGES, diff); - spin_unlock(&mm->page_table_lock); -#endif } static struct page *get_arg_page(struct linux_binprm *bprm, unsigned long pos,
| |