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
79b4dfa9
Commit
79b4dfa9
authored
Feb 06, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Feb 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] (6/6) more ->get_sb()
minixfs switched.
parent
64954608
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
fs/minix/inode.c
fs/minix/inode.c
+15
-5
No files found.
fs/minix/inode.c
View file @
79b4dfa9
...
@@ -163,8 +163,7 @@ static int minix_remount (struct super_block * sb, int * flags, char * data)
...
@@ -163,8 +163,7 @@ static int minix_remount (struct super_block * sb, int * flags, char * data)
return
0
;
return
0
;
}
}
static
struct
super_block
*
minix_read_super
(
struct
super_block
*
s
,
void
*
data
,
static
int
minix_fill_super
(
struct
super_block
*
s
,
void
*
data
,
int
silent
)
int
silent
)
{
{
struct
buffer_head
*
bh
;
struct
buffer_head
*
bh
;
struct
buffer_head
**
map
;
struct
buffer_head
**
map
;
...
@@ -273,7 +272,7 @@ static struct super_block *minix_read_super(struct super_block *s, void *data,
...
@@ -273,7 +272,7 @@ static struct super_block *minix_read_super(struct super_block *s, void *data,
else
if
(
sbi
->
s_mount_state
&
MINIX_ERROR_FS
)
else
if
(
sbi
->
s_mount_state
&
MINIX_ERROR_FS
)
printk
(
"MINIX-fs: mounting file system with errors, "
printk
(
"MINIX-fs: mounting file system with errors, "
"running fsck is recommended.
\n
"
);
"running fsck is recommended.
\n
"
);
return
s
;
return
0
;
out_iput:
out_iput:
iput
(
root_inode
);
iput
(
root_inode
);
...
@@ -314,7 +313,7 @@ static struct super_block *minix_read_super(struct super_block *s, void *data,
...
@@ -314,7 +313,7 @@ static struct super_block *minix_read_super(struct super_block *s, void *data,
out_bad_sb:
out_bad_sb:
printk
(
"MINIX-fs: unable to read superblock
\n
"
);
printk
(
"MINIX-fs: unable to read superblock
\n
"
);
out:
out:
return
NUL
L
;
return
-
EINVA
L
;
}
}
static
int
minix_statfs
(
struct
super_block
*
sb
,
struct
statfs
*
buf
)
static
int
minix_statfs
(
struct
super_block
*
sb
,
struct
statfs
*
buf
)
...
@@ -558,7 +557,18 @@ void minix_truncate(struct inode * inode)
...
@@ -558,7 +557,18 @@ void minix_truncate(struct inode * inode)
V2_minix_truncate
(
inode
);
V2_minix_truncate
(
inode
);
}
}
static
DECLARE_FSTYPE_DEV
(
minix_fs_type
,
"minix"
,
minix_read_super
);
static
struct
super_block
*
minix_get_sb
(
struct
file_system_type
*
fs_type
,
int
flags
,
char
*
dev_name
,
void
*
data
)
{
return
get_sb_bdev
(
fs_type
,
flags
,
dev_name
,
data
,
minix_fill_super
);
}
static
struct
file_system_type
minix_fs_type
=
{
owner:
THIS_MODULE
,
name:
"minix"
,
get_sb:
minix_get_sb
,
fs_flags:
FS_REQUIRES_DEV
,
};
static
int
__init
init_minix_fs
(
void
)
static
int
__init
init_minix_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