Commit 89a17c87 authored by Art Haas's avatar Art Haas Committed by Linus Torvalds

[PATCH] named initializers for fs/hpfs

parent aaa52f23
...@@ -50,8 +50,8 @@ int hpfs_compare_dentry(struct dentry *dentry, struct qstr *a, struct qstr *b) ...@@ -50,8 +50,8 @@ int hpfs_compare_dentry(struct dentry *dentry, struct qstr *a, struct qstr *b)
} }
struct dentry_operations hpfs_dentry_operations = { struct dentry_operations hpfs_dentry_operations = {
d_hash: hpfs_hash_dentry, .d_hash = hpfs_hash_dentry,
d_compare: hpfs_compare_dentry, .d_compare = hpfs_compare_dentry,
}; };
void hpfs_set_dentry_operations(struct dentry *dentry) void hpfs_set_dentry_operations(struct dentry *dentry)
......
...@@ -116,12 +116,12 @@ static int _hpfs_bmap(struct address_space *mapping, long block) ...@@ -116,12 +116,12 @@ static int _hpfs_bmap(struct address_space *mapping, long block)
return generic_block_bmap(mapping,block,hpfs_get_block); return generic_block_bmap(mapping,block,hpfs_get_block);
} }
struct address_space_operations hpfs_aops = { struct address_space_operations hpfs_aops = {
readpage: hpfs_readpage, .readpage = hpfs_readpage,
writepage: hpfs_writepage, .writepage = hpfs_writepage,
sync_page: block_sync_page, .sync_page = block_sync_page,
prepare_write: hpfs_prepare_write, .prepare_write = hpfs_prepare_write,
commit_write: generic_commit_write, .commit_write = generic_commit_write,
bmap: _hpfs_bmap .bmap = _hpfs_bmap
}; };
ssize_t hpfs_file_write(struct file *file, const char *buf, size_t count, loff_t *ppos) ssize_t hpfs_file_write(struct file *file, const char *buf, size_t count, loff_t *ppos)
......
...@@ -14,47 +14,47 @@ ...@@ -14,47 +14,47 @@
static struct file_operations hpfs_file_ops = static struct file_operations hpfs_file_ops =
{ {
llseek: generic_file_llseek, .llseek = generic_file_llseek,
read: generic_file_read, .read = generic_file_read,
write: hpfs_file_write, .write = hpfs_file_write,
mmap: generic_file_mmap, .mmap = generic_file_mmap,
open: hpfs_open, .open = hpfs_open,
release: hpfs_file_release, .release = hpfs_file_release,
fsync: hpfs_file_fsync, .fsync = hpfs_file_fsync,
sendfile: generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
static struct inode_operations hpfs_file_iops = static struct inode_operations hpfs_file_iops =
{ {
truncate: hpfs_truncate, .truncate = hpfs_truncate,
setattr: hpfs_notify_change, .setattr = hpfs_notify_change,
}; };
static struct file_operations hpfs_dir_ops = static struct file_operations hpfs_dir_ops =
{ {
llseek: hpfs_dir_lseek, .llseek = hpfs_dir_lseek,
read: generic_read_dir, .read = generic_read_dir,
readdir: hpfs_readdir, .readdir = hpfs_readdir,
open: hpfs_open, .open = hpfs_open,
release: hpfs_dir_release, .release = hpfs_dir_release,
fsync: hpfs_file_fsync, .fsync = hpfs_file_fsync,
}; };
static struct inode_operations hpfs_dir_iops = static struct inode_operations hpfs_dir_iops =
{ {
create: hpfs_create, .create = hpfs_create,
lookup: hpfs_lookup, .lookup = hpfs_lookup,
unlink: hpfs_unlink, .unlink = hpfs_unlink,
symlink: hpfs_symlink, .symlink = hpfs_symlink,
mkdir: hpfs_mkdir, .mkdir = hpfs_mkdir,
rmdir: hpfs_rmdir, .rmdir = hpfs_rmdir,
mknod: hpfs_mknod, .mknod = hpfs_mknod,
rename: hpfs_rename, .rename = hpfs_rename,
setattr: hpfs_notify_change, .setattr = hpfs_notify_change,
}; };
struct address_space_operations hpfs_symlink_aops = { struct address_space_operations hpfs_symlink_aops = {
readpage: hpfs_symlink_readpage .readpage = hpfs_symlink_readpage
}; };
void hpfs_read_inode(struct inode *i) void hpfs_read_inode(struct inode *i)
......
...@@ -206,13 +206,13 @@ static void destroy_inodecache(void) ...@@ -206,13 +206,13 @@ static void destroy_inodecache(void)
static struct super_operations hpfs_sops = static struct super_operations hpfs_sops =
{ {
alloc_inode: hpfs_alloc_inode, .alloc_inode = hpfs_alloc_inode,
destroy_inode: hpfs_destroy_inode, .destroy_inode = hpfs_destroy_inode,
read_inode: hpfs_read_inode, .read_inode = hpfs_read_inode,
delete_inode: hpfs_delete_inode, .delete_inode = hpfs_delete_inode,
put_super: hpfs_put_super, .put_super = hpfs_put_super,
statfs: hpfs_statfs, .statfs = hpfs_statfs,
remount_fs: hpfs_remount_fs, .remount_fs = hpfs_remount_fs,
}; };
/* /*
...@@ -638,11 +638,11 @@ static struct super_block *hpfs_get_sb(struct file_system_type *fs_type, ...@@ -638,11 +638,11 @@ static struct super_block *hpfs_get_sb(struct file_system_type *fs_type,
} }
static struct file_system_type hpfs_fs_type = { static struct file_system_type hpfs_fs_type = {
owner: THIS_MODULE, .owner = THIS_MODULE,
name: "hpfs", .name = "hpfs",
get_sb: hpfs_get_sb, .get_sb = hpfs_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_hpfs_fs(void) static int __init init_hpfs_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