Commit 2b443eea authored by Art Haas's avatar Art Haas Committed by Jeff Garzik

[PATCH] C99 designated initializers for fs/minix

parent 608f7c9b
...@@ -15,9 +15,9 @@ typedef struct minix_dir_entry minix_dirent; ...@@ -15,9 +15,9 @@ typedef struct minix_dir_entry minix_dirent;
static int minix_readdir(struct file *, void *, filldir_t); static int minix_readdir(struct file *, void *, filldir_t);
struct file_operations minix_dir_operations = { struct file_operations minix_dir_operations = {
read: generic_read_dir, .read = generic_read_dir,
readdir: minix_readdir, .readdir = minix_readdir,
fsync: minix_sync_file, .fsync = minix_sync_file,
}; };
static inline void dir_put_page(struct page *page) static inline void dir_put_page(struct page *page)
......
...@@ -16,17 +16,17 @@ ...@@ -16,17 +16,17 @@
int minix_sync_file(struct file *, struct dentry *, int); int minix_sync_file(struct file *, struct dentry *, int);
struct file_operations minix_file_operations = { struct file_operations minix_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,
fsync: minix_sync_file, .fsync = minix_sync_file,
sendfile: generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
struct inode_operations minix_file_inode_operations = { struct inode_operations minix_file_inode_operations = {
truncate: minix_truncate, .truncate = minix_truncate,
getattr: minix_getattr, .getattr = minix_getattr,
}; };
int minix_sync_file(struct file * file, struct dentry *dentry, int datasync) int minix_sync_file(struct file * file, struct dentry *dentry, int datasync)
......
...@@ -92,14 +92,14 @@ static void destroy_inodecache(void) ...@@ -92,14 +92,14 @@ static void destroy_inodecache(void)
} }
static struct super_operations minix_sops = { static struct super_operations minix_sops = {
alloc_inode: minix_alloc_inode, .alloc_inode = minix_alloc_inode,
destroy_inode: minix_destroy_inode, .destroy_inode = minix_destroy_inode,
read_inode: minix_read_inode, .read_inode = minix_read_inode,
write_inode: minix_write_inode, .write_inode = minix_write_inode,
delete_inode: minix_delete_inode, .delete_inode = minix_delete_inode,
put_super: minix_put_super, .put_super = minix_put_super,
statfs: minix_statfs, .statfs = minix_statfs,
remount_fs: minix_remount, .remount_fs = minix_remount,
}; };
static int minix_remount (struct super_block * sb, int * flags, char * data) static int minix_remount (struct super_block * sb, int * flags, char * data)
...@@ -333,18 +333,18 @@ static int minix_bmap(struct address_space *mapping, long block) ...@@ -333,18 +333,18 @@ static int minix_bmap(struct address_space *mapping, long block)
return generic_block_bmap(mapping,block,minix_get_block); return generic_block_bmap(mapping,block,minix_get_block);
} }
static struct address_space_operations minix_aops = { static struct address_space_operations minix_aops = {
readpage: minix_readpage, .readpage = minix_readpage,
writepage: minix_writepage, .writepage = minix_writepage,
sync_page: block_sync_page, .sync_page = block_sync_page,
prepare_write: minix_prepare_write, .prepare_write = minix_prepare_write,
commit_write: generic_commit_write, .commit_write = generic_commit_write,
bmap: minix_bmap .bmap = minix_bmap
}; };
static struct inode_operations minix_symlink_inode_operations = { static struct inode_operations minix_symlink_inode_operations = {
readlink: page_readlink, .readlink = page_readlink,
follow_link: page_follow_link, .follow_link = page_follow_link,
getattr: minix_getattr, .getattr = minix_getattr,
}; };
void minix_set_inode(struct inode *inode, dev_t rdev) void minix_set_inode(struct inode *inode, dev_t rdev)
...@@ -554,11 +554,11 @@ static struct super_block *minix_get_sb(struct file_system_type *fs_type, ...@@ -554,11 +554,11 @@ static struct super_block *minix_get_sb(struct file_system_type *fs_type,
} }
static struct file_system_type minix_fs_type = { static struct file_system_type minix_fs_type = {
owner: THIS_MODULE, .owner = THIS_MODULE,
name: "minix", .name = "minix",
get_sb: minix_get_sb, .get_sb = minix_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_minix_fs(void) static int __init init_minix_fs(void)
......
...@@ -51,7 +51,7 @@ static int minix_hash(struct dentry *dentry, struct qstr *qstr) ...@@ -51,7 +51,7 @@ static int minix_hash(struct dentry *dentry, struct qstr *qstr)
} }
struct dentry_operations minix_dentry_operations = { struct dentry_operations minix_dentry_operations = {
d_hash: minix_hash, .d_hash = minix_hash,
}; };
static struct dentry *minix_lookup(struct inode * dir, struct dentry *dentry) static struct dentry *minix_lookup(struct inode * dir, struct dentry *dentry)
...@@ -298,14 +298,14 @@ static int minix_rename(struct inode * old_dir, struct dentry *old_dentry, ...@@ -298,14 +298,14 @@ static int minix_rename(struct inode * old_dir, struct dentry *old_dentry,
* directories can handle most operations... * directories can handle most operations...
*/ */
struct inode_operations minix_dir_inode_operations = { struct inode_operations minix_dir_inode_operations = {
create: minix_create, .create = minix_create,
lookup: minix_lookup, .lookup = minix_lookup,
link: minix_link, .link = minix_link,
unlink: minix_unlink, .unlink = minix_unlink,
symlink: minix_symlink, .symlink = minix_symlink,
mkdir: minix_mkdir, .mkdir = minix_mkdir,
rmdir: minix_rmdir, .rmdir = minix_rmdir,
mknod: minix_mknod, .mknod = minix_mknod,
rename: minix_rename, .rename = minix_rename,
getattr: minix_getattr, .getattr = minix_getattr,
}; };
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