patch-2.3.48 linux/fs/bfs/inode.c

Next file: linux/fs/binfmt_elf.c
Previous file: linux/fs/bfs/file.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/bfs/inode.c linux/fs/bfs/inode.c
@@ -59,12 +59,13 @@
 	if (di->i_vtype == BFS_VDIR) {
 		inode->i_mode |= S_IFDIR;
 		inode->i_op = &bfs_dir_inops;
+		inode->i_fop = &bfs_dir_operations;
 	} else if (di->i_vtype == BFS_VREG) {
 		inode->i_mode |= S_IFREG;
 		inode->i_op = &bfs_file_inops;
+		inode->i_fop = &bfs_file_operations;
 		inode->i_mapping->a_ops = &bfs_aops;
-	} else 
-		inode->i_op = NULL;
+	}
 
 	inode->i_uid = di->i_uid;
 	inode->i_gid = di->i_gid;
@@ -209,15 +210,10 @@
 static struct super_operations bfs_sops = {
 	read_inode:	bfs_read_inode,
 	write_inode:	bfs_write_inode,
-	put_inode:	NULL,
 	delete_inode:	bfs_delete_inode,
-	notify_change:	NULL,
 	put_super:	bfs_put_super,
 	write_super:	bfs_write_super,
 	statfs:		bfs_statfs,
-	remount_fs:	NULL,
-	clear_inode:	NULL,
-	umount_begin:	NULL
 };
 
 void dump_imap(const char *prefix, struct super_block * s)
@@ -337,7 +333,6 @@
 	name:		"bfs",
 	fs_flags:	FS_REQUIRES_DEV,
 	read_super:	bfs_read_super,
-	next:		NULL
 };
 
 #ifdef MODULE

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