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
98ad9a96
Commit
98ad9a96
authored
Oct 07, 2002
by
Art Haas
Committed by
Linus Torvalds
Oct 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] named initializers for fs/sysv
parent
89a17c87
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
51 deletions
+51
-51
fs/sysv/dir.c
fs/sysv/dir.c
+3
-3
fs/sysv/file.c
fs/sysv/file.c
+8
-8
fs/sysv/inode.c
fs/sysv/inode.c
+11
-11
fs/sysv/itree.c
fs/sysv/itree.c
+6
-6
fs/sysv/namei.c
fs/sysv/namei.c
+11
-11
fs/sysv/super.c
fs/sysv/super.c
+10
-10
fs/sysv/symlink.c
fs/sysv/symlink.c
+2
-2
No files found.
fs/sysv/dir.c
View file @
98ad9a96
...
@@ -21,9 +21,9 @@
...
@@ -21,9 +21,9 @@
static
int
sysv_readdir
(
struct
file
*
,
void
*
,
filldir_t
);
static
int
sysv_readdir
(
struct
file
*
,
void
*
,
filldir_t
);
struct
file_operations
sysv_dir_operations
=
{
struct
file_operations
sysv_dir_operations
=
{
read:
generic_read_dir
,
.
read
=
generic_read_dir
,
readdir:
sysv_readdir
,
.
readdir
=
sysv_readdir
,
fsync:
sysv_sync_file
,
.
fsync
=
sysv_sync_file
,
};
};
static
inline
void
dir_put_page
(
struct
page
*
page
)
static
inline
void
dir_put_page
(
struct
page
*
page
)
...
...
fs/sysv/file.c
View file @
98ad9a96
...
@@ -20,17 +20,17 @@
...
@@ -20,17 +20,17 @@
* the coh filesystem.
* the coh filesystem.
*/
*/
struct
file_operations
sysv_file_operations
=
{
struct
file_operations
sysv_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:
sysv_sync_file
,
.
fsync
=
sysv_sync_file
,
sendfile:
generic_file_sendfile
,
.
sendfile
=
generic_file_sendfile
,
};
};
struct
inode_operations
sysv_file_inode_operations
=
{
struct
inode_operations
sysv_file_inode_operations
=
{
truncate:
sysv_truncate
,
.
truncate
=
sysv_truncate
,
getattr:
sysv_getattr
,
.
getattr
=
sysv_getattr
,
};
};
int
sysv_sync_file
(
struct
file
*
file
,
struct
dentry
*
dentry
,
int
datasync
)
int
sysv_sync_file
(
struct
file
*
file
,
struct
dentry
*
dentry
,
int
datasync
)
...
...
fs/sysv/inode.c
View file @
98ad9a96
...
@@ -131,9 +131,9 @@ static inline void write3byte(struct sysv_sb_info *sbi,
...
@@ -131,9 +131,9 @@ static inline void write3byte(struct sysv_sb_info *sbi,
}
}
static
struct
inode_operations
sysv_symlink_inode_operations
=
{
static
struct
inode_operations
sysv_symlink_inode_operations
=
{
readlink:
page_readlink
,
.
readlink
=
page_readlink
,
follow_link:
page_follow_link
,
.
follow_link
=
page_follow_link
,
getattr:
sysv_getattr
,
.
getattr
=
sysv_getattr
,
};
};
void
sysv_set_inode
(
struct
inode
*
inode
,
dev_t
rdev
)
void
sysv_set_inode
(
struct
inode
*
inode
,
dev_t
rdev
)
...
@@ -311,14 +311,14 @@ static void init_once(void *p, kmem_cache_t *cachep, unsigned long flags)
...
@@ -311,14 +311,14 @@ static void init_once(void *p, kmem_cache_t *cachep, unsigned long flags)
}
}
struct
super_operations
sysv_sops
=
{
struct
super_operations
sysv_sops
=
{
alloc_inode:
sysv_alloc_inode
,
.
alloc_inode
=
sysv_alloc_inode
,
destroy_inode:
sysv_destroy_inode
,
.
destroy_inode
=
sysv_destroy_inode
,
read_inode:
sysv_read_inode
,
.
read_inode
=
sysv_read_inode
,
write_inode:
sysv_write_inode
,
.
write_inode
=
sysv_write_inode
,
delete_inode:
sysv_delete_inode
,
.
delete_inode
=
sysv_delete_inode
,
put_super:
sysv_put_super
,
.
put_super
=
sysv_put_super
,
write_super:
sysv_write_super
,
.
write_super
=
sysv_write_super
,
statfs:
sysv_statfs
,
.
statfs
=
sysv_statfs
,
};
};
int
__init
sysv_init_icache
(
void
)
int
__init
sysv_init_icache
(
void
)
...
...
fs/sysv/itree.c
View file @
98ad9a96
...
@@ -464,10 +464,10 @@ static int sysv_bmap(struct address_space *mapping, long block)
...
@@ -464,10 +464,10 @@ static int sysv_bmap(struct address_space *mapping, long block)
return
generic_block_bmap
(
mapping
,
block
,
get_block
);
return
generic_block_bmap
(
mapping
,
block
,
get_block
);
}
}
struct
address_space_operations
sysv_aops
=
{
struct
address_space_operations
sysv_aops
=
{
readpage:
sysv_readpage
,
.
readpage
=
sysv_readpage
,
writepage:
sysv_writepage
,
.
writepage
=
sysv_writepage
,
sync_page:
block_sync_page
,
.
sync_page
=
block_sync_page
,
prepare_write:
sysv_prepare_write
,
.
prepare_write
=
sysv_prepare_write
,
commit_write:
generic_commit_write
,
.
commit_write
=
generic_commit_write
,
bmap:
sysv_bmap
.
bmap
=
sysv_bmap
};
};
fs/sysv/namei.c
View file @
98ad9a96
...
@@ -61,7 +61,7 @@ static int sysv_hash(struct dentry *dentry, struct qstr *qstr)
...
@@ -61,7 +61,7 @@ static int sysv_hash(struct dentry *dentry, struct qstr *qstr)
}
}
struct
dentry_operations
sysv_dentry_operations
=
{
struct
dentry_operations
sysv_dentry_operations
=
{
d_hash:
sysv_hash
,
.
d_hash
=
sysv_hash
,
};
};
static
struct
dentry
*
sysv_lookup
(
struct
inode
*
dir
,
struct
dentry
*
dentry
)
static
struct
dentry
*
sysv_lookup
(
struct
inode
*
dir
,
struct
dentry
*
dentry
)
...
@@ -308,14 +308,14 @@ static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry,
...
@@ -308,14 +308,14 @@ static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry,
* directories can handle most operations...
* directories can handle most operations...
*/
*/
struct
inode_operations
sysv_dir_inode_operations
=
{
struct
inode_operations
sysv_dir_inode_operations
=
{
create:
sysv_create
,
.
create
=
sysv_create
,
lookup:
sysv_lookup
,
.
lookup
=
sysv_lookup
,
link:
sysv_link
,
.
link
=
sysv_link
,
unlink:
sysv_unlink
,
.
unlink
=
sysv_unlink
,
symlink:
sysv_symlink
,
.
symlink
=
sysv_symlink
,
mkdir:
sysv_mkdir
,
.
mkdir
=
sysv_mkdir
,
rmdir:
sysv_rmdir
,
.
rmdir
=
sysv_rmdir
,
mknod:
sysv_mknod
,
.
mknod
=
sysv_mknod
,
rename:
sysv_rename
,
.
rename
=
sysv_rename
,
getattr:
sysv_getattr
,
.
getattr
=
sysv_getattr
,
};
};
fs/sysv/super.c
View file @
98ad9a96
...
@@ -509,19 +509,19 @@ static struct super_block *v7_get_sb(struct file_system_type *fs_type,
...
@@ -509,19 +509,19 @@ static struct super_block *v7_get_sb(struct file_system_type *fs_type,
}
}
static
struct
file_system_type
sysv_fs_type
=
{
static
struct
file_system_type
sysv_fs_type
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"sysv"
,
.
name
=
"sysv"
,
get_sb:
sysv_get_sb
,
.
get_sb
=
sysv_get_sb
,
kill_sb:
kill_block_super
,
.
kill_sb
=
kill_block_super
,
fs_flags:
FS_REQUIRES_DEV
,
.
fs_flags
=
FS_REQUIRES_DEV
,
};
};
static
struct
file_system_type
v7_fs_type
=
{
static
struct
file_system_type
v7_fs_type
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"v7"
,
.
name
=
"v7"
,
get_sb:
v7_get_sb
,
.
get_sb
=
v7_get_sb
,
kill_sb:
kill_block_super
,
.
kill_sb
=
kill_block_super
,
fs_flags:
FS_REQUIRES_DEV
,
.
fs_flags
=
FS_REQUIRES_DEV
,
};
};
extern
int
sysv_init_icache
(
void
)
__init
;
extern
int
sysv_init_icache
(
void
)
__init
;
...
...
fs/sysv/symlink.c
View file @
98ad9a96
...
@@ -20,6 +20,6 @@ static int sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
...
@@ -20,6 +20,6 @@ static int sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
}
}
struct
inode_operations
sysv_fast_symlink_inode_operations
=
{
struct
inode_operations
sysv_fast_symlink_inode_operations
=
{
readlink:
sysv_readlink
,
.
readlink
=
sysv_readlink
,
follow_link:
sysv_follow_link
,
.
follow_link
=
sysv_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