Commit 608f7c9b authored by Art Haas's avatar Art Haas Committed by Jeff Garzik

[PATCH] C99 designated initializer for fs/bfs

parent f2cdc86d
......@@ -71,9 +71,9 @@ static int bfs_readdir(struct file * f, void * dirent, filldir_t filldir)
}
struct file_operations bfs_dir_operations = {
read: generic_read_dir,
readdir: bfs_readdir,
fsync: file_fsync,
.read = generic_read_dir,
.readdir = bfs_readdir,
.fsync = file_fsync,
};
extern void dump_imap(const char *, struct super_block *);
......@@ -263,11 +263,11 @@ static int bfs_rename(struct inode * old_dir, struct dentry * old_dentry,
}
struct inode_operations bfs_dir_inops = {
create: bfs_create,
lookup: bfs_lookup,
link: bfs_link,
unlink: bfs_unlink,
rename: bfs_rename,
.create = bfs_create,
.lookup = bfs_lookup,
.link = bfs_link,
.unlink = bfs_unlink,
.rename = bfs_rename,
};
static int bfs_add_entry(struct inode * dir, const char * name, int namelen, int ino)
......
......@@ -18,11 +18,11 @@
#endif
struct file_operations bfs_file_operations = {
llseek: generic_file_llseek,
read: generic_file_read,
write: generic_file_write,
mmap: generic_file_mmap,
sendfile: generic_file_sendfile,
.llseek = generic_file_llseek,
.read = generic_file_read,
.write = generic_file_write,
.mmap = generic_file_mmap,
.sendfile = generic_file_sendfile,
};
static int bfs_move_block(unsigned long from, unsigned long to, struct super_block *sb)
......@@ -151,12 +151,12 @@ static int bfs_bmap(struct address_space *mapping, long block)
}
struct address_space_operations bfs_aops = {
readpage: bfs_readpage,
writepage: bfs_writepage,
sync_page: block_sync_page,
prepare_write: bfs_prepare_write,
commit_write: generic_commit_write,
bmap: bfs_bmap,
.readpage = bfs_readpage,
.writepage = bfs_writepage,
.sync_page = block_sync_page,
.prepare_write = bfs_prepare_write,
.commit_write = generic_commit_write,
.bmap = bfs_bmap,
};
struct inode_operations bfs_file_inops;
......@@ -253,14 +253,14 @@ static void destroy_inodecache(void)
}
static struct super_operations bfs_sops = {
alloc_inode: bfs_alloc_inode,
destroy_inode: bfs_destroy_inode,
read_inode: bfs_read_inode,
write_inode: bfs_write_inode,
delete_inode: bfs_delete_inode,
put_super: bfs_put_super,
write_super: bfs_write_super,
statfs: bfs_statfs,
.alloc_inode = bfs_alloc_inode,
.destroy_inode = bfs_destroy_inode,
.read_inode = bfs_read_inode,
.write_inode = bfs_write_inode,
.delete_inode = bfs_delete_inode,
.put_super = bfs_put_super,
.write_super = bfs_write_super,
.statfs = bfs_statfs,
};
void dump_imap(const char *prefix, struct super_block * s)
......@@ -381,11 +381,11 @@ static struct super_block *bfs_get_sb(struct file_system_type *fs_type,
}
static struct file_system_type bfs_fs_type = {
owner: THIS_MODULE,
name: "bfs",
get_sb: bfs_get_sb,
kill_sb: kill_block_super,
fs_flags: FS_REQUIRES_DEV,
.owner = THIS_MODULE,
.name = "bfs",
.get_sb = bfs_get_sb,
.kill_sb = kill_block_super,
.fs_flags = FS_REQUIRES_DEV,
};
static int __init init_bfs_fs(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment