patch-2.1.45 linux/mm/page_io.c

Next file: linux/mm/simp.c
Previous file: linux/mm/mremap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.44/linux/mm/page_io.c linux/mm/page_io.c
@@ -98,7 +98,7 @@
 			return;
 		wait_on_page(page);
 	} else if (p->swap_file) {
-		struct inode *swapf = p->swap_file;
+		struct inode *swapf = p->swap_file->d_inode;
 		unsigned int zones[PAGE_SIZE/512];
 		int i;
 		if (swapf->i_op->bmap == NULL

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov