summaryrefslogtreecommitdiffstats
path: root/fs/proc/mem.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
committer <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
commit19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch)
tree40b1cb534496a7f1ca0f5c314a523c69f1fee464 /fs/proc/mem.c
parent7206675c40394c78a90e74812bbdbf8cf3cca1be (diff)
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'fs/proc/mem.c')
-rw-r--r--fs/proc/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/mem.c b/fs/proc/mem.c
index 0a0ac25e9..ccd67566f 100644
--- a/fs/proc/mem.c
+++ b/fs/proc/mem.c
@@ -298,7 +298,7 @@ int mem_mmap(struct inode * inode, struct file * file,
set_pte(src_table, pte_mkdirty(*src_table));
set_pte(dest_table, *src_table);
- mem_map[MAP_NR(pte_page(*src_table))].count++;
+ atomic_inc(&mem_map[MAP_NR(pte_page(*src_table))].count);
stmp += PAGE_SIZE;
dtmp += PAGE_SIZE;
@@ -314,7 +314,7 @@ static struct file_operations proc_mem_operations = {
mem_read,
mem_write,
NULL, /* mem_readdir */
- NULL, /* mem_select */
+ NULL, /* mem_poll */
NULL, /* mem_ioctl */
mem_mmap, /* mmap */
NULL, /* no special open code */