patch-2.1.80 linux/fs/fat/mmap.c

Next file: linux/fs/filesystems.c
Previous file: linux/fs/fat/misc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.79/linux/fs/fat/mmap.c linux/fs/fat/mmap.c
@@ -118,11 +118,13 @@
 }
 
 
-int fat_readpage(struct inode * inode, struct page * page)
+int fat_readpage(struct dentry * dentry, struct page * page)
 {
+	struct inode * inode = dentry->d_inode;
 	if(MSDOS_SB(inode->i_sb)->cvf_format)
-	  if(MSDOS_SB(inode->i_sb)->cvf_format->cvf_readpage)
-	    return MSDOS_SB(inode->i_sb)->cvf_format->cvf_readpage(inode,page);
+		if(MSDOS_SB(inode->i_sb)->cvf_format->cvf_readpage)
+			return MSDOS_SB(inode->i_sb)->cvf_format
+				->cvf_readpage(inode,page);
 	    
 	printk("fat_readpage called with no handler (shouldn't happen)\n");
 	return -1;

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