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