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) ...@@ -71,9 +71,9 @@ static int bfs_readdir(struct file * f, void * dirent, filldir_t filldir)
} }
struct file_operations bfs_dir_operations = { struct file_operations bfs_dir_operations = {
read: generic_read_dir, .read = generic_read_dir,
readdir: bfs_readdir, .readdir = bfs_readdir,
fsync: file_fsync, .fsync = file_fsync,
}; };
extern void dump_imap(const char *, struct super_block *); 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, ...@@ -263,11 +263,11 @@ static int bfs_rename(struct inode * old_dir, struct dentry * old_dentry,
} }
struct inode_operations bfs_dir_inops = { struct inode_operations bfs_dir_inops = {
create: bfs_create, .create = bfs_create,
lookup: bfs_lookup, .lookup = bfs_lookup,
link: bfs_link, .link = bfs_link,
unlink: bfs_unlink, .unlink = bfs_unlink,
rename: bfs_rename, .rename = bfs_rename,
}; };
static int bfs_add_entry(struct inode * dir, const char * name, int namelen, int ino) static int bfs_add_entry(struct inode * dir, const char * name, int namelen, int ino)
......
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
#endif #endif
struct file_operations bfs_file_operations = { struct file_operations bfs_file_operations = {
llseek: generic_file_llseek, .llseek = generic_file_llseek,
read: generic_file_read, .read = generic_file_read,
write: generic_file_write, .write = generic_file_write,
mmap: generic_file_mmap, .mmap = generic_file_mmap,
sendfile: generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
static int bfs_move_block(unsigned long from, unsigned long to, struct super_block *sb) 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) ...@@ -151,12 +151,12 @@ static int bfs_bmap(struct address_space *mapping, long block)
} }
struct address_space_operations bfs_aops = { struct address_space_operations bfs_aops = {
readpage: bfs_readpage, .readpage = bfs_readpage,
writepage: bfs_writepage, .writepage = bfs_writepage,
sync_page: block_sync_page, .sync_page = block_sync_page,
prepare_write: bfs_prepare_write, .prepare_write = bfs_prepare_write,
commit_write: generic_commit_write, .commit_write = generic_commit_write,
bmap: bfs_bmap, .bmap = bfs_bmap,
}; };
struct inode_operations bfs_file_inops; struct inode_operations bfs_file_inops;
...@@ -253,14 +253,14 @@ static void destroy_inodecache(void) ...@@ -253,14 +253,14 @@ static void destroy_inodecache(void)
} }
static struct super_operations bfs_sops = { static struct super_operations bfs_sops = {
alloc_inode: bfs_alloc_inode, .alloc_inode = bfs_alloc_inode,
destroy_inode: bfs_destroy_inode, .destroy_inode = bfs_destroy_inode,
read_inode: bfs_read_inode, .read_inode = bfs_read_inode,
write_inode: bfs_write_inode, .write_inode = bfs_write_inode,
delete_inode: bfs_delete_inode, .delete_inode = bfs_delete_inode,
put_super: bfs_put_super, .put_super = bfs_put_super,
write_super: bfs_write_super, .write_super = bfs_write_super,
statfs: bfs_statfs, .statfs = bfs_statfs,
}; };
void dump_imap(const char *prefix, struct super_block * s) 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, ...@@ -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 = { static struct file_system_type bfs_fs_type = {
owner: THIS_MODULE, .owner = THIS_MODULE,
name: "bfs", .name = "bfs",
get_sb: bfs_get_sb, .get_sb = bfs_get_sb,
kill_sb: kill_block_super, .kill_sb = kill_block_super,
fs_flags: FS_REQUIRES_DEV, .fs_flags = FS_REQUIRES_DEV,
}; };
static int __init init_bfs_fs(void) 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