Commit 98ad9a96 authored by Art Haas's avatar Art Haas Committed by Linus Torvalds

[PATCH] named initializers for fs/sysv

parent 89a17c87
......@@ -21,9 +21,9 @@
static int sysv_readdir(struct file *, void *, filldir_t);
struct file_operations sysv_dir_operations = {
read: generic_read_dir,
readdir: sysv_readdir,
fsync: sysv_sync_file,
.read = generic_read_dir,
.readdir = sysv_readdir,
.fsync = sysv_sync_file,
};
static inline void dir_put_page(struct page *page)
......
......@@ -20,17 +20,17 @@
* the coh filesystem.
*/
struct file_operations sysv_file_operations = {
llseek: generic_file_llseek,
read: generic_file_read,
write: generic_file_write,
mmap: generic_file_mmap,
fsync: sysv_sync_file,
sendfile: generic_file_sendfile,
.llseek = generic_file_llseek,
.read = generic_file_read,
.write = generic_file_write,
.mmap = generic_file_mmap,
.fsync = sysv_sync_file,
.sendfile = generic_file_sendfile,
};
struct inode_operations sysv_file_inode_operations = {
truncate: sysv_truncate,
getattr: sysv_getattr,
.truncate = sysv_truncate,
.getattr = sysv_getattr,
};
int sysv_sync_file(struct file * file, struct dentry *dentry, int datasync)
......
......@@ -131,9 +131,9 @@ static inline void write3byte(struct sysv_sb_info *sbi,
}
static struct inode_operations sysv_symlink_inode_operations = {
readlink: page_readlink,
follow_link: page_follow_link,
getattr: sysv_getattr,
.readlink = page_readlink,
.follow_link = page_follow_link,
.getattr = sysv_getattr,
};
void sysv_set_inode(struct inode *inode, dev_t rdev)
......@@ -311,14 +311,14 @@ static void init_once(void *p, kmem_cache_t *cachep, unsigned long flags)
}
struct super_operations sysv_sops = {
alloc_inode: sysv_alloc_inode,
destroy_inode: sysv_destroy_inode,
read_inode: sysv_read_inode,
write_inode: sysv_write_inode,
delete_inode: sysv_delete_inode,
put_super: sysv_put_super,
write_super: sysv_write_super,
statfs: sysv_statfs,
.alloc_inode = sysv_alloc_inode,
.destroy_inode = sysv_destroy_inode,
.read_inode = sysv_read_inode,
.write_inode = sysv_write_inode,
.delete_inode = sysv_delete_inode,
.put_super = sysv_put_super,
.write_super = sysv_write_super,
.statfs = sysv_statfs,
};
int __init sysv_init_icache(void)
......
......@@ -464,10 +464,10 @@ static int sysv_bmap(struct address_space *mapping, long block)
return generic_block_bmap(mapping,block,get_block);
}
struct address_space_operations sysv_aops = {
readpage: sysv_readpage,
writepage: sysv_writepage,
sync_page: block_sync_page,
prepare_write: sysv_prepare_write,
commit_write: generic_commit_write,
bmap: sysv_bmap
.readpage = sysv_readpage,
.writepage = sysv_writepage,
.sync_page = block_sync_page,
.prepare_write = sysv_prepare_write,
.commit_write = generic_commit_write,
.bmap = sysv_bmap
};
......@@ -61,7 +61,7 @@ static int sysv_hash(struct dentry *dentry, struct qstr *qstr)
}
struct dentry_operations sysv_dentry_operations = {
d_hash: sysv_hash,
.d_hash = sysv_hash,
};
static struct dentry *sysv_lookup(struct inode * dir, struct dentry * dentry)
......@@ -308,14 +308,14 @@ static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry,
* directories can handle most operations...
*/
struct inode_operations sysv_dir_inode_operations = {
create: sysv_create,
lookup: sysv_lookup,
link: sysv_link,
unlink: sysv_unlink,
symlink: sysv_symlink,
mkdir: sysv_mkdir,
rmdir: sysv_rmdir,
mknod: sysv_mknod,
rename: sysv_rename,
getattr: sysv_getattr,
.create = sysv_create,
.lookup = sysv_lookup,
.link = sysv_link,
.unlink = sysv_unlink,
.symlink = sysv_symlink,
.mkdir = sysv_mkdir,
.rmdir = sysv_rmdir,
.mknod = sysv_mknod,
.rename = sysv_rename,
.getattr = sysv_getattr,
};
......@@ -509,19 +509,19 @@ static struct super_block *v7_get_sb(struct file_system_type *fs_type,
}
static struct file_system_type sysv_fs_type = {
owner: THIS_MODULE,
name: "sysv",
get_sb: sysv_get_sb,
kill_sb: kill_block_super,
fs_flags: FS_REQUIRES_DEV,
.owner = THIS_MODULE,
.name = "sysv",
.get_sb = sysv_get_sb,
.kill_sb = kill_block_super,
.fs_flags = FS_REQUIRES_DEV,
};
static struct file_system_type v7_fs_type = {
owner: THIS_MODULE,
name: "v7",
get_sb: v7_get_sb,
kill_sb: kill_block_super,
fs_flags: FS_REQUIRES_DEV,
.owner = THIS_MODULE,
.name = "v7",
.get_sb = v7_get_sb,
.kill_sb = kill_block_super,
.fs_flags = FS_REQUIRES_DEV,
};
extern int sysv_init_icache(void) __init;
......
......@@ -20,6 +20,6 @@ static int sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
}
struct inode_operations sysv_fast_symlink_inode_operations = {
readlink: sysv_readlink,
follow_link: sysv_follow_link,
.readlink = sysv_readlink,
.follow_link = sysv_follow_link,
};
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