* [PATCH] swapon note error
@ 2003-08-29 21:01 Hugh Dickins
0 siblings, 0 replies; only message in thread
From: Hugh Dickins @ 2003-08-29 21:01 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
It's good that swapon fails on a tmpfs file ("swapfile has holes"),
but not good that it then hangs up: note error from setup_swap_extents.
Hugh
--- 2.6.0-test4-mm3-1/mm/swapfile.c Mon Aug 11 14:20:43 2003
+++ linux/mm/swapfile.c Fri Aug 29 20:53:33 2003
@@ -1403,7 +1403,8 @@
p->max = maxpages;
p->pages = nr_good_pages;
- if (setup_swap_extents(p))
+ error = setup_swap_extents(p);
+ if (error)
goto bad_swap;
swap_list_lock();
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-08-29 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-29 21:01 [PATCH] swapon note error Hugh Dickins
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.