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

[PATCH] named initializers for fs/autofs

parent d1dd1edb
......@@ -21,10 +21,10 @@ static struct super_block *autofs_get_sb(struct file_system_type *fs_type,
}
static struct file_system_type autofs_fs_type = {
owner: THIS_MODULE,
name: "autofs",
get_sb: autofs_get_sb,
kill_sb: kill_anon_super,
.owner = THIS_MODULE,
.name = "autofs",
.get_sb = autofs_get_sb,
.kill_sb = kill_anon_super,
};
static int __init init_autofs_fs(void)
......
......@@ -41,9 +41,9 @@ static void autofs_put_super(struct super_block *sb)
static void autofs_read_inode(struct inode *inode);
static struct super_operations autofs_sops = {
read_inode: autofs_read_inode,
put_super: autofs_put_super,
statfs: simple_statfs,
.read_inode = autofs_read_inode,
.put_super = autofs_put_super,
.statfs = simple_statfs,
};
static int parse_options(char *options, int *pipefd, uid_t *uid, gid_t *gid, pid_t *pgrp, int *minproto, int *maxproto)
......
......@@ -26,17 +26,17 @@ static int autofs_root_mkdir(struct inode *,struct dentry *,int);
static int autofs_root_ioctl(struct inode *, struct file *,unsigned int,unsigned long);
struct file_operations autofs_root_operations = {
read: generic_read_dir,
readdir: autofs_root_readdir,
ioctl: autofs_root_ioctl,
.read = generic_read_dir,
.readdir = autofs_root_readdir,
.ioctl = autofs_root_ioctl,
};
struct inode_operations autofs_root_inode_operations = {
lookup: autofs_root_lookup,
unlink: autofs_root_unlink,
symlink: autofs_root_symlink,
mkdir: autofs_root_mkdir,
rmdir: autofs_root_rmdir,
.lookup = autofs_root_lookup,
.unlink = autofs_root_unlink,
.symlink = autofs_root_symlink,
.mkdir = autofs_root_mkdir,
.rmdir = autofs_root_rmdir,
};
static int autofs_root_readdir(struct file *filp, void *dirent, filldir_t filldir)
......@@ -192,7 +192,7 @@ static int autofs_revalidate(struct dentry * dentry, int flags)
}
static struct dentry_operations autofs_dentry_operations = {
d_revalidate: autofs_revalidate,
.d_revalidate = autofs_revalidate,
};
static struct dentry *autofs_root_lookup(struct inode *dir, struct dentry *dentry)
......
......@@ -25,6 +25,6 @@ static int autofs_follow_link(struct dentry *dentry, struct nameidata *nd)
}
struct inode_operations autofs_symlink_inode_operations = {
readlink: autofs_readlink,
follow_link: autofs_follow_link
.readlink = autofs_readlink,
.follow_link = autofs_follow_link
};
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