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

[PATCH] named initializers for fs/autofs4

parent 7a8c31e9
...@@ -21,10 +21,10 @@ static struct super_block *autofs_get_sb(struct file_system_type *fs_type, ...@@ -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 = { static struct file_system_type autofs_fs_type = {
owner: THIS_MODULE, .owner = THIS_MODULE,
name: "autofs", .name = "autofs",
get_sb: autofs_get_sb, .get_sb = autofs_get_sb,
kill_sb: kill_anon_super, .kill_sb = kill_anon_super,
}; };
static int __init init_autofs4_fs(void) static int __init init_autofs4_fs(void)
......
...@@ -91,8 +91,8 @@ static void autofs4_put_super(struct super_block *sb) ...@@ -91,8 +91,8 @@ static void autofs4_put_super(struct super_block *sb)
} }
static struct super_operations autofs4_sops = { static struct super_operations autofs4_sops = {
put_super: autofs4_put_super, .put_super = autofs4_put_super,
statfs: simple_statfs, .statfs = simple_statfs,
}; };
static int parse_options(char *options, int *pipefd, uid_t *uid, gid_t *gid, static int parse_options(char *options, int *pipefd, uid_t *uid, gid_t *gid,
......
...@@ -27,28 +27,28 @@ static int autofs4_root_ioctl(struct inode *, struct file *,unsigned int,unsigne ...@@ -27,28 +27,28 @@ static int autofs4_root_ioctl(struct inode *, struct file *,unsigned int,unsigne
static struct dentry *autofs4_root_lookup(struct inode *,struct dentry *); static struct dentry *autofs4_root_lookup(struct inode *,struct dentry *);
struct file_operations autofs4_root_operations = { struct file_operations autofs4_root_operations = {
open: dcache_dir_open, .open = dcache_dir_open,
release: dcache_dir_close, .release = dcache_dir_close,
llseek: dcache_dir_lseek, .llseek = dcache_dir_lseek,
read: generic_read_dir, .read = generic_read_dir,
readdir: dcache_readdir, .readdir = dcache_readdir,
ioctl: autofs4_root_ioctl, .ioctl = autofs4_root_ioctl,
}; };
struct inode_operations autofs4_root_inode_operations = { struct inode_operations autofs4_root_inode_operations = {
lookup: autofs4_root_lookup, .lookup = autofs4_root_lookup,
unlink: autofs4_dir_unlink, .unlink = autofs4_dir_unlink,
symlink: autofs4_dir_symlink, .symlink = autofs4_dir_symlink,
mkdir: autofs4_dir_mkdir, .mkdir = autofs4_dir_mkdir,
rmdir: autofs4_dir_rmdir, .rmdir = autofs4_dir_rmdir,
}; };
struct inode_operations autofs4_dir_inode_operations = { struct inode_operations autofs4_dir_inode_operations = {
lookup: autofs4_dir_lookup, .lookup = autofs4_dir_lookup,
unlink: autofs4_dir_unlink, .unlink = autofs4_dir_unlink,
symlink: autofs4_dir_symlink, .symlink = autofs4_dir_symlink,
mkdir: autofs4_dir_mkdir, .mkdir = autofs4_dir_mkdir,
rmdir: autofs4_dir_rmdir, .rmdir = autofs4_dir_rmdir,
}; };
/* Update usage from here to top of tree, so that scan of /* Update usage from here to top of tree, so that scan of
...@@ -215,14 +215,14 @@ static void autofs4_dentry_release(struct dentry *de) ...@@ -215,14 +215,14 @@ static void autofs4_dentry_release(struct dentry *de)
/* For dentries of directories in the root dir */ /* For dentries of directories in the root dir */
static struct dentry_operations autofs4_root_dentry_operations = { static struct dentry_operations autofs4_root_dentry_operations = {
d_revalidate: autofs4_root_revalidate, .d_revalidate = autofs4_root_revalidate,
d_release: autofs4_dentry_release, .d_release = autofs4_dentry_release,
}; };
/* For other dentries */ /* For other dentries */
static struct dentry_operations autofs4_dentry_operations = { static struct dentry_operations autofs4_dentry_operations = {
d_revalidate: autofs4_revalidate, .d_revalidate = autofs4_revalidate,
d_release: autofs4_dentry_release, .d_release = autofs4_dentry_release,
}; };
/* Lookups in non-root dirs never find anything - if it's there, it's /* Lookups in non-root dirs never find anything - if it's there, it's
......
...@@ -27,6 +27,6 @@ static int autofs4_follow_link(struct dentry *dentry, struct nameidata *nd) ...@@ -27,6 +27,6 @@ static int autofs4_follow_link(struct dentry *dentry, struct nameidata *nd)
} }
struct inode_operations autofs4_symlink_inode_operations = { struct inode_operations autofs4_symlink_inode_operations = {
readlink: autofs4_readlink, .readlink = autofs4_readlink,
follow_link: autofs4_follow_link .follow_link = autofs4_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