Commit cf1bc5cc authored by Art Haas's avatar Art Haas Committed by Jeff Garzik

[PATCH] C99 designated initializers for fs/efs

parent 2b443eea
...@@ -11,12 +11,12 @@ ...@@ -11,12 +11,12 @@
static int efs_readdir(struct file *, void *, filldir_t); static int efs_readdir(struct file *, void *, filldir_t);
struct file_operations efs_dir_operations = { struct file_operations efs_dir_operations = {
read: generic_read_dir, .read = generic_read_dir,
readdir: efs_readdir, .readdir = efs_readdir,
}; };
struct inode_operations efs_dir_inode_operations = { struct inode_operations efs_dir_inode_operations = {
lookup: efs_lookup, .lookup = efs_lookup,
}; };
static int efs_readdir(struct file *filp, void *dirent, filldir_t filldir) { static int efs_readdir(struct file *filp, void *dirent, filldir_t filldir) {
......
...@@ -24,9 +24,9 @@ static int _efs_bmap(struct address_space *mapping, long block) ...@@ -24,9 +24,9 @@ static int _efs_bmap(struct address_space *mapping, long block)
return generic_block_bmap(mapping,block,efs_get_block); return generic_block_bmap(mapping,block,efs_get_block);
} }
struct address_space_operations efs_aops = { struct address_space_operations efs_aops = {
readpage: efs_readpage, .readpage = efs_readpage,
sync_page: block_sync_page, .sync_page = block_sync_page,
bmap: _efs_bmap .bmap = _efs_bmap
}; };
static inline void extent_copy(efs_extent *src, efs_extent *dst) { static inline void extent_copy(efs_extent *src, efs_extent *dst) {
......
...@@ -21,11 +21,11 @@ static struct super_block *efs_get_sb(struct file_system_type *fs_type, ...@@ -21,11 +21,11 @@ static struct super_block *efs_get_sb(struct file_system_type *fs_type,
} }
static struct file_system_type efs_fs_type = { static struct file_system_type efs_fs_type = {
owner: THIS_MODULE, .owner = THIS_MODULE,
name: "efs", .name = "efs",
get_sb: efs_get_sb, .get_sb = efs_get_sb,
kill_sb: kill_block_super, .kill_sb = kill_block_super,
fs_flags: FS_REQUIRES_DEV, .fs_flags = FS_REQUIRES_DEV,
}; };
static kmem_cache_t * efs_inode_cachep; static kmem_cache_t * efs_inode_cachep;
...@@ -77,11 +77,11 @@ void efs_put_super(struct super_block *s) ...@@ -77,11 +77,11 @@ void efs_put_super(struct super_block *s)
} }
static struct super_operations efs_superblock_operations = { static struct super_operations efs_superblock_operations = {
alloc_inode: efs_alloc_inode, .alloc_inode = efs_alloc_inode,
destroy_inode: efs_destroy_inode, .destroy_inode = efs_destroy_inode,
read_inode: efs_read_inode, .read_inode = efs_read_inode,
put_super: efs_put_super, .put_super = efs_put_super,
statfs: efs_statfs, .statfs = efs_statfs,
}; };
static int __init init_efs_fs(void) { static int __init init_efs_fs(void) {
......
...@@ -54,5 +54,5 @@ static int efs_symlink_readpage(struct file *file, struct page *page) ...@@ -54,5 +54,5 @@ static int efs_symlink_readpage(struct file *file, struct page *page)
} }
struct address_space_operations efs_symlink_aops = { struct address_space_operations efs_symlink_aops = {
readpage: efs_symlink_readpage .readpage = efs_symlink_readpage
}; };
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