diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2006-01-06 00:14:20 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 08:33:40 -0800 |
commit | e5e2fa7857f6bf46605c77d949fa6698b9b0bc28 (patch) | |
tree | e5d32d980939ce44ee8b60e7f1fd0732760f7607 /sound/oss/ad1848.c | |
parent | 72a97e08394a3b2e75481ff680ec2a0591e3cba4 (diff) | |
download | linux-3.10-e5e2fa7857f6bf46605c77d949fa6698b9b0bc28.tar.gz linux-3.10-e5e2fa7857f6bf46605c77d949fa6698b9b0bc28.tar.bz2 linux-3.10-e5e2fa7857f6bf46605c77d949fa6698b9b0bc28.zip |
[PATCH] swsusp: fix enough_free_mem
This patch fixes a problem with the function enough_free_mem() used by
swsusp to verify if there is a sufficient number of memory pages available
to it to create and save the suspend image.
Namely, enough_free_mem() uses nr_free_pages() to obtain the number of free
memory pages, which is incorrect, because this function returns the total
number of free pages, including free highmem pages, and the highmem pages
cannot be used by swsusp for storing the image data.
The patch makes enough_free_mem() avoid counting the free highmem
pages as available to swsusp.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'sound/oss/ad1848.c')
0 files changed, 0 insertions, 0 deletions