patch-2.3.48 linux/fs/adfs/file.c

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

diff -u --recursive --new-file v2.3.47/linux/fs/adfs/file.c linux/fs/adfs/file.c
@@ -33,7 +33,7 @@
  * We have mostly NULLs here: the current defaults are OK for
  * the adfs filesystem.
  */
-static struct file_operations adfs_file_operations = {
+struct file_operations adfs_file_operations = {
 	read:		generic_file_read,
 	mmap:		generic_file_mmap,
 	fsync:		file_fsync,
@@ -43,8 +43,9 @@
 };
 
 struct inode_operations adfs_file_inode_operations = {
-	&adfs_file_operations,	/* default file 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)