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