patch-2.4.0-prerelease linux/fs/ntfs/fs.c

Next file: linux/fs/openpromfs/Makefile
Previous file: linux/fs/ntfs/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test12/linux/fs/ntfs/fs.c linux/fs/ntfs/fs.c
@@ -601,7 +601,7 @@
 static int ntfs_prepare_write(struct file *file, struct page *page, unsigned from, unsigned to)
 {
 	return cont_prepare_write(page,from,to,ntfs_get_block,
-		&((struct inode*)page->mapping->host)->u.ntfs_i.mmu_private);
+		&page->mapping->host->u.ntfs_i.mmu_private);
 }
 static int _ntfs_bmap(struct address_space *mapping, long block)
 {
@@ -963,8 +963,10 @@
 EXPORT_NO_SYMBOLS;
 MODULE_AUTHOR("Martin von Löwis");
 MODULE_DESCRIPTION("NTFS driver");
+#ifdef DEBUG
 MODULE_PARM(ntdebug, "i");
 MODULE_PARM_DESC(ntdebug, "Debug level");
+#endif
 
 module_init(init_ntfs_fs)
 module_exit(exit_ntfs_fs)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)