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
22 years ago
by
Art Haas
Committed by
Linus Torvalds
22 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] named initializers for fs/sysv
parent
89a17c87
Changes
7
Hide 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 @@
static
int
sysv_readdir
(
struct
file
*
,
void
*
,
filldir_t
);
struct
file_operations
sysv_dir_operations
=
{
read:
generic_read_dir
,
readdir:
sysv_readdir
,
fsync:
sysv_sync_file
,
.
read
=
generic_read_dir
,
.
readdir
=
sysv_readdir
,
.
fsync
=
sysv_sync_file
,
};
static
inline
void
dir_put_page
(
struct
page
*
page
)
...
...
This diff is collapsed.
Click to expand it.
fs/sysv/file.c
View file @
98ad9a96
...
...
@@ -20,17 +20,17 @@
* the coh filesystem.
*/
struct
file_operations
sysv_file_operations
=
{
llseek:
generic_file_llseek
,
read:
generic_file_read
,
write:
generic_file_write
,
mmap:
generic_file_mmap
,
fsync:
sysv_sync_file
,
sendfile:
generic_file_sendfile
,
.
llseek
=
generic_file_llseek
,
.
read
=
generic_file_read
,
.
write
=
generic_file_write
,
.
mmap
=
generic_file_mmap
,
.
fsync
=
sysv_sync_file
,
.
sendfile
=
generic_file_sendfile
,
};
struct
inode_operations
sysv_file_inode_operations
=
{
truncate:
sysv_truncate
,
getattr:
sysv_getattr
,
.
truncate
=
sysv_truncate
,
.
getattr
=
sysv_getattr
,
};
int
sysv_sync_file
(
struct
file
*
file
,
struct
dentry
*
dentry
,
int
datasync
)
...
...
This diff is collapsed.
Click to expand it.
fs/sysv/inode.c
View file @
98ad9a96
...
...
@@ -131,9 +131,9 @@ static inline void write3byte(struct sysv_sb_info *sbi,
}
static
struct
inode_operations
sysv_symlink_inode_operations
=
{
readlink:
page_readlink
,
follow_link:
page_follow_link
,
getattr:
sysv_getattr
,
.
readlink
=
page_readlink
,
.
follow_link
=
page_follow_link
,
.
getattr
=
sysv_getattr
,
};
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)
}
struct
super_operations
sysv_sops
=
{
alloc_inode:
sysv_alloc_inode
,
destroy_inode:
sysv_destroy_inode
,
read_inode:
sysv_read_inode
,
write_inode:
sysv_write_inode
,
delete_inode:
sysv_delete_inode
,
put_super:
sysv_put_super
,
write_super:
sysv_write_super
,
statfs:
sysv_statfs
,
.
alloc_inode
=
sysv_alloc_inode
,
.
destroy_inode
=
sysv_destroy_inode
,
.
read_inode
=
sysv_read_inode
,
.
write_inode
=
sysv_write_inode
,
.
delete_inode
=
sysv_delete_inode
,
.
put_super
=
sysv_put_super
,
.
write_super
=
sysv_write_super
,
.
statfs
=
sysv_statfs
,
};
int
__init
sysv_init_icache
(
void
)
...
...
This diff is collapsed.
Click to expand it.
fs/sysv/itree.c
View file @
98ad9a96
...
...
@@ -464,10 +464,10 @@ static int sysv_bmap(struct address_space *mapping, long block)
return
generic_block_bmap
(
mapping
,
block
,
get_block
);
}
struct
address_space_operations
sysv_aops
=
{
readpage:
sysv_readpage
,
writepage:
sysv_writepage
,
sync_page:
block_sync_page
,
prepare_write:
sysv_prepare_write
,
commit_write:
generic_commit_write
,
bmap:
sysv_bmap
.
readpage
=
sysv_readpage
,
.
writepage
=
sysv_writepage
,
.
sync_page
=
block_sync_page
,
.
prepare_write
=
sysv_prepare_write
,
.
commit_write
=
generic_commit_write
,
.
bmap
=
sysv_bmap
};
This diff is collapsed.
Click to expand it.
fs/sysv/namei.c
View file @
98ad9a96
...
...
@@ -61,7 +61,7 @@ static int sysv_hash(struct dentry *dentry, struct qstr *qstr)
}
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
)
...
...
@@ -308,14 +308,14 @@ static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry,
* directories can handle most operations...
*/
struct
inode_operations
sysv_dir_inode_operations
=
{
create:
sysv_create
,
lookup:
sysv_lookup
,
link:
sysv_link
,
unlink:
sysv_unlink
,
symlink:
sysv_symlink
,
mkdir:
sysv_mkdir
,
rmdir:
sysv_rmdir
,
mknod:
sysv_mknod
,
rename:
sysv_rename
,
getattr:
sysv_getattr
,
.
create
=
sysv_create
,
.
lookup
=
sysv_lookup
,
.
link
=
sysv_link
,
.
unlink
=
sysv_unlink
,
.
symlink
=
sysv_symlink
,
.
mkdir
=
sysv_mkdir
,
.
rmdir
=
sysv_rmdir
,
.
mknod
=
sysv_mknod
,
.
rename
=
sysv_rename
,
.
getattr
=
sysv_getattr
,
};
This diff is collapsed.
Click to expand it.
fs/sysv/super.c
View file @
98ad9a96
...
...
@@ -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
=
{
owner:
THIS_MODULE
,
name:
"sysv"
,
get_sb:
sysv_get_sb
,
kill_sb:
kill_block_super
,
fs_flags:
FS_REQUIRES_DEV
,
.
owner
=
THIS_MODULE
,
.
name
=
"sysv"
,
.
get_sb
=
sysv_get_sb
,
.
kill_sb
=
kill_block_super
,
.
fs_flags
=
FS_REQUIRES_DEV
,
};
static
struct
file_system_type
v7_fs_type
=
{
owner:
THIS_MODULE
,
name:
"v7"
,
get_sb:
v7_get_sb
,
kill_sb:
kill_block_super
,
fs_flags:
FS_REQUIRES_DEV
,
.
owner
=
THIS_MODULE
,
.
name
=
"v7"
,
.
get_sb
=
v7_get_sb
,
.
kill_sb
=
kill_block_super
,
.
fs_flags
=
FS_REQUIRES_DEV
,
};
extern
int
sysv_init_icache
(
void
)
__init
;
...
...
This diff is collapsed.
Click to expand it.
fs/sysv/symlink.c
View file @
98ad9a96
...
...
@@ -20,6 +20,6 @@ static int sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
}
struct
inode_operations
sysv_fast_symlink_inode_operations
=
{
readlink:
sysv_readlink
,
follow_link:
sysv_follow_link
,
.
readlink
=
sysv_readlink
,
.
follow_link
=
sysv_follow_link
,
};
This diff is collapsed.
Click to expand it.
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