LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.11.7] Swapping OOPS fix for ATA Over Ethernet
@ 2005-05-13 17:24 McMullan, Jason
  0 siblings, 0 replies; only message in thread
From: McMullan, Jason @ 2005-05-13 17:24 UTC (permalink / raw)
  To: PPC_LINUX, Linux Kernel


[-- Attachment #1.1: Type: text/plain, Size: 163 bytes --]

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


-- 
Jason McMullan <jason.mcmullan@timesys.com>
TimeSys Corporation


[-- Attachment #1.2: swapping-unplug-oops.patch --]
[-- Type: text/x-patch, Size: 456 bytes --]

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@timesys.com>

--- 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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-13 17:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-13 17:24 [PATCH 2.6.11.7] Swapping OOPS fix for ATA Over Ethernet McMullan, Jason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox