[PATCH 2.6.11.7] Swapping OOPS fix for ATA Over Ethernet

From: McMullan, Jason
Date: Fri May 13 2005 - 12:28:10 EST


This patch fixes swapping for devices that do not need to define an
unplug_io_fn().


--
Jason McMullan <jason.mcmullan@xxxxxxxxxxx>
TimeSys Corporation

Description: Fix OOPS when swapping on a device that doesn't have
an unplug_io_fn defined (ie, ATA Over Ethernet)
Signed-Off-By: Jason McMullan <jason.mcmullan@xxxxxxxxxxx>

--- linux-orig/mm/swapfile.c
+++ linux/mm/swapfile.c
@@ -80,7 +80,7 @@
WARN_ON(page_count(page) <= 1);

bdi = bdev->bd_inode->i_mapping->backing_dev_info;
- bdi->unplug_io_fn(bdi, page);
+ blk_run_backing_dev(bdi, page);
}
up_read(&swap_unplug_sem);
}

Attachment: signature.asc
Description: This is a digitally signed message part