diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-06-22 23:05:57 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-06-22 23:05:57 +0000 |
commit | 51d3b7814cdccef9188240fe0cbd8d97ff2c7470 (patch) | |
tree | 5cbb01d0323d4f63ade66bdf48ba4a91aaa6df16 /ipc | |
parent | 52273a23c9a84336b93a35e4847fc88fac7eb0e4 (diff) |
Merge with Linux 2.3.7.
WARNING: 2.3.7 is known to eat filesystems for breakfast and little
children for lunch, so if you try this on your machine make backups
first ...
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/shm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -675,7 +675,7 @@ static unsigned long shm_nopage(struct vm_area_struct * shmd, unsigned long addr done: /* pte_val(pte) == shp->shm_pages[idx] */ current->min_flt++; - atomic_inc(&mem_map[MAP_NR(pte_page(pte))].count); + get_page(mem_map + MAP_NR(pte_page(pte))); return pte_page(pte); } @@ -730,7 +730,7 @@ int shm_swap (int prio, int gfp_mask) swap_free (swap_nr); return 0; } - if (atomic_read(&mem_map[MAP_NR(pte_page(page))].count) != 1) + if (page_count(mem_map + MAP_NR(pte_page(page))) != 1) goto check_table; shp->shm_pages[idx] = swap_nr; rw_swap_page_nocache (WRITE, swap_nr, (char *) pte_page(page)); @@ -751,7 +751,7 @@ static void shm_unuse_page(struct shmid_kernel *shp, unsigned long idx, pte = pte_mkdirty(mk_pte(page, PAGE_SHARED)); shp->shm_pages[idx] = pte_val(pte); - atomic_inc(&mem_map[MAP_NR(page)].count); + get_page(mem_map + MAP_NR(page)); shm_rss++; swap_free(entry); |