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
Kirill Smelkov
linux
Commits
48b7cb82
Commit
48b7cb82
authored
Sep 29, 2002
by
Art Haas
Committed by
Jeff Garzik
Sep 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 designated initializer patch for fs/ramfs
parent
ffe15c37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
fs/ramfs/inode.c
fs/ramfs/inode.c
+26
-26
No files found.
fs/ramfs/inode.c
View file @
48b7cb82
...
@@ -276,35 +276,35 @@ static int ramfs_sync_file(struct file * file, struct dentry *dentry, int datasy
...
@@ -276,35 +276,35 @@ static int ramfs_sync_file(struct file * file, struct dentry *dentry, int datasy
}
}
static
struct
address_space_operations
ramfs_aops
=
{
static
struct
address_space_operations
ramfs_aops
=
{
readpage:
ramfs_readpage
,
.
readpage
=
ramfs_readpage
,
writepage:
fail_writepage
,
.
writepage
=
fail_writepage
,
prepare_write:
ramfs_prepare_write
,
.
prepare_write
=
ramfs_prepare_write
,
commit_write:
ramfs_commit_write
.
commit_write
=
ramfs_commit_write
};
};
static
struct
file_operations
ramfs_file_operations
=
{
static
struct
file_operations
ramfs_file_operations
=
{
read:
generic_file_read
,
.
read
=
generic_file_read
,
write:
generic_file_write
,
.
write
=
generic_file_write
,
mmap:
generic_file_mmap
,
.
mmap
=
generic_file_mmap
,
fsync:
ramfs_sync_file
,
.
fsync
=
ramfs_sync_file
,
sendfile:
generic_file_sendfile
,
.
sendfile
=
generic_file_sendfile
,
};
};
static
struct
inode_operations
ramfs_dir_inode_operations
=
{
static
struct
inode_operations
ramfs_dir_inode_operations
=
{
create:
ramfs_create
,
.
create
=
ramfs_create
,
lookup:
simple_lookup
,
.
lookup
=
simple_lookup
,
link:
ramfs_link
,
.
link
=
ramfs_link
,
unlink:
ramfs_unlink
,
.
unlink
=
ramfs_unlink
,
symlink:
ramfs_symlink
,
.
symlink
=
ramfs_symlink
,
mkdir:
ramfs_mkdir
,
.
mkdir
=
ramfs_mkdir
,
rmdir:
ramfs_rmdir
,
.
rmdir
=
ramfs_rmdir
,
mknod:
ramfs_mknod
,
.
mknod
=
ramfs_mknod
,
rename:
ramfs_rename
,
.
rename
=
ramfs_rename
,
};
};
static
struct
super_operations
ramfs_ops
=
{
static
struct
super_operations
ramfs_ops
=
{
statfs:
simple_statfs
,
.
statfs
=
simple_statfs
,
drop_inode:
generic_delete_inode
,
.
drop_inode
=
generic_delete_inode
,
};
};
static
int
ramfs_fill_super
(
struct
super_block
*
sb
,
void
*
data
,
int
silent
)
static
int
ramfs_fill_super
(
struct
super_block
*
sb
,
void
*
data
,
int
silent
)
...
@@ -342,14 +342,14 @@ static struct super_block *rootfs_get_sb(struct file_system_type *fs_type,
...
@@ -342,14 +342,14 @@ static struct super_block *rootfs_get_sb(struct file_system_type *fs_type,
}
}
static
struct
file_system_type
ramfs_fs_type
=
{
static
struct
file_system_type
ramfs_fs_type
=
{
name:
"ramfs"
,
.
name
=
"ramfs"
,
get_sb:
ramfs_get_sb
,
.
get_sb
=
ramfs_get_sb
,
kill_sb:
kill_litter_super
,
.
kill_sb
=
kill_litter_super
,
};
};
static
struct
file_system_type
rootfs_fs_type
=
{
static
struct
file_system_type
rootfs_fs_type
=
{
name:
"rootfs"
,
.
name
=
"rootfs"
,
get_sb:
rootfs_get_sb
,
.
get_sb
=
rootfs_get_sb
,
kill_sb:
kill_litter_super
,
.
kill_sb
=
kill_litter_super
,
};
};
static
int
__init
init_ramfs_fs
(
void
)
static
int
__init
init_ramfs_fs
(
void
)
...
...
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