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
e23defd9
Commit
e23defd9
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] (5/9) more ->get_sb() stuff
More ->get_sb() patches: openpromfs
parent
89d1477c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
fs/openpromfs/inode.c
fs/openpromfs/inode.c
+15
-6
No files found.
fs/openpromfs/inode.c
View file @
e23defd9
...
...
@@ -998,8 +998,7 @@ static struct super_operations openprom_sops = {
statfs:
openprom_statfs
,
};
struct
super_block
*
openprom_read_super
(
struct
super_block
*
s
,
void
*
data
,
int
silent
)
static
int
openprom_fill_super
(
struct
super_block
*
s
,
void
*
data
,
int
silent
)
{
struct
inode
*
root_inode
;
...
...
@@ -1013,15 +1012,25 @@ struct super_block *openprom_read_super(struct super_block *s,void *data,
s
->
s_root
=
d_alloc_root
(
root_inode
);
if
(
!
s
->
s_root
)
goto
out_no_root
;
return
s
;
return
0
;
out_no_root:
printk
(
"openprom_
read
_super: get root inode failed
\n
"
);
printk
(
"openprom_
fill
_super: get root inode failed
\n
"
);
iput
(
root_inode
);
return
NULL
;
return
-
ENOMEM
;
}
static
struct
super_block
*
openprom_get_sb
(
struct
file_system_type
*
fs_type
,
int
flags
,
char
*
dev_name
,
void
*
data
)
{
return
get_sb_single
(
fs_type
,
flags
,
data
,
openprom_fill_super
);
}
static
DECLARE_FSTYPE
(
openprom_fs_type
,
"openpromfs"
,
openprom_read_super
,
0
);
static
struct
file_system_type
openprom_fs_type
=
{
owner:
THIS_MODULE
,
name:
"openpromfs"
,
get_sb:
openprom_get_sb
,
};
static
int
__init
init_openprom_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