[PATCH] acct_arg_size: ptl is no longer needed for add_mm_counter()

From: Oleg Nesterov
Date: Wed Jul 13 2011 - 15:42:25 EST


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@xxxxxxxxxx>
---

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,

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/