summaryrefslogtreecommitdiffstats
path: root/fs/bfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bfs/inode.c')
-rw-r--r--fs/bfs/inode.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/fs/bfs/inode.c b/fs/bfs/inode.c
index 14e440f27..79c7c6507 100644
--- a/fs/bfs/inode.c
+++ b/fs/bfs/inode.c
@@ -59,12 +59,13 @@ static void bfs_read_inode(struct inode * inode)
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 void bfs_write_super(struct super_block *s)
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 @@ static struct file_system_type bfs_fs_type = {
name: "bfs",
fs_flags: FS_REQUIRES_DEV,
read_super: bfs_read_super,
- next: NULL
};
#ifdef MODULE