Commit 2f50d507 authored by Russell King's avatar Russell King

[TRIVIAL] designated initialize patches for fs_adfs

From: (via Rusty) Art Haas <ahaas@neosoft.com>
Here are patches for files in fs/adfs. Patches are against 2.5.26.

(rmk - updated for 2.5.30, cleaned up spacing to be more reasonable)
parent a6cb3a52
...@@ -198,9 +198,9 @@ adfs_dir_lookup_byname(struct inode *inode, struct qstr *name, struct object_inf ...@@ -198,9 +198,9 @@ adfs_dir_lookup_byname(struct inode *inode, struct qstr *name, struct object_inf
} }
struct file_operations adfs_dir_operations = { struct file_operations adfs_dir_operations = {
read: generic_read_dir, .read = generic_read_dir,
readdir: adfs_readdir, .readdir = adfs_readdir,
fsync: file_fsync, .fsync = file_fsync,
}; };
static int static int
...@@ -265,8 +265,8 @@ adfs_compare(struct dentry *parent, struct qstr *entry, struct qstr *name) ...@@ -265,8 +265,8 @@ adfs_compare(struct dentry *parent, struct qstr *entry, struct qstr *name)
} }
struct dentry_operations adfs_dentry_operations = { struct dentry_operations adfs_dentry_operations = {
d_hash: adfs_hash, .d_hash = adfs_hash,
d_compare: adfs_compare, .d_compare = adfs_compare,
}; };
struct dentry *adfs_lookup(struct inode *dir, struct dentry *dentry) struct dentry *adfs_lookup(struct inode *dir, struct dentry *dentry)
...@@ -297,6 +297,6 @@ struct dentry *adfs_lookup(struct inode *dir, struct dentry *dentry) ...@@ -297,6 +297,6 @@ struct dentry *adfs_lookup(struct inode *dir, struct dentry *dentry)
* directories can handle most operations... * directories can handle most operations...
*/ */
struct inode_operations adfs_dir_inode_operations = { struct inode_operations adfs_dir_inode_operations = {
lookup: adfs_lookup, .lookup = adfs_lookup,
setattr: adfs_notify_change, .setattr = adfs_notify_change,
}; };
...@@ -31,14 +31,14 @@ ...@@ -31,14 +31,14 @@
#include "adfs.h" #include "adfs.h"
struct file_operations adfs_file_operations = { struct file_operations adfs_file_operations = {
llseek: generic_file_llseek, .llseek = generic_file_llseek,
read: generic_file_read, .read = generic_file_read,
mmap: generic_file_mmap, .mmap = generic_file_mmap,
fsync: file_fsync, .fsync = file_fsync,
write: generic_file_write, .write = generic_file_write,
sendfile: generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
struct inode_operations adfs_file_inode_operations = { struct inode_operations adfs_file_inode_operations = {
setattr: adfs_notify_change, .setattr = adfs_notify_change,
}; };
...@@ -73,12 +73,12 @@ static int _adfs_bmap(struct address_space *mapping, long block) ...@@ -73,12 +73,12 @@ static int _adfs_bmap(struct address_space *mapping, long block)
} }
static struct address_space_operations adfs_aops = { static struct address_space_operations adfs_aops = {
readpage: adfs_readpage, .readpage = adfs_readpage,
writepage: adfs_writepage, .writepage = adfs_writepage,
sync_page: block_sync_page, .sync_page = block_sync_page,
prepare_write: adfs_prepare_write, .prepare_write = adfs_prepare_write,
commit_write: generic_commit_write, .commit_write = generic_commit_write,
bmap: _adfs_bmap .bmap = _adfs_bmap
}; };
static inline unsigned int static inline unsigned int
......
...@@ -247,12 +247,12 @@ static void destroy_inodecache(void) ...@@ -247,12 +247,12 @@ static void destroy_inodecache(void)
} }
static struct super_operations adfs_sops = { static struct super_operations adfs_sops = {
alloc_inode: adfs_alloc_inode, .alloc_inode = adfs_alloc_inode,
destroy_inode: adfs_destroy_inode, .destroy_inode = adfs_destroy_inode,
write_inode: adfs_write_inode, .write_inode = adfs_write_inode,
put_super: adfs_put_super, .put_super = adfs_put_super,
statfs: adfs_statfs, .statfs = adfs_statfs,
remount_fs: adfs_remount, .remount_fs = adfs_remount,
}; };
static struct adfs_discmap *adfs_read_map(struct super_block *sb, struct adfs_discrecord *dr) static struct adfs_discmap *adfs_read_map(struct super_block *sb, struct adfs_discrecord *dr)
...@@ -464,11 +464,11 @@ static struct super_block *adfs_get_sb(struct file_system_type *fs_type, ...@@ -464,11 +464,11 @@ static struct super_block *adfs_get_sb(struct file_system_type *fs_type,
} }
static struct file_system_type adfs_fs_type = { static struct file_system_type adfs_fs_type = {
owner: THIS_MODULE, .owner = THIS_MODULE,
name: "adfs", .name = "adfs",
get_sb: adfs_get_sb, .get_sb = adfs_get_sb,
kill_sb: kill_block_super, .kill_sb = kill_block_super,
fs_flags: FS_REQUIRES_DEV, .fs_flags = FS_REQUIRES_DEV,
}; };
static int __init init_adfs_fs(void) static int __init init_adfs_fs(void)
......
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