Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1390bfa0
Commit
1390bfa0
authored
Jul 23, 2002
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch JFFS2 to C99 named initialisers
parent
0ae7cf13
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
48 deletions
+48
-48
fs/jffs2/dir.c
fs/jffs2/dir.c
+15
-15
fs/jffs2/erase.c
fs/jffs2/erase.c
+4
-4
fs/jffs2/file.c
fs/jffs2/file.c
+12
-12
fs/jffs2/super.c
fs/jffs2/super.c
+13
-13
fs/jffs2/symlink.c
fs/jffs2/symlink.c
+4
-4
No files found.
fs/jffs2/dir.c
View file @
1390bfa0
...
...
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: dir.c,v 1.7
0 2002/06/20 23:33:12
dwmw2 Exp $
* $Id: dir.c,v 1.7
1 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
,
};
/***********************************************************************/
...
...
fs/jffs2/erase.c
View file @
1390bfa0
...
...
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: erase.c,v 1.3
8 2002/07/02 22:48:24
dwmw2 Exp $
* $Id: erase.c,v 1.3
9 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
);
...
...
fs/jffs2/file.c
View file @
1390bfa0
...
...
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: file.c,v 1.7
4 2002/07/23 12:58:53
dwmw2 Exp $
* $Id: file.c,v 1.7
5 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
)
...
...
fs/jffs2/super.c
View file @
1390bfa0
...
...
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: super.c,v 1.7
2 2002/07/23 14:39:54
dwmw2 Exp $
* $Id: super.c,v 1.7
3 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
,
};
...
...
fs/jffs2/symlink.c
View file @
1390bfa0
...
...
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: symlink.c,v 1.1
0 2002/05/20 14:56:39
dwmw2 Exp $
* $Id: symlink.c,v 1.1
1 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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment