diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/fork.c | 4 | ||||
-rw-r--r-- | kernel/power/disk.c | 2 | ||||
-rw-r--r-- | kernel/power/swsusp.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index cdef6cea890..b65187f0c74 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -208,8 +208,10 @@ static inline int dup_mmap(struct mm_struct * mm, struct mm_struct * oldmm) | |||
208 | struct file *file; | 208 | struct file *file; |
209 | 209 | ||
210 | if (mpnt->vm_flags & VM_DONTCOPY) { | 210 | if (mpnt->vm_flags & VM_DONTCOPY) { |
211 | long pages = vma_pages(mpnt); | ||
212 | mm->total_vm -= pages; | ||
211 | __vm_stat_account(mm, mpnt->vm_flags, mpnt->vm_file, | 213 | __vm_stat_account(mm, mpnt->vm_flags, mpnt->vm_file, |
212 | -vma_pages(mpnt)); | 214 | -pages); |
213 | continue; | 215 | continue; |
214 | } | 216 | } |
215 | charge = 0; | 217 | charge = 0; |
diff --git a/kernel/power/disk.c b/kernel/power/disk.c index c51a4d96d4e..3ec789c6b53 100644 --- a/kernel/power/disk.c +++ b/kernel/power/disk.c | |||
@@ -16,6 +16,8 @@ | |||
16 | #include <linux/device.h> | 16 | #include <linux/device.h> |
17 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
18 | #include <linux/fs.h> | 18 | #include <linux/fs.h> |
19 | #include <linux/mount.h> | ||
20 | |||
19 | #include "power.h" | 21 | #include "power.h" |
20 | 22 | ||
21 | 23 | ||
diff --git a/kernel/power/swsusp.c b/kernel/power/swsusp.c index 7d7801cd01f..f2bc71b9fe8 100644 --- a/kernel/power/swsusp.c +++ b/kernel/power/swsusp.c | |||
@@ -63,6 +63,7 @@ | |||
63 | #include <linux/console.h> | 63 | #include <linux/console.h> |
64 | #include <linux/highmem.h> | 64 | #include <linux/highmem.h> |
65 | #include <linux/bio.h> | 65 | #include <linux/bio.h> |
66 | #include <linux/mount.h> | ||
66 | 67 | ||
67 | #include <asm/uaccess.h> | 68 | #include <asm/uaccess.h> |
68 | #include <asm/mmu_context.h> | 69 | #include <asm/mmu_context.h> |
@@ -1260,8 +1261,6 @@ static int data_read(struct pbe *pblist) | |||
1260 | return error; | 1261 | return error; |
1261 | } | 1262 | } |
1262 | 1263 | ||
1263 | extern dev_t name_to_dev_t(const char *line); | ||
1264 | |||
1265 | /** | 1264 | /** |
1266 | * read_pagedir - Read page backup list pages from swap | 1265 | * read_pagedir - Read page backup list pages from swap |
1267 | */ | 1266 | */ |