summaryrefslogtreecommitdiff
path: root/fs/efs
diff options
context:
space:
mode:
authorArt Haas <ahaas@neosoft.com>2002-09-29 04:21:31 -0700
committerJeff Garzik <jgarzik@mandrakesoft.com>2002-09-29 04:21:31 -0700
commitcf1bc5cc6dd7dcac8f58bc4f8ea4bfce085dd775 (patch)
treed061f6d2c4155c7ba59ef6fba1dcb8d2305c29e7 /fs/efs
parent2b443eeac95554ef442e6d402f2d29413a8faa9d (diff)
[PATCH] C99 designated initializers for fs/efs
Diffstat (limited to 'fs/efs')
-rw-r--r--fs/efs/dir.c6
-rw-r--r--fs/efs/inode.c6
-rw-r--r--fs/efs/super.c20
-rw-r--r--fs/efs/symlink.c2
4 files changed, 17 insertions, 17 deletions
diff --git a/fs/efs/dir.c b/fs/efs/dir.c
index a821d10b5538..777c614ff360 100644
--- a/fs/efs/dir.c
+++ b/fs/efs/dir.c
@@ -11,12 +11,12 @@
static int efs_readdir(struct file *, void *, filldir_t);
struct file_operations efs_dir_operations = {
- read: generic_read_dir,
- readdir: efs_readdir,
+ .read = generic_read_dir,
+ .readdir = efs_readdir,
};
struct inode_operations efs_dir_inode_operations = {
- lookup: efs_lookup,
+ .lookup = efs_lookup,
};
static int efs_readdir(struct file *filp, void *dirent, filldir_t filldir) {
diff --git a/fs/efs/inode.c b/fs/efs/inode.c
index 1b88f39a1c65..658c73451142 100644
--- a/fs/efs/inode.c
+++ b/fs/efs/inode.c
@@ -24,9 +24,9 @@ static int _efs_bmap(struct address_space *mapping, long block)
return generic_block_bmap(mapping,block,efs_get_block);
}
struct address_space_operations efs_aops = {
- readpage: efs_readpage,
- sync_page: block_sync_page,
- bmap: _efs_bmap
+ .readpage = efs_readpage,
+ .sync_page = block_sync_page,
+ .bmap = _efs_bmap
};
static inline void extent_copy(efs_extent *src, efs_extent *dst) {
diff --git a/fs/efs/super.c b/fs/efs/super.c
index 213dff3dec54..5f0e1bac63f7 100644
--- a/fs/efs/super.c
+++ b/fs/efs/super.c
@@ -21,11 +21,11 @@ static struct super_block *efs_get_sb(struct file_system_type *fs_type,
}
static struct file_system_type efs_fs_type = {
- owner: THIS_MODULE,
- name: "efs",
- get_sb: efs_get_sb,
- kill_sb: kill_block_super,
- fs_flags: FS_REQUIRES_DEV,
+ .owner = THIS_MODULE,
+ .name = "efs",
+ .get_sb = efs_get_sb,
+ .kill_sb = kill_block_super,
+ .fs_flags = FS_REQUIRES_DEV,
};
static kmem_cache_t * efs_inode_cachep;
@@ -77,11 +77,11 @@ void efs_put_super(struct super_block *s)
}
static struct super_operations efs_superblock_operations = {
- alloc_inode: efs_alloc_inode,
- destroy_inode: efs_destroy_inode,
- read_inode: efs_read_inode,
- put_super: efs_put_super,
- statfs: efs_statfs,
+ .alloc_inode = efs_alloc_inode,
+ .destroy_inode = efs_destroy_inode,
+ .read_inode = efs_read_inode,
+ .put_super = efs_put_super,
+ .statfs = efs_statfs,
};
static int __init init_efs_fs(void) {
diff --git a/fs/efs/symlink.c b/fs/efs/symlink.c
index c6f0e7e6517c..3d9a350e3e7f 100644
--- a/fs/efs/symlink.c
+++ b/fs/efs/symlink.c
@@ -54,5 +54,5 @@ fail:
}
struct address_space_operations efs_symlink_aops = {
- readpage: efs_symlink_readpage
+ .readpage = efs_symlink_readpage
};