]> Pileus Git - ~andy/linux/blobdiff - kernel/fork.c
mm: convert mm->nr_ptes to atomic_long_t
[~andy/linux] / kernel / fork.c
index f6d11fc67f722201f1048527e00564ccd381afc1..e2520756e0054b4508665c59178f4a651277521b 100644 (file)
@@ -532,7 +532,7 @@ static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p)
        mm->flags = (current->mm) ?
                (current->mm->flags & MMF_INIT_MASK) : default_dump_filter;
        mm->core_state = NULL;
-       mm->nr_ptes = 0;
+       atomic_long_set(&mm->nr_ptes, 0);
        memset(&mm->rss_stat, 0, sizeof(mm->rss_stat));
        spin_lock_init(&mm->page_table_lock);
        mm_init_aio(mm);