Commit 62163fbb authored by Art Haas's avatar Art Haas Committed by Linus Torvalds

[PATCH] C99 designated initializers for fs/umsdos

parent 2ce4fd46
...@@ -48,8 +48,8 @@ static int umsdos_dentry_dput(struct dentry *dentry) ...@@ -48,8 +48,8 @@ static int umsdos_dentry_dput(struct dentry *dentry)
struct dentry_operations umsdos_dentry_operations = struct dentry_operations umsdos_dentry_operations =
{ {
d_revalidate: umsdos_dentry_validate, .d_revalidate = umsdos_dentry_validate,
d_delete: umsdos_dentry_dput, .d_delete = umsdos_dentry_dput,
}; };
struct UMSDOS_DIR_ONCE { struct UMSDOS_DIR_ONCE {
...@@ -790,21 +790,21 @@ dentry_dst->d_parent->d_name.name, dentry_dst->d_name.name); ...@@ -790,21 +790,21 @@ dentry_dst->d_parent->d_name.name, dentry_dst->d_name.name);
struct file_operations umsdos_dir_operations = struct file_operations umsdos_dir_operations =
{ {
read: generic_read_dir, .read = generic_read_dir,
readdir: UMSDOS_readdir, .readdir = UMSDOS_readdir,
ioctl: UMSDOS_ioctl_dir, .ioctl = UMSDOS_ioctl_dir,
}; };
struct inode_operations umsdos_dir_inode_operations = struct inode_operations umsdos_dir_inode_operations =
{ {
create: UMSDOS_create, .create = UMSDOS_create,
lookup: UMSDOS_lookup, .lookup = UMSDOS_lookup,
link: UMSDOS_link, .link = UMSDOS_link,
unlink: UMSDOS_unlink, .unlink = UMSDOS_unlink,
symlink: UMSDOS_symlink, .symlink = UMSDOS_symlink,
mkdir: UMSDOS_mkdir, .mkdir = UMSDOS_mkdir,
rmdir: UMSDOS_rmdir, .rmdir = UMSDOS_rmdir,
mknod: UMSDOS_mknod, .mknod = UMSDOS_mknod,
rename: UMSDOS_rename, .rename = UMSDOS_rename,
setattr: UMSDOS_notify_change, .setattr = UMSDOS_notify_change,
}; };
...@@ -108,14 +108,14 @@ void umsdos_set_dirinfo_new (struct dentry *dentry, off_t f_pos) ...@@ -108,14 +108,14 @@ void umsdos_set_dirinfo_new (struct dentry *dentry, off_t f_pos)
} }
static struct inode_operations umsdos_file_inode_operations = { static struct inode_operations umsdos_file_inode_operations = {
truncate: fat_truncate, .truncate = fat_truncate,
setattr: UMSDOS_notify_change, .setattr = UMSDOS_notify_change,
}; };
static struct inode_operations umsdos_symlink_inode_operations = { static struct inode_operations umsdos_symlink_inode_operations = {
readlink: page_readlink, .readlink = page_readlink,
follow_link: page_follow_link, .follow_link = page_follow_link,
setattr: UMSDOS_notify_change, .setattr = UMSDOS_notify_change,
}; };
/* /*
...@@ -335,12 +335,12 @@ void UMSDOS_write_inode (struct inode *inode, int wait) ...@@ -335,12 +335,12 @@ void UMSDOS_write_inode (struct inode *inode, int wait)
static struct super_operations umsdos_sops = static struct super_operations umsdos_sops =
{ {
write_inode: UMSDOS_write_inode, .write_inode = UMSDOS_write_inode,
put_inode: UMSDOS_put_inode, .put_inode = UMSDOS_put_inode,
delete_inode: fat_delete_inode, .delete_inode = fat_delete_inode,
put_super: UMSDOS_put_super, .put_super = UMSDOS_put_super,
statfs: UMSDOS_statfs, .statfs = UMSDOS_statfs,
clear_inode: fat_clear_inode, .clear_inode = fat_clear_inode,
}; };
int UMSDOS_statfs(struct super_block *sb,struct statfs *buf) int UMSDOS_statfs(struct super_block *sb,struct statfs *buf)
......
...@@ -231,18 +231,18 @@ static int UMSDOS_rrmdir ( struct inode *dir, struct dentry *dentry) ...@@ -231,18 +231,18 @@ static int UMSDOS_rrmdir ( struct inode *dir, struct dentry *dentry)
*/ */
struct file_operations umsdos_rdir_operations = struct file_operations umsdos_rdir_operations =
{ {
read: generic_read_dir, .read = generic_read_dir,
readdir: UMSDOS_rreaddir, .readdir = UMSDOS_rreaddir,
ioctl: UMSDOS_ioctl_dir, .ioctl = UMSDOS_ioctl_dir,
}; };
struct inode_operations umsdos_rdir_inode_operations = struct inode_operations umsdos_rdir_inode_operations =
{ {
create: msdos_create, .create = msdos_create,
lookup: UMSDOS_rlookup, .lookup = UMSDOS_rlookup,
unlink: msdos_unlink, .unlink = msdos_unlink,
mkdir: msdos_mkdir, .mkdir = msdos_mkdir,
rmdir: UMSDOS_rrmdir, .rmdir = UMSDOS_rrmdir,
rename: msdos_rename, .rename = msdos_rename,
setattr: UMSDOS_notify_change, .setattr = UMSDOS_notify_change,
}; };
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