Commit c9067e32 authored by Art Haas's avatar Art Haas Committed by Linus Torvalds

[PATCH] C99 designated initializers for fs/fat

parent 62163fbb
...@@ -23,10 +23,10 @@ ...@@ -23,10 +23,10 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
struct file_operations fat_dir_operations = { struct file_operations fat_dir_operations = {
read: generic_read_dir, .read = generic_read_dir,
readdir: fat_readdir, .readdir = fat_readdir,
ioctl: fat_dir_ioctl, .ioctl = fat_dir_ioctl,
fsync: file_fsync, .fsync = file_fsync,
}; };
/* /*
......
...@@ -15,17 +15,17 @@ static ssize_t fat_file_write(struct file *filp, const char *buf, size_t count, ...@@ -15,17 +15,17 @@ static ssize_t fat_file_write(struct file *filp, const char *buf, size_t count,
loff_t *ppos); loff_t *ppos);
struct file_operations fat_file_operations = { struct file_operations fat_file_operations = {
llseek: generic_file_llseek, .llseek = generic_file_llseek,
read: generic_file_read, .read = generic_file_read,
write: fat_file_write, .write = fat_file_write,
mmap: generic_file_mmap, .mmap = generic_file_mmap,
fsync: file_fsync, .fsync = file_fsync,
sendfile: generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
struct inode_operations fat_file_inode_operations = { struct inode_operations fat_file_inode_operations = {
truncate: fat_truncate, .truncate = fat_truncate,
setattr: fat_notify_change, .setattr = fat_notify_change,
}; };
int fat_get_block(struct inode *inode, sector_t iblock, int fat_get_block(struct inode *inode, sector_t iblock,
......
...@@ -701,24 +701,24 @@ void __exit fat_destroy_inodecache(void) ...@@ -701,24 +701,24 @@ void __exit fat_destroy_inodecache(void)
} }
static struct super_operations fat_sops = { static struct super_operations fat_sops = {
alloc_inode: fat_alloc_inode, .alloc_inode = fat_alloc_inode,
destroy_inode: fat_destroy_inode, .destroy_inode = fat_destroy_inode,
write_inode: fat_write_inode, .write_inode = fat_write_inode,
delete_inode: fat_delete_inode, .delete_inode = fat_delete_inode,
put_super: fat_put_super, .put_super = fat_put_super,
statfs: fat_statfs, .statfs = fat_statfs,
clear_inode: fat_clear_inode, .clear_inode = fat_clear_inode,
read_inode: make_bad_inode, .read_inode = make_bad_inode,
show_options: fat_show_options, .show_options = fat_show_options,
}; };
static struct export_operations fat_export_ops = { static struct export_operations fat_export_ops = {
decode_fh: fat_decode_fh, .decode_fh = fat_decode_fh,
encode_fh: fat_encode_fh, .encode_fh = fat_encode_fh,
get_dentry: fat_get_dentry, .get_dentry = fat_get_dentry,
get_parent: fat_get_parent, .get_parent = fat_get_parent,
}; };
/* /*
...@@ -1071,12 +1071,12 @@ static sector_t _fat_bmap(struct address_space *mapping, sector_t block) ...@@ -1071,12 +1071,12 @@ static sector_t _fat_bmap(struct address_space *mapping, sector_t block)
return generic_block_bmap(mapping,block,fat_get_block); return generic_block_bmap(mapping,block,fat_get_block);
} }
static struct address_space_operations fat_aops = { static struct address_space_operations fat_aops = {
readpage: fat_readpage, .readpage = fat_readpage,
writepage: fat_writepage, .writepage = fat_writepage,
sync_page: block_sync_page, .sync_page = block_sync_page,
prepare_write: fat_prepare_write, .prepare_write = fat_prepare_write,
commit_write: fat_commit_write, .commit_write = fat_commit_write,
bmap: _fat_bmap .bmap = _fat_bmap
}; };
/* doesn't deal with root inode */ /* doesn't deal with root inode */
......
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