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
608f7c9b
Commit
608f7c9b
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 for fs/bfs
parent
f2cdc86d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
32 deletions
+32
-32
fs/bfs/dir.c
fs/bfs/dir.c
+8
-8
fs/bfs/file.c
fs/bfs/file.c
+11
-11
fs/bfs/inode.c
fs/bfs/inode.c
+13
-13
No files found.
fs/bfs/dir.c
View file @
608f7c9b
...
@@ -71,9 +71,9 @@ static int bfs_readdir(struct file * f, void * dirent, filldir_t filldir)
...
@@ -71,9 +71,9 @@ static int bfs_readdir(struct file * f, void * dirent, filldir_t filldir)
}
}
struct
file_operations
bfs_dir_operations
=
{
struct
file_operations
bfs_dir_operations
=
{
read:
generic_read_dir
,
.
read
=
generic_read_dir
,
readdir:
bfs_readdir
,
.
readdir
=
bfs_readdir
,
fsync:
file_fsync
,
.
fsync
=
file_fsync
,
};
};
extern
void
dump_imap
(
const
char
*
,
struct
super_block
*
);
extern
void
dump_imap
(
const
char
*
,
struct
super_block
*
);
...
@@ -263,11 +263,11 @@ static int bfs_rename(struct inode * old_dir, struct dentry * old_dentry,
...
@@ -263,11 +263,11 @@ static int bfs_rename(struct inode * old_dir, struct dentry * old_dentry,
}
}
struct
inode_operations
bfs_dir_inops
=
{
struct
inode_operations
bfs_dir_inops
=
{
create:
bfs_create
,
.
create
=
bfs_create
,
lookup:
bfs_lookup
,
.
lookup
=
bfs_lookup
,
link:
bfs_link
,
.
link
=
bfs_link
,
unlink:
bfs_unlink
,
.
unlink
=
bfs_unlink
,
rename:
bfs_rename
,
.
rename
=
bfs_rename
,
};
};
static
int
bfs_add_entry
(
struct
inode
*
dir
,
const
char
*
name
,
int
namelen
,
int
ino
)
static
int
bfs_add_entry
(
struct
inode
*
dir
,
const
char
*
name
,
int
namelen
,
int
ino
)
...
...
fs/bfs/file.c
View file @
608f7c9b
...
@@ -18,11 +18,11 @@
...
@@ -18,11 +18,11 @@
#endif
#endif
struct
file_operations
bfs_file_operations
=
{
struct
file_operations
bfs_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
,
sendfile:
generic_file_sendfile
,
.
sendfile
=
generic_file_sendfile
,
};
};
static
int
bfs_move_block
(
unsigned
long
from
,
unsigned
long
to
,
struct
super_block
*
sb
)
static
int
bfs_move_block
(
unsigned
long
from
,
unsigned
long
to
,
struct
super_block
*
sb
)
...
@@ -151,12 +151,12 @@ static int bfs_bmap(struct address_space *mapping, long block)
...
@@ -151,12 +151,12 @@ static int bfs_bmap(struct address_space *mapping, long block)
}
}
struct
address_space_operations
bfs_aops
=
{
struct
address_space_operations
bfs_aops
=
{
readpage:
bfs_readpage
,
.
readpage
=
bfs_readpage
,
writepage:
bfs_writepage
,
.
writepage
=
bfs_writepage
,
sync_page:
block_sync_page
,
.
sync_page
=
block_sync_page
,
prepare_write:
bfs_prepare_write
,
.
prepare_write
=
bfs_prepare_write
,
commit_write:
generic_commit_write
,
.
commit_write
=
generic_commit_write
,
bmap:
bfs_bmap
,
.
bmap
=
bfs_bmap
,
};
};
struct
inode_operations
bfs_file_inops
;
struct
inode_operations
bfs_file_inops
;
fs/bfs/inode.c
View file @
608f7c9b
...
@@ -253,14 +253,14 @@ static void destroy_inodecache(void)
...
@@ -253,14 +253,14 @@ static void destroy_inodecache(void)
}
}
static
struct
super_operations
bfs_sops
=
{
static
struct
super_operations
bfs_sops
=
{
alloc_inode:
bfs_alloc_inode
,
.
alloc_inode
=
bfs_alloc_inode
,
destroy_inode:
bfs_destroy_inode
,
.
destroy_inode
=
bfs_destroy_inode
,
read_inode:
bfs_read_inode
,
.
read_inode
=
bfs_read_inode
,
write_inode:
bfs_write_inode
,
.
write_inode
=
bfs_write_inode
,
delete_inode:
bfs_delete_inode
,
.
delete_inode
=
bfs_delete_inode
,
put_super:
bfs_put_super
,
.
put_super
=
bfs_put_super
,
write_super:
bfs_write_super
,
.
write_super
=
bfs_write_super
,
statfs:
bfs_statfs
,
.
statfs
=
bfs_statfs
,
};
};
void
dump_imap
(
const
char
*
prefix
,
struct
super_block
*
s
)
void
dump_imap
(
const
char
*
prefix
,
struct
super_block
*
s
)
...
@@ -381,11 +381,11 @@ static struct super_block *bfs_get_sb(struct file_system_type *fs_type,
...
@@ -381,11 +381,11 @@ static struct super_block *bfs_get_sb(struct file_system_type *fs_type,
}
}
static
struct
file_system_type
bfs_fs_type
=
{
static
struct
file_system_type
bfs_fs_type
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"bfs"
,
.
name
=
"bfs"
,
get_sb:
bfs_get_sb
,
.
get_sb
=
bfs_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_bfs_fs
(
void
)
static
int
__init
init_bfs_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