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
8497f951
Commit
8497f951
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/ufs
parent
731b62ae
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
41 deletions
+41
-41
fs/ufs/dir.c
fs/ufs/dir.c
+3
-3
fs/ufs/file.c
fs/ufs/file.c
+7
-7
fs/ufs/inode.c
fs/ufs/inode.c
+6
-6
fs/ufs/namei.c
fs/ufs/namei.c
+9
-9
fs/ufs/super.c
fs/ufs/super.c
+14
-14
fs/ufs/symlink.c
fs/ufs/symlink.c
+2
-2
No files found.
fs/ufs/dir.c
View file @
8497f951
...
@@ -623,7 +623,7 @@ int ufs_empty_dir (struct inode * inode)
...
@@ -623,7 +623,7 @@ int ufs_empty_dir (struct inode * inode)
}
}
struct
file_operations
ufs_dir_operations
=
{
struct
file_operations
ufs_dir_operations
=
{
read:
generic_read_dir
,
.
read
=
generic_read_dir
,
readdir:
ufs_readdir
,
.
readdir
=
ufs_readdir
,
fsync:
file_fsync
,
.
fsync
=
file_fsync
,
};
};
fs/ufs/file.c
View file @
8497f951
...
@@ -42,14 +42,14 @@
...
@@ -42,14 +42,14 @@
*/
*/
struct
file_operations
ufs_file_operations
=
{
struct
file_operations
ufs_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
,
open:
generic_file_open
,
.
open
=
generic_file_open
,
sendfile:
generic_file_sendfile
,
.
sendfile
=
generic_file_sendfile
,
};
};
struct
inode_operations
ufs_file_inode_operations
=
{
struct
inode_operations
ufs_file_inode_operations
=
{
truncate:
ufs_truncate
,
.
truncate
=
ufs_truncate
,
};
};
fs/ufs/inode.c
View file @
8497f951
...
@@ -462,12 +462,12 @@ static int ufs_bmap(struct address_space *mapping, long block)
...
@@ -462,12 +462,12 @@ static int ufs_bmap(struct address_space *mapping, long block)
return
generic_block_bmap
(
mapping
,
block
,
ufs_getfrag_block
);
return
generic_block_bmap
(
mapping
,
block
,
ufs_getfrag_block
);
}
}
struct
address_space_operations
ufs_aops
=
{
struct
address_space_operations
ufs_aops
=
{
readpage:
ufs_readpage
,
.
readpage
=
ufs_readpage
,
writepage:
ufs_writepage
,
.
writepage
=
ufs_writepage
,
sync_page:
block_sync_page
,
.
sync_page
=
block_sync_page
,
prepare_write:
ufs_prepare_write
,
.
prepare_write
=
ufs_prepare_write
,
commit_write:
generic_commit_write
,
.
commit_write
=
generic_commit_write
,
bmap:
ufs_bmap
.
bmap
=
ufs_bmap
};
};
void
ufs_read_inode
(
struct
inode
*
inode
)
void
ufs_read_inode
(
struct
inode
*
inode
)
...
...
fs/ufs/namei.c
View file @
8497f951
...
@@ -350,13 +350,13 @@ static int ufs_rename (struct inode * old_dir, struct dentry * old_dentry,
...
@@ -350,13 +350,13 @@ static int ufs_rename (struct inode * old_dir, struct dentry * old_dentry,
}
}
struct
inode_operations
ufs_dir_inode_operations
=
{
struct
inode_operations
ufs_dir_inode_operations
=
{
create:
ufs_create
,
.
create
=
ufs_create
,
lookup:
ufs_lookup
,
.
lookup
=
ufs_lookup
,
link:
ufs_link
,
.
link
=
ufs_link
,
unlink:
ufs_unlink
,
.
unlink
=
ufs_unlink
,
symlink:
ufs_symlink
,
.
symlink
=
ufs_symlink
,
mkdir:
ufs_mkdir
,
.
mkdir
=
ufs_mkdir
,
rmdir:
ufs_rmdir
,
.
rmdir
=
ufs_rmdir
,
mknod:
ufs_mknod
,
.
mknod
=
ufs_mknod
,
rename:
ufs_rename
,
.
rename
=
ufs_rename
,
};
};
fs/ufs/super.c
View file @
8497f951
...
@@ -1041,15 +1041,15 @@ static void destroy_inodecache(void)
...
@@ -1041,15 +1041,15 @@ static void destroy_inodecache(void)
}
}
static
struct
super_operations
ufs_super_ops
=
{
static
struct
super_operations
ufs_super_ops
=
{
alloc_inode:
ufs_alloc_inode
,
.
alloc_inode
=
ufs_alloc_inode
,
destroy_inode:
ufs_destroy_inode
,
.
destroy_inode
=
ufs_destroy_inode
,
read_inode:
ufs_read_inode
,
.
read_inode
=
ufs_read_inode
,
write_inode:
ufs_write_inode
,
.
write_inode
=
ufs_write_inode
,
delete_inode:
ufs_delete_inode
,
.
delete_inode
=
ufs_delete_inode
,
put_super:
ufs_put_super
,
.
put_super
=
ufs_put_super
,
write_super:
ufs_write_super
,
.
write_super
=
ufs_write_super
,
statfs:
ufs_statfs
,
.
statfs
=
ufs_statfs
,
remount_fs:
ufs_remount
,
.
remount_fs
=
ufs_remount
,
};
};
static
struct
super_block
*
ufs_get_sb
(
struct
file_system_type
*
fs_type
,
static
struct
super_block
*
ufs_get_sb
(
struct
file_system_type
*
fs_type
,
...
@@ -1059,11 +1059,11 @@ static struct super_block *ufs_get_sb(struct file_system_type *fs_type,
...
@@ -1059,11 +1059,11 @@ static struct super_block *ufs_get_sb(struct file_system_type *fs_type,
}
}
static
struct
file_system_type
ufs_fs_type
=
{
static
struct
file_system_type
ufs_fs_type
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"ufs"
,
.
name
=
"ufs"
,
get_sb:
ufs_get_sb
,
.
get_sb
=
ufs_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_ufs_fs
(
void
)
static
int
__init
init_ufs_fs
(
void
)
...
...
fs/ufs/symlink.c
View file @
8497f951
...
@@ -41,6 +41,6 @@ static int ufs_follow_link(struct dentry *dentry, struct nameidata *nd)
...
@@ -41,6 +41,6 @@ static int ufs_follow_link(struct dentry *dentry, struct nameidata *nd)
}
}
struct
inode_operations
ufs_fast_symlink_inode_operations
=
{
struct
inode_operations
ufs_fast_symlink_inode_operations
=
{
readlink:
ufs_readlink
,
.
readlink
=
ufs_readlink
,
follow_link:
ufs_follow_link
,
.
follow_link
=
ufs_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