patch-1.3.27 linux/ipc/shm.c
Next file: linux/kernel/exit.c
Previous file: linux/include/linux/tty.h
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Thu Sep 14 14:48:34 1995
- Orig file:
v1.3.26/linux/ipc/shm.c
- Orig date:
Thu Sep 7 17:17:19 1995
diff -u --recursive --new-file v1.3.26/linux/ipc/shm.c linux/ipc/shm.c
@@ -660,10 +660,10 @@
pte = pte_mkdirty(mk_pte(page, PAGE_SHARED));
shp->shm_pages[idx] = pte_val(pte);
} else
- --current->mm->maj_flt; /* was incremented in do_no_page */
+ --current->maj_flt; /* was incremented in do_no_page */
done: /* pte_val(pte) == shp->shm_pages[idx] */
- current->mm->min_flt++;
+ current->min_flt++;
mem_map[MAP_NR(pte_page(pte))]++;
return pte_modify(pte, shmd->vm_page_prot);
}
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]
with Sam's (original) version of this