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
2b443eea
Commit
2b443eea
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 initializers for fs/minix
parent
608f7c9b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
44 deletions
+44
-44
fs/minix/dir.c
fs/minix/dir.c
+3
-3
fs/minix/file.c
fs/minix/file.c
+8
-8
fs/minix/inode.c
fs/minix/inode.c
+22
-22
fs/minix/namei.c
fs/minix/namei.c
+11
-11
No files found.
fs/minix/dir.c
View file @
2b443eea
...
@@ -15,9 +15,9 @@ typedef struct minix_dir_entry minix_dirent;
...
@@ -15,9 +15,9 @@ typedef struct minix_dir_entry minix_dirent;
static
int
minix_readdir
(
struct
file
*
,
void
*
,
filldir_t
);
static
int
minix_readdir
(
struct
file
*
,
void
*
,
filldir_t
);
struct
file_operations
minix_dir_operations
=
{
struct
file_operations
minix_dir_operations
=
{
read:
generic_read_dir
,
.
read
=
generic_read_dir
,
readdir:
minix_readdir
,
.
readdir
=
minix_readdir
,
fsync:
minix_sync_file
,
.
fsync
=
minix_sync_file
,
};
};
static
inline
void
dir_put_page
(
struct
page
*
page
)
static
inline
void
dir_put_page
(
struct
page
*
page
)
...
...
fs/minix/file.c
View file @
2b443eea
...
@@ -16,17 +16,17 @@
...
@@ -16,17 +16,17 @@
int
minix_sync_file
(
struct
file
*
,
struct
dentry
*
,
int
);
int
minix_sync_file
(
struct
file
*
,
struct
dentry
*
,
int
);
struct
file_operations
minix_file_operations
=
{
struct
file_operations
minix_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
,
mmap:
generic_file_mmap
,
.
mmap
=
generic_file_mmap
,
fsync:
minix_sync_file
,
.
fsync
=
minix_sync_file
,
sendfile:
generic_file_sendfile
,
.
sendfile
=
generic_file_sendfile
,
};
};
struct
inode_operations
minix_file_inode_operations
=
{
struct
inode_operations
minix_file_inode_operations
=
{
truncate:
minix_truncate
,
.
truncate
=
minix_truncate
,
getattr:
minix_getattr
,
.
getattr
=
minix_getattr
,
};
};
int
minix_sync_file
(
struct
file
*
file
,
struct
dentry
*
dentry
,
int
datasync
)
int
minix_sync_file
(
struct
file
*
file
,
struct
dentry
*
dentry
,
int
datasync
)
...
...
fs/minix/inode.c
View file @
2b443eea
...
@@ -92,14 +92,14 @@ static void destroy_inodecache(void)
...
@@ -92,14 +92,14 @@ static void destroy_inodecache(void)
}
}
static
struct
super_operations
minix_sops
=
{
static
struct
super_operations
minix_sops
=
{
alloc_inode:
minix_alloc_inode
,
.
alloc_inode
=
minix_alloc_inode
,
destroy_inode:
minix_destroy_inode
,
.
destroy_inode
=
minix_destroy_inode
,
read_inode:
minix_read_inode
,
.
read_inode
=
minix_read_inode
,
write_inode:
minix_write_inode
,
.
write_inode
=
minix_write_inode
,
delete_inode:
minix_delete_inode
,
.
delete_inode
=
minix_delete_inode
,
put_super:
minix_put_super
,
.
put_super
=
minix_put_super
,
statfs:
minix_statfs
,
.
statfs
=
minix_statfs
,
remount_fs:
minix_remount
,
.
remount_fs
=
minix_remount
,
};
};
static
int
minix_remount
(
struct
super_block
*
sb
,
int
*
flags
,
char
*
data
)
static
int
minix_remount
(
struct
super_block
*
sb
,
int
*
flags
,
char
*
data
)
...
@@ -333,18 +333,18 @@ static int minix_bmap(struct address_space *mapping, long block)
...
@@ -333,18 +333,18 @@ static int minix_bmap(struct address_space *mapping, long block)
return
generic_block_bmap
(
mapping
,
block
,
minix_get_block
);
return
generic_block_bmap
(
mapping
,
block
,
minix_get_block
);
}
}
static
struct
address_space_operations
minix_aops
=
{
static
struct
address_space_operations
minix_aops
=
{
readpage:
minix_readpage
,
.
readpage
=
minix_readpage
,
writepage:
minix_writepage
,
.
writepage
=
minix_writepage
,
sync_page:
block_sync_page
,
.
sync_page
=
block_sync_page
,
prepare_write:
minix_prepare_write
,
.
prepare_write
=
minix_prepare_write
,
commit_write:
generic_commit_write
,
.
commit_write
=
generic_commit_write
,
bmap:
minix_bmap
.
bmap
=
minix_bmap
};
};
static
struct
inode_operations
minix_symlink_inode_operations
=
{
static
struct
inode_operations
minix_symlink_inode_operations
=
{
readlink:
page_readlink
,
.
readlink
=
page_readlink
,
follow_link:
page_follow_link
,
.
follow_link
=
page_follow_link
,
getattr:
minix_getattr
,
.
getattr
=
minix_getattr
,
};
};
void
minix_set_inode
(
struct
inode
*
inode
,
dev_t
rdev
)
void
minix_set_inode
(
struct
inode
*
inode
,
dev_t
rdev
)
...
@@ -554,11 +554,11 @@ static struct super_block *minix_get_sb(struct file_system_type *fs_type,
...
@@ -554,11 +554,11 @@ static struct super_block *minix_get_sb(struct file_system_type *fs_type,
}
}
static
struct
file_system_type
minix_fs_type
=
{
static
struct
file_system_type
minix_fs_type
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"minix"
,
.
name
=
"minix"
,
get_sb:
minix_get_sb
,
.
get_sb
=
minix_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_minix_fs
(
void
)
static
int
__init
init_minix_fs
(
void
)
...
...
fs/minix/namei.c
View file @
2b443eea
...
@@ -51,7 +51,7 @@ static int minix_hash(struct dentry *dentry, struct qstr *qstr)
...
@@ -51,7 +51,7 @@ static int minix_hash(struct dentry *dentry, struct qstr *qstr)
}
}
struct
dentry_operations
minix_dentry_operations
=
{
struct
dentry_operations
minix_dentry_operations
=
{
d_hash:
minix_hash
,
.
d_hash
=
minix_hash
,
};
};
static
struct
dentry
*
minix_lookup
(
struct
inode
*
dir
,
struct
dentry
*
dentry
)
static
struct
dentry
*
minix_lookup
(
struct
inode
*
dir
,
struct
dentry
*
dentry
)
...
@@ -298,14 +298,14 @@ static int minix_rename(struct inode * old_dir, struct dentry *old_dentry,
...
@@ -298,14 +298,14 @@ static int minix_rename(struct inode * old_dir, struct dentry *old_dentry,
* directories can handle most operations...
* directories can handle most operations...
*/
*/
struct
inode_operations
minix_dir_inode_operations
=
{
struct
inode_operations
minix_dir_inode_operations
=
{
create:
minix_create
,
.
create
=
minix_create
,
lookup:
minix_lookup
,
.
lookup
=
minix_lookup
,
link:
minix_link
,
.
link
=
minix_link
,
unlink:
minix_unlink
,
.
unlink
=
minix_unlink
,
symlink:
minix_symlink
,
.
symlink
=
minix_symlink
,
mkdir:
minix_mkdir
,
.
mkdir
=
minix_mkdir
,
rmdir:
minix_rmdir
,
.
rmdir
=
minix_rmdir
,
mknod:
minix_mknod
,
.
mknod
=
minix_mknod
,
rename:
minix_rename
,
.
rename
=
minix_rename
,
getattr:
minix_getattr
,
.
getattr
=
minix_getattr
,
};
};
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