diff options
Diffstat (limited to 'fs/proc/mem.c')
-rw-r--r-- | fs/proc/mem.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/proc/mem.c b/fs/proc/mem.c index 117587d8d..0e89f7645 100644 --- a/fs/proc/mem.c +++ b/fs/proc/mem.c @@ -298,7 +298,7 @@ int mem_mmap(struct file * file, struct vm_area_struct * vma) set_pte(dest_table, *src_table); mapnr = MAP_NR(pte_page(*src_table)); if (mapnr < max_mapnr) - atomic_inc(&mem_map[MAP_NR(pte_page(*src_table))].count); + get_page(mem_map + MAP_NR(pte_page(*src_table))); stmp += PAGE_SIZE; dtmp += PAGE_SIZE; @@ -336,9 +336,12 @@ struct inode_operations proc_mem_inode_operations = { NULL, /* rename */ NULL, /* readlink */ NULL, /* follow_link */ + NULL, /* bmap */ NULL, /* readpage */ NULL, /* writepage */ - NULL, /* bmap */ + NULL, /* flushpage */ NULL, /* truncate */ - proc_permission /* permission */ + proc_permission, /* permission */ + NULL, /* smap */ + NULL /* revalidate */ }; |