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