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