* [patch 1/27] handle BIO allocation failures in swap_writepage()
@ 2002-07-04 23:53 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2002-07-04 23:53 UTC (permalink / raw)
To: Linus Torvalds; +Cc: lkml
If allocation of a BIO for swap writeout fails, mark the page dirty
again to save it from eviction.
page_io.c | 1 +
1 files changed, 1 insertion(+)
--- 2.5.24/mm/page_io.c~swap-bio-fail Thu Jul 4 16:17:05 2002
+++ 2.5.24-akpm/mm/page_io.c Thu Jul 4 16:22:13 2002
@@ -98,6 +98,7 @@ int swap_writepage(struct page *page)
}
bio = get_swap_bio(GFP_NOIO, page, end_swap_bio_write);
if (bio == NULL) {
+ set_page_dirty(page);
ret = -ENOMEM;
goto out;
}
-
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-07-04 23:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-04 23:53 [patch 1/27] handle BIO allocation failures in swap_writepage() Andrew Morton
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.