Commit 96123596 authored by Luca Tettamanti's avatar Luca Tettamanti Committed by Linus Torvalds

[PATCH] C99 designated initializer for fs/jffs

parent 6e23d74a
...@@ -1615,9 +1615,9 @@ jffs_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, ...@@ -1615,9 +1615,9 @@ jffs_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
static struct address_space_operations jffs_address_operations = { static struct address_space_operations jffs_address_operations = {
readpage: jffs_readpage, .readpage = jffs_readpage,
prepare_write: jffs_prepare_write, .prepare_write = jffs_prepare_write,
commit_write: jffs_commit_write, .commit_write = jffs_commit_write,
}; };
static int jffs_fsync(struct file *f, struct dentry *d, int datasync) static int jffs_fsync(struct file *f, struct dentry *d, int datasync)
...@@ -1634,41 +1634,41 @@ extern loff_t generic_file_llseek(struct file *, loff_t, int) __attribute__((wea ...@@ -1634,41 +1634,41 @@ extern loff_t generic_file_llseek(struct file *, loff_t, int) __attribute__((wea
static struct file_operations jffs_file_operations = static struct file_operations jffs_file_operations =
{ {
open: generic_file_open, .open = generic_file_open,
llseek: generic_file_llseek, .llseek = generic_file_llseek,
read: generic_file_read, .read = generic_file_read,
write: generic_file_write, .write = generic_file_write,
ioctl: jffs_ioctl, .ioctl = jffs_ioctl,
mmap: generic_file_mmap, .mmap = generic_file_mmap,
fsync: jffs_fsync, .fsync = jffs_fsync,
sendfile: generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
static struct inode_operations jffs_file_inode_operations = static struct inode_operations jffs_file_inode_operations =
{ {
lookup: jffs_lookup, /* lookup */ .lookup = jffs_lookup, /* lookup */
setattr: jffs_setattr, .setattr = jffs_setattr,
}; };
static struct file_operations jffs_dir_operations = static struct file_operations jffs_dir_operations =
{ {
readdir: jffs_readdir, .readdir = jffs_readdir,
}; };
static struct inode_operations jffs_dir_inode_operations = static struct inode_operations jffs_dir_inode_operations =
{ {
create: jffs_create, .create = jffs_create,
lookup: jffs_lookup, .lookup = jffs_lookup,
unlink: jffs_unlink, .unlink = jffs_unlink,
symlink: jffs_symlink, .symlink = jffs_symlink,
mkdir: jffs_mkdir, .mkdir = jffs_mkdir,
rmdir: jffs_rmdir, .rmdir = jffs_rmdir,
mknod: jffs_mknod, .mknod = jffs_mknod,
rename: jffs_rename, .rename = jffs_rename,
setattr: jffs_setattr, .setattr = jffs_setattr,
}; };
...@@ -1768,11 +1768,11 @@ jffs_write_super(struct super_block *sb) ...@@ -1768,11 +1768,11 @@ jffs_write_super(struct super_block *sb)
static struct super_operations jffs_ops = static struct super_operations jffs_ops =
{ {
read_inode: jffs_read_inode, .read_inode = jffs_read_inode,
delete_inode: jffs_delete_inode, .delete_inode = jffs_delete_inode,
put_super: jffs_put_super, .put_super = jffs_put_super,
write_super: jffs_write_super, .write_super = jffs_write_super,
statfs: jffs_statfs, .statfs = jffs_statfs,
}; };
static struct super_block *jffs_get_sb(struct file_system_type *fs_type, static struct super_block *jffs_get_sb(struct file_system_type *fs_type,
...@@ -1782,11 +1782,11 @@ static struct super_block *jffs_get_sb(struct file_system_type *fs_type, ...@@ -1782,11 +1782,11 @@ static struct super_block *jffs_get_sb(struct file_system_type *fs_type,
} }
static struct file_system_type jffs_fs_type = { static struct file_system_type jffs_fs_type = {
owner: THIS_MODULE, .owner = THIS_MODULE,
name: "jffs", .name = "jffs",
get_sb: jffs_get_sb, .get_sb = jffs_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 static int __init
......
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