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
d001e08a
Commit
d001e08a
authored
Aug 13, 2002
by
Andrew Morton
Committed by
Linus Torvalds
Aug 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] designated initialisers for ext2
Convert ext2 initialisers to c99 format. From Art Haas.
parent
991d0dcb
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
51 additions
and
51 deletions
+51
-51
fs/ext2/dir.c
fs/ext2/dir.c
+4
-4
fs/ext2/file.c
fs/ext2/file.c
+10
-10
fs/ext2/inode.c
fs/ext2/inode.c
+10
-10
fs/ext2/namei.c
fs/ext2/namei.c
+9
-9
fs/ext2/super.c
fs/ext2/super.c
+16
-16
fs/ext2/symlink.c
fs/ext2/symlink.c
+2
-2
No files found.
fs/ext2/dir.c
View file @
d001e08a
...
@@ -655,8 +655,8 @@ int ext2_empty_dir (struct inode * inode)
...
@@ -655,8 +655,8 @@ int ext2_empty_dir (struct inode * inode)
}
}
struct
file_operations
ext2_dir_operations
=
{
struct
file_operations
ext2_dir_operations
=
{
read:
generic_read_dir
,
.
read
=
generic_read_dir
,
readdir:
ext2_readdir
,
.
readdir
=
ext2_readdir
,
ioctl:
ext2_ioctl
,
.
ioctl
=
ext2_ioctl
,
fsync:
ext2_sync_file
,
.
fsync
=
ext2_sync_file
,
};
};
fs/ext2/file.c
View file @
d001e08a
...
@@ -38,17 +38,17 @@ static int ext2_release_file (struct inode * inode, struct file * filp)
...
@@ -38,17 +38,17 @@ static int ext2_release_file (struct inode * inode, struct file * filp)
* the ext2 filesystem.
* the ext2 filesystem.
*/
*/
struct
file_operations
ext2_file_operations
=
{
struct
file_operations
ext2_file_operations
=
{
llseek:
generic_file_llseek
,
.
llseek
=
generic_file_llseek
,
read:
generic_file_read
,
.
read
=
generic_file_read
,
write:
generic_file_write
,
.
write
=
generic_file_write
,
ioctl:
ext2_ioctl
,
.
ioctl
=
ext2_ioctl
,
mmap:
generic_file_mmap
,
.
mmap
=
generic_file_mmap
,
open:
generic_file_open
,
.
open
=
generic_file_open
,
release:
ext2_release_file
,
.
release
=
ext2_release_file
,
fsync:
ext2_sync_file
,
.
fsync
=
ext2_sync_file
,
sendfile:
generic_file_sendfile
,
.
sendfile
=
generic_file_sendfile
,
};
};
struct
inode_operations
ext2_file_inode_operations
=
{
struct
inode_operations
ext2_file_inode_operations
=
{
truncate:
ext2_truncate
,
.
truncate
=
ext2_truncate
,
};
};
fs/ext2/inode.c
View file @
d001e08a
...
@@ -640,16 +640,16 @@ ext2_writepages(struct address_space *mapping, int *nr_to_write)
...
@@ -640,16 +640,16 @@ ext2_writepages(struct address_space *mapping, int *nr_to_write)
}
}
struct
address_space_operations
ext2_aops
=
{
struct
address_space_operations
ext2_aops
=
{
readpage:
ext2_readpage
,
.
readpage
=
ext2_readpage
,
readpages:
ext2_readpages
,
.
readpages
=
ext2_readpages
,
writepage:
ext2_writepage
,
.
writepage
=
ext2_writepage
,
sync_page:
block_sync_page
,
.
sync_page
=
block_sync_page
,
prepare_write:
ext2_prepare_write
,
.
prepare_write
=
ext2_prepare_write
,
commit_write:
generic_commit_write
,
.
commit_write
=
generic_commit_write
,
bmap:
ext2_bmap
,
.
bmap
=
ext2_bmap
,
direct_IO:
ext2_direct_IO
,
.
direct_IO
=
ext2_direct_IO
,
writepages:
ext2_writepages
,
.
writepages
=
ext2_writepages
,
vm_writeback:
generic_vm_writeback
,
.
vm_writeback
=
generic_vm_writeback
,
};
};
/*
/*
...
...
fs/ext2/namei.c
View file @
d001e08a
...
@@ -359,13 +359,13 @@ static int ext2_rename (struct inode * old_dir, struct dentry * old_dentry,
...
@@ -359,13 +359,13 @@ static int ext2_rename (struct inode * old_dir, struct dentry * old_dentry,
}
}
struct
inode_operations
ext2_dir_inode_operations
=
{
struct
inode_operations
ext2_dir_inode_operations
=
{
create:
ext2_create
,
.
create
=
ext2_create
,
lookup:
ext2_lookup
,
.
lookup
=
ext2_lookup
,
link:
ext2_link
,
.
link
=
ext2_link
,
unlink:
ext2_unlink
,
.
unlink
=
ext2_unlink
,
symlink:
ext2_symlink
,
.
symlink
=
ext2_symlink
,
mkdir:
ext2_mkdir
,
.
mkdir
=
ext2_mkdir
,
rmdir:
ext2_rmdir
,
.
rmdir
=
ext2_rmdir
,
mknod:
ext2_mknod
,
.
mknod
=
ext2_mknod
,
rename:
ext2_rename
,
.
rename
=
ext2_rename
,
};
};
fs/ext2/super.c
View file @
d001e08a
...
@@ -194,16 +194,16 @@ static void destroy_inodecache(void)
...
@@ -194,16 +194,16 @@ static void destroy_inodecache(void)
}
}
static
struct
super_operations
ext2_sops
=
{
static
struct
super_operations
ext2_sops
=
{
alloc_inode:
ext2_alloc_inode
,
.
alloc_inode
=
ext2_alloc_inode
,
destroy_inode:
ext2_destroy_inode
,
.
destroy_inode
=
ext2_destroy_inode
,
read_inode:
ext2_read_inode
,
.
read_inode
=
ext2_read_inode
,
write_inode:
ext2_write_inode
,
.
write_inode
=
ext2_write_inode
,
put_inode:
ext2_put_inode
,
.
put_inode
=
ext2_put_inode
,
delete_inode:
ext2_delete_inode
,
.
delete_inode
=
ext2_delete_inode
,
put_super:
ext2_put_super
,
.
put_super
=
ext2_put_super
,
write_super:
ext2_write_super
,
.
write_super
=
ext2_write_super
,
statfs:
ext2_statfs
,
.
statfs
=
ext2_statfs
,
remount_fs:
ext2_remount
,
.
remount_fs
=
ext2_remount
,
};
};
/* Yes, most of these are left as NULL!!
/* Yes, most of these are left as NULL!!
...
@@ -213,7 +213,7 @@ static struct super_operations ext2_sops = {
...
@@ -213,7 +213,7 @@ static struct super_operations ext2_sops = {
*/
*/
struct
dentry
*
ext2_get_parent
(
struct
dentry
*
child
);
struct
dentry
*
ext2_get_parent
(
struct
dentry
*
child
);
static
struct
export_operations
ext2_export_ops
=
{
static
struct
export_operations
ext2_export_ops
=
{
get_parent:
ext2_get_parent
,
.
get_parent
=
ext2_get_parent
,
};
};
/*
/*
...
@@ -874,11 +874,11 @@ static struct super_block *ext2_get_sb(struct file_system_type *fs_type,
...
@@ -874,11 +874,11 @@ static struct super_block *ext2_get_sb(struct file_system_type *fs_type,
}
}
static
struct
file_system_type
ext2_fs_type
=
{
static
struct
file_system_type
ext2_fs_type
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"ext2"
,
.
name
=
"ext2"
,
get_sb:
ext2_get_sb
,
.
get_sb
=
ext2_get_sb
,
kill_sb:
kill_block_super
,
.
kill_sb
=
kill_block_super
,
fs_flags:
FS_REQUIRES_DEV
,
.
fs_flags
=
FS_REQUIRES_DEV
,
};
};
static
int
__init
init_ext2_fs
(
void
)
static
int
__init
init_ext2_fs
(
void
)
...
...
fs/ext2/symlink.c
View file @
d001e08a
...
@@ -32,6 +32,6 @@ static int ext2_follow_link(struct dentry *dentry, struct nameidata *nd)
...
@@ -32,6 +32,6 @@ static int ext2_follow_link(struct dentry *dentry, struct nameidata *nd)
}
}
struct
inode_operations
ext2_fast_symlink_inode_operations
=
{
struct
inode_operations
ext2_fast_symlink_inode_operations
=
{
readlink:
ext2_readlink
,
.
readlink
=
ext2_readlink
,
follow_link:
ext2_follow_link
,
.
follow_link
=
ext2_follow_link
,
};
};
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