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
f71839aa
Commit
f71839aa
authored
Oct 12, 2002
by
Alan Cox
Committed by
Linus Torvalds
Oct 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix qnx4 inits to C99
parent
86f59315
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
51 deletions
+40
-51
fs/qnx4/dir.c
fs/qnx4/dir.c
+7
-7
fs/qnx4/file.c
fs/qnx4/file.c
+7
-9
fs/qnx4/inode.c
fs/qnx4/inode.c
+26
-35
No files found.
fs/qnx4/dir.c
View file @
f71839aa
...
...
@@ -85,17 +85,17 @@ static int qnx4_readdir(struct file *filp, void *dirent, filldir_t filldir)
struct
file_operations
qnx4_dir_operations
=
{
read:
generic_read_dir
,
readdir:
qnx4_readdir
,
fsync:
file_fsync
,
.
read
=
generic_read_dir
,
.
readdir
=
qnx4_readdir
,
.
fsync
=
file_fsync
,
};
struct
inode_operations
qnx4_dir_inode_operations
=
{
lookup:
qnx4_lookup
,
.
lookup
=
qnx4_lookup
,
#ifdef CONFIG_QNX4FS_RW
create:
qnx4_create
,
unlink:
qnx4_unlink
,
rmdir:
qnx4_rmdir
,
.
create
=
qnx4_create
,
.
unlink
=
qnx4_unlink
,
.
rmdir
=
qnx4_rmdir
,
#endif
};
fs/qnx4/file.c
View file @
f71839aa
...
...
@@ -24,21 +24,19 @@
*/
struct
file_operations
qnx4_file_operations
=
{
llseek:
generic_file_llseek
,
read:
generic_file_read
,
.
llseek
=
generic_file_llseek
,
.
read
=
generic_file_read
,
.
mmap
=
generic_file_mmap
,
.
sendfile
=
generic_file_sendfile
,
#ifdef CONFIG_QNX4FS_RW
write:
generic_file_write
,
.
write
=
generic_file_write
,
.
fsync
=
qnx4_sync_file
,
#endif
mmap:
generic_file_mmap
,
#ifdef CONFIG_QNX4FS_RW
fsync:
qnx4_sync_file
,
#endif
sendfile:
generic_file_sendfile
,
};
struct
inode_operations
qnx4_file_inode_operations
=
{
#ifdef CONFIG_QNX4FS_RW
truncate:
qnx4_truncate
,
.
truncate
=
qnx4_truncate
,
#endif
};
fs/qnx4/inode.c
View file @
f71839aa
...
...
@@ -131,19 +131,17 @@ static int qnx4_statfs(struct super_block *, struct statfs *);
static
struct
super_operations
qnx4_sops
=
{
alloc_inode:
qnx4_alloc_inode
,
destroy_inode:
qnx4_destroy_inode
,
read_inode:
qnx4_read_inode
,
.
alloc_inode
=
qnx4_alloc_inode
,
.
destroy_inode
=
qnx4_destroy_inode
,
.
read_inode
=
qnx4_read_inode
,
.
put_super
=
qnx4_put_super
,
.
statfs
=
qnx4_statfs
,
.
remount_fs
=
qnx4_remount
,
#ifdef CONFIG_QNX4FS_RW
write_inode:
qnx4_write_inode
,
delete_inode:
qnx4_delete_inode
,
.
write_inode
=
qnx4_write_inode
,
.
delete_inode
=
qnx4_delete_inode
,
.
write_super
=
qnx4_write_super
,
#endif
put_super:
qnx4_put_super
,
#ifdef CONFIG_QNX4FS_RW
write_super:
qnx4_write_super
,
#endif
statfs:
qnx4_statfs
,
remount_fs:
qnx4_remount
,
};
static
int
qnx4_remount
(
struct
super_block
*
sb
,
int
*
flags
,
char
*
data
)
...
...
@@ -358,26 +356,19 @@ static int qnx4_fill_super(struct super_block *s, void *data, int silent)
sb_set_blocksize
(
s
,
QNX4_BLOCK_SIZE
);
/* Check the
boot
signature. Since the qnx4 code is
/* Check the
superblock
signature. Since the qnx4 code is
dangerous, we should leave as quickly as possible
if we don't belong here... */
bh
=
sb_bread
(
s
,
0
);
bh
=
sb_bread
(
s
,
1
);
if
(
!
bh
)
{
printk
(
"qnx4: unable to read the
boot sector
\n
"
);
printk
(
"qnx4: unable to read the
superblock
\n
"
);
goto
outnobh
;
}
if
(
memcmp
(
(
char
*
)
bh
->
b_data
+
4
,
"QNX4FS"
,
6
)
)
{
if
(
le32_to_cpu
(
*
(
__u32
*
)
bh
->
b_data
)
!=
QNX4_SUPER_MAGIC
)
{
if
(
!
silent
)
printk
(
"qnx4: wrong fsid in
boot sector
.
\n
"
);
printk
(
"qnx4: wrong fsid in
superblock
.
\n
"
);
goto
out
;
}
brelse
(
bh
);
bh
=
sb_bread
(
s
,
1
);
if
(
!
bh
)
{
printk
(
"qnx4: unable to read the superblock
\n
"
);
goto
outnobh
;
}
s
->
s_op
=
&
qnx4_sops
;
s
->
s_magic
=
QNX4_SUPER_MAGIC
;
#ifndef CONFIG_QNX4FS_RW
...
...
@@ -449,12 +440,12 @@ static sector_t qnx4_bmap(struct address_space *mapping, sector_t block)
return
generic_block_bmap
(
mapping
,
block
,
qnx4_get_block
);
}
struct
address_space_operations
qnx4_aops
=
{
readpage:
qnx4_readpage
,
writepage:
qnx4_writepage
,
sync_page:
block_sync_page
,
prepare_write:
qnx4_prepare_write
,
commit_write:
generic_commit_write
,
bmap:
qnx4_bmap
.
readpage
=
qnx4_readpage
,
.
writepage
=
qnx4_writepage
,
.
sync_page
=
block_sync_page
,
.
prepare_write
=
qnx4_prepare_write
,
.
commit_write
=
generic_commit_write
,
.
bmap
=
qnx4_bmap
};
static
void
qnx4_read_inode
(
struct
inode
*
inode
)
...
...
@@ -564,11 +555,11 @@ static struct super_block *qnx4_get_sb(struct file_system_type *fs_type,
}
static
struct
file_system_type
qnx4_fs_type
=
{
owner:
THIS_MODULE
,
name:
"qnx4"
,
get_sb:
qnx4_get_sb
,
kill_sb:
kill_block_super
,
fs_flags:
FS_REQUIRES_DEV
,
.
owner
=
THIS_MODULE
,
.
name
=
"qnx4"
,
.
get_sb
=
qnx4_get_sb
,
.
kill_sb
=
kill_block_super
,
.
fs_flags
=
FS_REQUIRES_DEV
,
};
static
int
__init
init_qnx4_fs
(
void
)
...
...
@@ -585,7 +576,7 @@ static int __init init_qnx4_fs(void)
return
err
;
}
printk
(
"QNX4 filesystem 0.2.
2
registered.
\n
"
);
printk
(
"QNX4 filesystem 0.2.
3
registered.
\n
"
);
return
0
;
}
...
...
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