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