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

[PATCH] named initializers for fs/udf

parent 55bb9c8e
...@@ -48,10 +48,10 @@ static int do_udf_readdir(struct inode *, struct file *, filldir_t, void *); ...@@ -48,10 +48,10 @@ static int do_udf_readdir(struct inode *, struct file *, filldir_t, void *);
/* readdir and lookup functions */ /* readdir and lookup functions */
struct file_operations udf_dir_operations = { struct file_operations udf_dir_operations = {
read: generic_read_dir, .read = generic_read_dir,
readdir: udf_readdir, .readdir = udf_readdir,
ioctl: udf_ioctl, .ioctl = udf_ioctl,
fsync: udf_fsync_file, .fsync = udf_fsync_file,
}; };
/* /*
......
...@@ -144,11 +144,11 @@ static int udf_adinicb_commit_write(struct file *file, struct page *page, unsign ...@@ -144,11 +144,11 @@ static int udf_adinicb_commit_write(struct file *file, struct page *page, unsign
} }
struct address_space_operations udf_adinicb_aops = { struct address_space_operations udf_adinicb_aops = {
readpage: udf_adinicb_readpage, .readpage = udf_adinicb_readpage,
writepage: udf_adinicb_writepage, .writepage = udf_adinicb_writepage,
sync_page: block_sync_page, .sync_page = block_sync_page,
prepare_write: udf_adinicb_prepare_write, .prepare_write = udf_adinicb_prepare_write,
commit_write: udf_adinicb_commit_write, .commit_write = udf_adinicb_commit_write,
}; };
static ssize_t udf_file_write(struct file * file, const char * buf, static ssize_t udf_file_write(struct file * file, const char * buf,
...@@ -358,16 +358,16 @@ static int udf_open_file(struct inode * inode, struct file * filp) ...@@ -358,16 +358,16 @@ static int udf_open_file(struct inode * inode, struct file * filp)
} }
struct file_operations udf_file_operations = { struct file_operations udf_file_operations = {
read: generic_file_read, .read = generic_file_read,
ioctl: udf_ioctl, .ioctl = udf_ioctl,
open: udf_open_file, .open = udf_open_file,
mmap: generic_file_mmap, .mmap = generic_file_mmap,
write: udf_file_write, .write = udf_file_write,
release: udf_release_file, .release = udf_release_file,
fsync: udf_fsync_file, .fsync = udf_fsync_file,
sendfile: generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
struct inode_operations udf_file_inode_operations = { struct inode_operations udf_file_inode_operations = {
truncate: udf_truncate, .truncate = udf_truncate,
}; };
...@@ -152,12 +152,12 @@ static int udf_bmap(struct address_space *mapping, long block) ...@@ -152,12 +152,12 @@ static int udf_bmap(struct address_space *mapping, long block)
} }
struct address_space_operations udf_aops = { struct address_space_operations udf_aops = {
readpage: udf_readpage, .readpage = udf_readpage,
writepage: udf_writepage, .writepage = udf_writepage,
sync_page: block_sync_page, .sync_page = block_sync_page,
prepare_write: udf_prepare_write, .prepare_write = udf_prepare_write,
commit_write: generic_commit_write, .commit_write = generic_commit_write,
bmap: udf_bmap, .bmap = udf_bmap,
}; };
void udf_expand_file_adinicb(struct inode * inode, int newsize, int * err) void udf_expand_file_adinicb(struct inode * inode, int newsize, int * err)
......
...@@ -1304,13 +1304,13 @@ static int udf_rename (struct inode * old_dir, struct dentry * old_dentry, ...@@ -1304,13 +1304,13 @@ static int udf_rename (struct inode * old_dir, struct dentry * old_dentry,
} }
struct inode_operations udf_dir_inode_operations = { struct inode_operations udf_dir_inode_operations = {
lookup: udf_lookup, .lookup = udf_lookup,
create: udf_create, .create = udf_create,
link: udf_link, .link = udf_link,
unlink: udf_unlink, .unlink = udf_unlink,
symlink: udf_symlink, .symlink = udf_symlink,
mkdir: udf_mkdir, .mkdir = udf_mkdir,
rmdir: udf_rmdir, .rmdir = udf_rmdir,
mknod: udf_mknod, .mknod = udf_mknod,
rename: udf_rename, .rename = udf_rename,
}; };
...@@ -104,11 +104,11 @@ static struct super_block *udf_get_sb(struct file_system_type *fs_type, ...@@ -104,11 +104,11 @@ static struct super_block *udf_get_sb(struct file_system_type *fs_type,
} }
static struct file_system_type udf_fstype = { static struct file_system_type udf_fstype = {
owner: THIS_MODULE, .owner = THIS_MODULE,
name: "udf", .name = "udf",
get_sb: udf_get_sb, .get_sb = udf_get_sb,
kill_sb: kill_block_super, .kill_sb = kill_block_super,
fs_flags: FS_REQUIRES_DEV, .fs_flags = FS_REQUIRES_DEV,
}; };
static kmem_cache_t * udf_inode_cachep; static kmem_cache_t * udf_inode_cachep;
...@@ -155,16 +155,16 @@ static void destroy_inodecache(void) ...@@ -155,16 +155,16 @@ static void destroy_inodecache(void)
/* Superblock operations */ /* Superblock operations */
static struct super_operations udf_sb_ops = { static struct super_operations udf_sb_ops = {
alloc_inode: udf_alloc_inode, .alloc_inode = udf_alloc_inode,
destroy_inode: udf_destroy_inode, .destroy_inode = udf_destroy_inode,
read_inode: udf_read_inode, .read_inode = udf_read_inode,
write_inode: udf_write_inode, .write_inode = udf_write_inode,
put_inode: udf_put_inode, .put_inode = udf_put_inode,
delete_inode: udf_delete_inode, .delete_inode = udf_delete_inode,
put_super: udf_put_super, .put_super = udf_put_super,
write_super: udf_write_super, .write_super = udf_write_super,
statfs: udf_statfs, .statfs = udf_statfs,
remount_fs: udf_remount_fs, .remount_fs = udf_remount_fs,
}; };
struct udf_options struct udf_options
......
...@@ -126,5 +126,5 @@ static int udf_symlink_filler(struct file *file, struct page *page) ...@@ -126,5 +126,5 @@ static int udf_symlink_filler(struct file *file, struct page *page)
* symlinks can't do much... * symlinks can't do much...
*/ */
struct address_space_operations udf_symlink_aops = { struct address_space_operations udf_symlink_aops = {
readpage: udf_symlink_filler, .readpage = udf_symlink_filler,
}; };
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