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