Commit ff01934e authored by Art Haas's avatar Art Haas Committed by Linus Torvalds

[PATCH] C99 designated initializers for fs/hugetlbfs/inode.c

parent 0bce91be
...@@ -443,36 +443,36 @@ static int hugetlbfs_symlink(struct inode * dir, struct dentry *dentry, const ch ...@@ -443,36 +443,36 @@ static int hugetlbfs_symlink(struct inode * dir, struct dentry *dentry, const ch
} }
static struct address_space_operations hugetlbfs_aops = { static struct address_space_operations hugetlbfs_aops = {
readpage: hugetlbfs_readpage, .readpage = hugetlbfs_readpage,
writepage: fail_writepage, .writepage = fail_writepage,
prepare_write: hugetlbfs_prepare_write, .prepare_write = hugetlbfs_prepare_write,
commit_write: hugetlbfs_commit_write .commit_write = hugetlbfs_commit_write
}; };
struct file_operations hugetlbfs_file_operations = { struct file_operations hugetlbfs_file_operations = {
read: generic_file_read, .read = generic_file_read,
write: generic_file_write, .write = generic_file_write,
mmap: hugetlbfs_file_mmap, .mmap = hugetlbfs_file_mmap,
fsync: simple_sync_file, .fsync = simple_sync_file,
sendfile: generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
static struct inode_operations hugetlbfs_dir_inode_operations = { static struct inode_operations hugetlbfs_dir_inode_operations = {
create: hugetlbfs_create, .create = hugetlbfs_create,
lookup: simple_lookup, .lookup = simple_lookup,
link: simple_link, .link = simple_link,
unlink: simple_unlink, .unlink = simple_unlink,
symlink: hugetlbfs_symlink, .symlink = hugetlbfs_symlink,
mkdir: hugetlbfs_mkdir, .mkdir = hugetlbfs_mkdir,
rmdir: simple_rmdir, .rmdir = simple_rmdir,
mknod: hugetlbfs_mknod, .mknod = hugetlbfs_mknod,
rename: simple_rename, .rename = simple_rename,
setattr: hugetlbfs_setattr, .setattr = hugetlbfs_setattr,
}; };
static struct super_operations hugetlbfs_ops = { static struct super_operations hugetlbfs_ops = {
statfs: simple_statfs, .statfs = simple_statfs,
drop_inode: hugetlbfs_drop_inode, .drop_inode = hugetlbfs_drop_inode,
}; };
static int hugetlbfs_fill_super(struct super_block * sb, void * data, int silent) static int hugetlbfs_fill_super(struct super_block * sb, void * data, int silent)
...@@ -504,9 +504,9 @@ static struct super_block *hugetlbfs_get_sb(struct file_system_type *fs_type, ...@@ -504,9 +504,9 @@ static struct super_block *hugetlbfs_get_sb(struct file_system_type *fs_type,
} }
static struct file_system_type hugetlbfs_fs_type = { static struct file_system_type hugetlbfs_fs_type = {
name: "hugetlbfs", .name = "hugetlbfs",
get_sb: hugetlbfs_get_sb, .get_sb = hugetlbfs_get_sb,
kill_sb: kill_litter_super, .kill_sb = kill_litter_super,
}; };
static struct vfsmount *hugetlbfs_vfsmount; static struct vfsmount *hugetlbfs_vfsmount;
......
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