patch-2.3.43 linux/fs/hfs/file_hdr.c

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

diff -u --recursive --new-file v2.3.42/linux/fs/hfs/file_hdr.c linux/fs/hfs/file_hdr.c
@@ -48,19 +48,9 @@
 /*================ Global variables ================*/
 
 static struct file_operations hfs_hdr_operations = {
-	NULL,			/* lseek - default */
-	hdr_read,		/* read */
-	hdr_write,		/* write */
-	NULL,			/* readdir - bad */
-	NULL,			/* select - default */
-	NULL,			/* ioctl - default */
-	NULL,			/* mmap - XXX: not yet */
-	NULL,			/* no special open code */
-	NULL,			/* flush */
-	NULL,			/* no special release code */
-	file_fsync,		/* fsync - default */
-        NULL,			/* fasync - default */
-        NULL			/* lock - none */
+	read:		hdr_read,
+	write:		hdr_write,
+	fsync:		file_fsync,
 };
 
 struct inode_operations hfs_hdr_inode_operations = {
@@ -76,13 +66,7 @@
 	NULL,			/* rename */
 	NULL,			/* readlink */
 	NULL,			/* follow_link */
-	NULL,			/* get_block - XXX: not available since
-				   header part has no disk block */
-	NULL,			/* readpage */
-	NULL,			/* writepage */
 	hdr_truncate,		/* truncate */
-	NULL,			/* permission */
-	NULL			/* revalidate */
 };
 
 const struct hfs_hdr_layout hfs_dbl_fil_hdr_layout = {

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