Commit 2ce4fd46 authored by Art Haas's avatar Art Haas Committed by Linus Torvalds

[PATCH] C99 designated initializers for fs/affs

parent 5fcd220b
...@@ -28,24 +28,24 @@ ...@@ -28,24 +28,24 @@
static int affs_readdir(struct file *, void *, filldir_t); static int affs_readdir(struct file *, void *, filldir_t);
struct file_operations affs_dir_operations = { struct file_operations affs_dir_operations = {
read: generic_read_dir, .read = generic_read_dir,
readdir: affs_readdir, .readdir = affs_readdir,
fsync: file_fsync, .fsync = file_fsync,
}; };
/* /*
* directories can handle most operations... * directories can handle most operations...
*/ */
struct inode_operations affs_dir_inode_operations = { struct inode_operations affs_dir_inode_operations = {
create: affs_create, .create = affs_create,
lookup: affs_lookup, .lookup = affs_lookup,
link: affs_link, .link = affs_link,
unlink: affs_unlink, .unlink = affs_unlink,
symlink: affs_symlink, .symlink = affs_symlink,
mkdir: affs_mkdir, .mkdir = affs_mkdir,
rmdir: affs_rmdir, .rmdir = affs_rmdir,
rename: affs_rename, .rename = affs_rename,
setattr: affs_notify_change, .setattr = affs_notify_change,
}; };
static int static int
......
...@@ -44,19 +44,19 @@ static int affs_file_open(struct inode *inode, struct file *filp); ...@@ -44,19 +44,19 @@ static int affs_file_open(struct inode *inode, struct file *filp);
static int affs_file_release(struct inode *inode, struct file *filp); static int affs_file_release(struct inode *inode, struct file *filp);
struct file_operations affs_file_operations = { struct file_operations affs_file_operations = {
llseek: generic_file_llseek, .llseek = generic_file_llseek,
read: generic_file_read, .read = generic_file_read,
write: affs_file_write, .write = affs_file_write,
mmap: generic_file_mmap, .mmap = generic_file_mmap,
open: affs_file_open, .open = affs_file_open,
release: affs_file_release, .release = affs_file_release,
fsync: file_fsync, .fsync = file_fsync,
sendfile: generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
struct inode_operations affs_file_inode_operations = { struct inode_operations affs_file_inode_operations = {
truncate: affs_truncate, .truncate = affs_truncate,
setattr: affs_notify_change, .setattr = affs_notify_change,
}; };
static int static int
...@@ -428,12 +428,12 @@ static sector_t _affs_bmap(struct address_space *mapping, sector_t block) ...@@ -428,12 +428,12 @@ static sector_t _affs_bmap(struct address_space *mapping, sector_t block)
return generic_block_bmap(mapping,block,affs_get_block); return generic_block_bmap(mapping,block,affs_get_block);
} }
struct address_space_operations affs_aops = { struct address_space_operations affs_aops = {
readpage: affs_readpage, .readpage = affs_readpage,
writepage: affs_writepage, .writepage = affs_writepage,
sync_page: block_sync_page, .sync_page = block_sync_page,
prepare_write: affs_prepare_write, .prepare_write = affs_prepare_write,
commit_write: generic_commit_write, .commit_write = generic_commit_write,
bmap: _affs_bmap .bmap = _affs_bmap
}; };
static inline struct buffer_head * static inline struct buffer_head *
...@@ -795,11 +795,11 @@ static int affs_commit_write_ofs(struct file *file, struct page *page, unsigned ...@@ -795,11 +795,11 @@ static int affs_commit_write_ofs(struct file *file, struct page *page, unsigned
} }
struct address_space_operations affs_aops_ofs = { struct address_space_operations affs_aops_ofs = {
readpage: affs_readpage_ofs, .readpage = affs_readpage_ofs,
//writepage: affs_writepage_ofs, //writepage: affs_writepage_ofs,
//sync_page: affs_sync_page_ofs, //sync_page: affs_sync_page_ofs,
prepare_write: affs_prepare_write_ofs, .prepare_write = affs_prepare_write_ofs,
commit_write: affs_commit_write_ofs .commit_write = affs_commit_write_ofs
}; };
/* Free any preallocated blocks. */ /* Free any preallocated blocks. */
......
...@@ -33,13 +33,13 @@ static int affs_intl_hash_dentry(struct dentry *, struct qstr *); ...@@ -33,13 +33,13 @@ static int affs_intl_hash_dentry(struct dentry *, struct qstr *);
static int affs_intl_compare_dentry(struct dentry *, struct qstr *, struct qstr *); static int affs_intl_compare_dentry(struct dentry *, struct qstr *, struct qstr *);
struct dentry_operations affs_dentry_operations = { struct dentry_operations affs_dentry_operations = {
d_hash: affs_hash_dentry, .d_hash = affs_hash_dentry,
d_compare: affs_compare_dentry, .d_compare = affs_compare_dentry,
}; };
struct dentry_operations affs_intl_dentry_operations = { struct dentry_operations affs_intl_dentry_operations = {
d_hash: affs_intl_hash_dentry, .d_hash = affs_intl_hash_dentry,
d_compare: affs_intl_compare_dentry, .d_compare = affs_intl_compare_dentry,
}; };
......
...@@ -78,11 +78,11 @@ static int affs_symlink_readpage(struct file *file, struct page *page) ...@@ -78,11 +78,11 @@ static int affs_symlink_readpage(struct file *file, struct page *page)
} }
struct address_space_operations affs_symlink_aops = { struct address_space_operations affs_symlink_aops = {
readpage: affs_symlink_readpage, .readpage = affs_symlink_readpage,
}; };
struct inode_operations affs_symlink_inode_operations = { struct inode_operations affs_symlink_inode_operations = {
readlink: page_readlink, .readlink = page_readlink,
follow_link: page_follow_link, .follow_link = page_follow_link,
setattr: affs_notify_change, .setattr = affs_notify_change,
}; };
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