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;
static int minix_readdir(struct file *, void *, filldir_t);
struct file_operations minix_dir_operations = {
read: generic_read_dir,
readdir: minix_readdir,
fsync: minix_sync_file,
.read = generic_read_dir,
.readdir = minix_readdir,
.fsync = minix_sync_file,
};
static inline void dir_put_page(struct page *page)
......
......@@ -16,17 +16,17 @@
int minix_sync_file(struct file *, struct dentry *, int);
struct file_operations minix_file_operations = {
llseek: generic_file_llseek,
read: generic_file_read,
write: generic_file_write,
mmap: generic_file_mmap,
fsync: minix_sync_file,
sendfile: generic_file_sendfile,
.llseek = generic_file_llseek,
.read = generic_file_read,
.write = generic_file_write,
.mmap = generic_file_mmap,
.fsync = minix_sync_file,
.sendfile = generic_file_sendfile,
};
struct inode_operations minix_file_inode_operations = {
truncate: minix_truncate,
getattr: minix_getattr,
.truncate = minix_truncate,
.getattr = minix_getattr,
};
int minix_sync_file(struct file * file, struct dentry *dentry, int datasync)
......
......@@ -92,14 +92,14 @@ static void destroy_inodecache(void)
}
static struct super_operations minix_sops = {
alloc_inode: minix_alloc_inode,
destroy_inode: minix_destroy_inode,
read_inode: minix_read_inode,
write_inode: minix_write_inode,
delete_inode: minix_delete_inode,
put_super: minix_put_super,
statfs: minix_statfs,
remount_fs: minix_remount,
.alloc_inode = minix_alloc_inode,
.destroy_inode = minix_destroy_inode,
.read_inode = minix_read_inode,
.write_inode = minix_write_inode,
.delete_inode = minix_delete_inode,
.put_super = minix_put_super,
.statfs = minix_statfs,
.remount_fs = minix_remount,
};
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)
return generic_block_bmap(mapping,block,minix_get_block);
}
static struct address_space_operations minix_aops = {
readpage: minix_readpage,
writepage: minix_writepage,
sync_page: block_sync_page,
prepare_write: minix_prepare_write,
commit_write: generic_commit_write,
bmap: minix_bmap
.readpage = minix_readpage,
.writepage = minix_writepage,
.sync_page = block_sync_page,
.prepare_write = minix_prepare_write,
.commit_write = generic_commit_write,
.bmap = minix_bmap
};
static struct inode_operations minix_symlink_inode_operations = {
readlink: page_readlink,
follow_link: page_follow_link,
getattr: minix_getattr,
.readlink = page_readlink,
.follow_link = page_follow_link,
.getattr = minix_getattr,
};
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,
}
static struct file_system_type minix_fs_type = {
owner: THIS_MODULE,
name: "minix",
get_sb: minix_get_sb,
kill_sb: kill_block_super,
fs_flags: FS_REQUIRES_DEV,
.owner = THIS_MODULE,
.name = "minix",
.get_sb = minix_get_sb,
.kill_sb = kill_block_super,
.fs_flags = FS_REQUIRES_DEV,
};
static int __init init_minix_fs(void)
......
......@@ -51,7 +51,7 @@ static int minix_hash(struct dentry *dentry, struct qstr *qstr)
}
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)
......@@ -298,14 +298,14 @@ static int minix_rename(struct inode * old_dir, struct dentry *old_dentry,
* directories can handle most operations...
*/
struct inode_operations minix_dir_inode_operations = {
create: minix_create,
lookup: minix_lookup,
link: minix_link,
unlink: minix_unlink,
symlink: minix_symlink,
mkdir: minix_mkdir,
rmdir: minix_rmdir,
mknod: minix_mknod,
rename: minix_rename,
getattr: minix_getattr,
.create = minix_create,
.lookup = minix_lookup,
.link = minix_link,
.unlink = minix_unlink,
.symlink = minix_symlink,
.mkdir = minix_mkdir,
.rmdir = minix_rmdir,
.mknod = minix_mknod,
.rename = minix_rename,
.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