lkml.org 
[lkml]   [2003]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] swapon note error
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();
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.385 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site