patch-2.4.0-test2 linux/fs/adfs/file.c

Next file: linux/fs/adfs/inode.c
Previous file: linux/fs/adfs/dir_fplus.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test1/linux/fs/adfs/file.c linux/fs/adfs/file.c
@@ -29,24 +29,13 @@
 
 #include "adfs.h"
 
-/*
- * We have mostly NULLs here: the current defaults are OK for
- * the adfs filesystem.
- */
 struct file_operations adfs_file_operations = {
 	read:		generic_file_read,
 	mmap:		generic_file_mmap,
 	fsync:		file_fsync,
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0)
 	write:		generic_file_write,
-#endif
 };
 
 struct inode_operations adfs_file_inode_operations = {
 	setattr:	adfs_notify_change,
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)
-	&adfs_file_operations,	/* default file operations */
-	readpage:	generic_readpage,
-	bmap:		adfs_bmap,
-#endif
 };

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