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

Next file: linux/fs/hfs/file_cap.c
Previous file: linux/fs/hfs/dir_nat.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/hfs/file.c linux/fs/hfs/file.c
@@ -31,7 +31,7 @@
 
 /*================ Global variables ================*/
 
-static struct file_operations hfs_file_operations = {
+struct file_operations hfs_file_operations = {
 	read:		hfs_file_read,
 	write:		hfs_file_write,
 	mmap:		generic_file_mmap,
@@ -39,19 +39,8 @@
 };
 
 struct inode_operations hfs_file_inode_operations = {
-	&hfs_file_operations,	/* default file operations */
-	NULL,			/* create */
-	NULL,			/* lookup */
-	NULL,			/* link */
-	NULL,			/* unlink */
-	NULL,			/* symlink */
-	NULL,			/* mkdir */
-	NULL,			/* rmdir */
-	NULL,			/* mknod */
-	NULL,			/* rename */
-	NULL,			/* readlink */
-	NULL,			/* follow_link */
-	hfs_file_truncate,	/* truncate */
+	truncate:	hfs_file_truncate,
+	setattr:	hfs_notify_change,
 };
 
 /*================ Variable-like macros ================*/

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