Commit 1390bfa0 authored by David Woodhouse's avatar David Woodhouse

Switch JFFS2 to C99 named initialisers

parent 0ae7cf13
......@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: dir.c,v 1.70 2002/06/20 23:33:12 dwmw2 Exp $
* $Id: dir.c,v 1.71 2002/07/23 17:00:45 dwmw2 Exp $
*
*/
......@@ -38,25 +38,25 @@ static int jffs2_rename (struct inode *, struct dentry *,
struct file_operations jffs2_dir_operations =
{
read: generic_read_dir,
readdir: jffs2_readdir,
ioctl: jffs2_ioctl,
fsync: jffs2_fsync
.read = generic_read_dir,
.readdir = jffs2_readdir,
.ioctl = jffs2_ioctl,
.fsync = jffs2_fsync
};
struct inode_operations jffs2_dir_inode_operations =
{
create: jffs2_create,
lookup: jffs2_lookup,
link: jffs2_link,
unlink: jffs2_unlink,
symlink: jffs2_symlink,
mkdir: jffs2_mkdir,
rmdir: jffs2_rmdir,
mknod: jffs2_mknod,
rename: jffs2_rename,
setattr: jffs2_setattr,
.create = jffs2_create,
.lookup = jffs2_lookup,
.link = jffs2_link,
.unlink = jffs2_unlink,
.symlink = jffs2_symlink,
.mkdir = jffs2_mkdir,
.rmdir = jffs2_rmdir,
.mknod = jffs2_mknod,
.rename = jffs2_rename,
.setattr = jffs2_setattr,
};
/***********************************************************************/
......
......@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: erase.c,v 1.38 2002/07/02 22:48:24 dwmw2 Exp $
* $Id: erase.c,v 1.39 2002/07/23 17:00:45 dwmw2 Exp $
*
*/
......@@ -346,9 +346,9 @@ void jffs2_mark_erased_blocks(struct jffs2_sb_info *c)
jeb->dirty_size = 0;
} else {
struct jffs2_unknown_node marker = {
magic: JFFS2_MAGIC_BITMASK,
nodetype: JFFS2_NODETYPE_CLEANMARKER,
totlen: c->cleanmarker_size
.magic = JFFS2_MAGIC_BITMASK,
.nodetype = JFFS2_NODETYPE_CLEANMARKER,
.totlen = c->cleanmarker_size
};
marker.hdr_crc = crc32(0, &marker, marker.totlen - 4);
......
......@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: file.c,v 1.74 2002/07/23 12:58:53 dwmw2 Exp $
* $Id: file.c,v 1.75 2002/07/23 17:00:45 dwmw2 Exp $
*
*/
......@@ -52,27 +52,27 @@ int jffs2_fsync(struct file *filp, struct dentry *dentry, int datasync)
struct file_operations jffs2_file_operations =
{
llseek: generic_file_llseek,
open: generic_file_open,
read: generic_file_read,
write: generic_file_write,
ioctl: jffs2_ioctl,
mmap: generic_file_mmap,
fsync: jffs2_fsync
.llseek = generic_file_llseek,
.open = generic_file_open,
.read = generic_file_read,
.write = generic_file_write,
.ioctl = jffs2_ioctl,
.mmap = generic_file_mmap,
.fsync = jffs2_fsync
};
/* jffs2_file_inode_operations */
struct inode_operations jffs2_file_inode_operations =
{
setattr: jffs2_setattr
.setattr = jffs2_setattr
};
struct address_space_operations jffs2_file_address_operations =
{
readpage: jffs2_readpage,
prepare_write: jffs2_prepare_write,
commit_write: jffs2_commit_write
.readpage = jffs2_readpage,
.prepare_write =jffs2_prepare_write,
.commit_write = jffs2_commit_write
};
int jffs2_setattr (struct dentry *dentry, struct iattr *iattr)
......
......@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: super.c,v 1.72 2002/07/23 14:39:54 dwmw2 Exp $
* $Id: super.c,v 1.73 2002/07/23 17:00:45 dwmw2 Exp $
*
*/
......@@ -59,14 +59,14 @@ static void jffs2_i_init_once(void * foo, kmem_cache_t * cachep, unsigned long f
static struct super_operations jffs2_super_operations =
{
alloc_inode: jffs2_alloc_inode,
destroy_inode: jffs2_destroy_inode,
read_inode: jffs2_read_inode,
put_super: jffs2_put_super,
write_super: jffs2_write_super,
statfs: jffs2_statfs,
remount_fs: jffs2_remount_fs,
clear_inode: jffs2_clear_inode
.alloc_inode = jffs2_alloc_inode,
.destroy_inode =jffs2_destroy_inode,
.read_inode = jffs2_read_inode,
.put_super = jffs2_put_super,
.write_super = jffs2_write_super,
.statfs = jffs2_statfs,
.remount_fs = jffs2_remount_fs,
.clear_inode = jffs2_clear_inode
};
static int jffs2_sb_compare(struct super_block *sb, void *data)
......@@ -282,10 +282,10 @@ static void jffs2_kill_sb(struct super_block *sb)
}
static struct file_system_type jffs2_fs_type = {
owner: THIS_MODULE,
name: "jffs2",
get_sb: jffs2_get_sb,
kill_sb: jffs2_kill_sb,
.owner = THIS_MODULE,
.name = "jffs2",
.get_sb = jffs2_get_sb,
.kill_sb = jffs2_kill_sb,
};
......
......@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: symlink.c,v 1.10 2002/05/20 14:56:39 dwmw2 Exp $
* $Id: symlink.c,v 1.11 2002/07/23 17:00:45 dwmw2 Exp $
*
*/
......@@ -22,9 +22,9 @@ int jffs2_follow_link(struct dentry *dentry, struct nameidata *nd);
struct inode_operations jffs2_symlink_inode_operations =
{
readlink: jffs2_readlink,
follow_link: jffs2_follow_link,
setattr: jffs2_setattr
.readlink = jffs2_readlink,
.follow_link = jffs2_follow_link,
.setattr = jffs2_setattr
};
int jffs2_readlink(struct dentry *dentry, char *buffer, int buflen)
......
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