mtd/fs/jffs2 dir.c,1.70,1.71 erase.c,1.38,1.39 file.c,1.74,1.75 super.c,1.72,1.73 symlink.c,1.10,1.11
David Woodhouse
dwmw2 at infradead.org
Tue Jul 23 13:00:48 EDT 2002
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv25745
Modified Files:
dir.c erase.c file.c super.c symlink.c
Log Message:
Switch to C99 named initialisers
Index: dir.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/dir.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- dir.c 20 Jun 2002 23:33:12 -0000 1.70
+++ dir.c 23 Jul 2002 17:00:45 -0000 1.71
@@ -38,25 +38,25 @@
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,
};
/***********************************************************************/
Index: erase.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/erase.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- erase.c 2 Jul 2002 22:48:24 -0000 1.38
+++ erase.c 23 Jul 2002 17:00:45 -0000 1.39
@@ -346,9 +346,9 @@
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);
Index: file.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/file.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- file.c 23 Jul 2002 12:58:53 -0000 1.74
+++ file.c 23 Jul 2002 17:00:45 -0000 1.75
@@ -52,27 +52,27 @@
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)
Index: super.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/super.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- super.c 23 Jul 2002 14:39:54 -0000 1.72
+++ super.c 23 Jul 2002 17:00:45 -0000 1.73
@@ -59,14 +59,14 @@
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 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,
};
Index: symlink.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/symlink.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- symlink.c 20 May 2002 14:56:39 -0000 1.10
+++ symlink.c 23 Jul 2002 17:00:45 -0000 1.11
@@ -22,9 +22,9 @@
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)
More information about the linux-mtd-cvs
mailing list