diff options
-rw-r--r-- | fs/proc/meminfo.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/proc/meminfo.c b/fs/proc/meminfo.c index 9155a5a0d3b9..df4661abadc4 100644 --- a/fs/proc/meminfo.c +++ b/fs/proc/meminfo.c | |||
@@ -57,11 +57,8 @@ static int meminfo_proc_show(struct seq_file *m, void *v) | |||
57 | /* | 57 | /* |
58 | * Estimate the amount of memory available for userspace allocations, | 58 | * Estimate the amount of memory available for userspace allocations, |
59 | * without causing swapping. | 59 | * without causing swapping. |
60 | * | ||
61 | * Free memory cannot be taken below the low watermark, before the | ||
62 | * system starts swapping. | ||
63 | */ | 60 | */ |
64 | available = i.freeram - wmark_low; | 61 | available = i.freeram - totalreserve_pages; |
65 | 62 | ||
66 | /* | 63 | /* |
67 | * Not all the page cache can be freed, otherwise the system will | 64 | * Not all the page cache can be freed, otherwise the system will |