Commit 731b62ae authored by Art Haas's avatar Art Haas Committed by Jeff Garzik

[PATCH] C99 designated initializers for fs/isofs

parent 7cb31aff
...@@ -325,7 +325,7 @@ static int zisofs_readpage(struct file *file, struct page *page) ...@@ -325,7 +325,7 @@ static int zisofs_readpage(struct file *file, struct page *page)
} }
struct address_space_operations zisofs_aops = { struct address_space_operations zisofs_aops = {
readpage: zisofs_readpage, .readpage = zisofs_readpage,
/* No sync_page operation supported? */ /* No sync_page operation supported? */
/* No bmap operation supported */ /* No bmap operation supported */
}; };
......
...@@ -29,8 +29,8 @@ static int isofs_readdir(struct file *, void *, filldir_t); ...@@ -29,8 +29,8 @@ static int isofs_readdir(struct file *, void *, filldir_t);
struct file_operations isofs_dir_operations = struct file_operations isofs_dir_operations =
{ {
read: generic_read_dir, .read = generic_read_dir,
readdir: isofs_readdir, .readdir = isofs_readdir,
}; };
/* /*
...@@ -38,7 +38,7 @@ struct file_operations isofs_dir_operations = ...@@ -38,7 +38,7 @@ struct file_operations isofs_dir_operations =
*/ */
struct inode_operations isofs_dir_inode_operations = struct inode_operations isofs_dir_inode_operations =
{ {
lookup: isofs_lookup, .lookup = isofs_lookup,
}; };
int isofs_name_translate(struct iso_directory_record *de, char *new, struct inode *inode) int isofs_name_translate(struct iso_directory_record *de, char *new, struct inode *inode)
......
...@@ -124,11 +124,11 @@ static void destroy_inodecache(void) ...@@ -124,11 +124,11 @@ static void destroy_inodecache(void)
} }
static struct super_operations isofs_sops = { static struct super_operations isofs_sops = {
alloc_inode: isofs_alloc_inode, .alloc_inode = isofs_alloc_inode,
destroy_inode: isofs_destroy_inode, .destroy_inode = isofs_destroy_inode,
read_inode: isofs_read_inode, .read_inode = isofs_read_inode,
put_super: isofs_put_super, .put_super = isofs_put_super,
statfs: isofs_statfs, .statfs = isofs_statfs,
}; };
/* the export_operations structure for describing /* the export_operations structure for describing
...@@ -148,21 +148,21 @@ static struct export_operations isofs_export_ops = { ...@@ -148,21 +148,21 @@ static struct export_operations isofs_export_ops = {
static struct dentry_operations isofs_dentry_ops[] = { static struct dentry_operations isofs_dentry_ops[] = {
{ {
d_hash: isofs_hash, .d_hash = isofs_hash,
d_compare: isofs_dentry_cmp, .d_compare = isofs_dentry_cmp,
}, },
{ {
d_hash: isofs_hashi, .d_hash = isofs_hashi,
d_compare: isofs_dentry_cmpi, .d_compare = isofs_dentry_cmpi,
}, },
#ifdef CONFIG_JOLIET #ifdef CONFIG_JOLIET
{ {
d_hash: isofs_hash_ms, .d_hash = isofs_hash_ms,
d_compare: isofs_dentry_cmp_ms, .d_compare = isofs_dentry_cmp_ms,
}, },
{ {
d_hash: isofs_hashi_ms, .d_hash = isofs_hashi_ms,
d_compare: isofs_dentry_cmpi_ms, .d_compare = isofs_dentry_cmpi_ms,
} }
#endif #endif
}; };
...@@ -1063,9 +1063,9 @@ static int _isofs_bmap(struct address_space *mapping, long block) ...@@ -1063,9 +1063,9 @@ static int _isofs_bmap(struct address_space *mapping, long block)
} }
static struct address_space_operations isofs_aops = { static struct address_space_operations isofs_aops = {
readpage: isofs_readpage, .readpage = isofs_readpage,
sync_page: block_sync_page, .sync_page = block_sync_page,
bmap: _isofs_bmap .bmap = _isofs_bmap
}; };
static inline void test_and_set_uid(uid_t *p, uid_t value) static inline void test_and_set_uid(uid_t *p, uid_t value)
...@@ -1430,11 +1430,11 @@ static struct super_block *isofs_get_sb(struct file_system_type *fs_type, ...@@ -1430,11 +1430,11 @@ static struct super_block *isofs_get_sb(struct file_system_type *fs_type,
} }
static struct file_system_type iso9660_fs_type = { static struct file_system_type iso9660_fs_type = {
owner: THIS_MODULE, .owner = THIS_MODULE,
name: "iso9660", .name = "iso9660",
get_sb: isofs_get_sb, .get_sb = isofs_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_iso9660_fs(void) static int __init init_iso9660_fs(void)
......
...@@ -590,5 +590,5 @@ static int rock_ridge_symlink_readpage(struct file *file, struct page *page) ...@@ -590,5 +590,5 @@ static int rock_ridge_symlink_readpage(struct file *file, struct page *page)
} }
struct address_space_operations isofs_symlink_aops = { struct address_space_operations isofs_symlink_aops = {
readpage: rock_ridge_symlink_readpage .readpage = rock_ridge_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