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