[RFC 2.6.11-rc2-mm2 5/7] mm: manual page migration -- cleanup 5

Ray Bryant
2005-02-12T03:29:20Z

Fix up a switch statement so gcc doesn't complain about it.

Signed-off-by: Ray Bryant <raybry@sgi.com>

Index: linux/mm/mmigrate.c
===================================================================
--- linux.orig/mm/mmigrate.c 2005-01-30 11:13:58.000000000 -0800
+++ linux/mm/mmigrate.c 2005-01-30 11:19:33.000000000 -0800
@@ -319,17 +319,17 @@ generic_migrate_page(struct page *page,
/* Wait for all operations against the page to finish. */
ret = migrate_fn(page, newpage, &vlist);
switch (ret) {
- default:
- /* The page is busy. Try it later. */
- goto out_busy;
case -ENOENT:
/* The file the page belongs to has been truncated. */
page_cache_get(page);
page_cache_release(newpage);
newpage->mapping = NULL;
- /* fall thru */
+ break;
case 0:
- /* fall thru */
+ break;
+ default:
+ /* The page is busy. Try it later. */
+ goto out_busy;
}

arch_migrate_page(page, newpage);

--
Best Regards,
Ray
-----------------------------------------------
Ray Bryant raybry@sgi.com
The box said: "Requires Windows 98 or better",
so I installed Linux.
-----------------------------------------------