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