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
7b0761c9
Commit
7b0761c9
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/6) more ->get_sb() stuff
devfs converted.
parent
6709a328
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
fs/devfs/base.c
fs/devfs/base.c
+12
-6
No files found.
fs/devfs/base.c
View file @
7b0761c9
...
...
@@ -3218,8 +3218,7 @@ static struct inode_operations devfs_symlink_iops =
setattr:
devfs_notify_change
,
};
static
struct
super_block
*
devfs_read_super
(
struct
super_block
*
sb
,
void
*
data
,
int
silent
)
static
int
devfs_fill_super
(
struct
super_block
*
sb
,
void
*
data
,
int
silent
)
{
struct
inode
*
root_inode
=
NULL
;
...
...
@@ -3238,17 +3237,24 @@ static struct super_block *devfs_read_super (struct super_block *sb,
sb
->
s_root
=
d_alloc_root
(
root_inode
);
if
(
!
sb
->
s_root
)
goto
out_no_root
;
DPRINTK
(
DEBUG_S_READ
,
"(): made devfs ptr: %p
\n
"
,
sb
->
u
.
generic_sbp
);
return
sb
;
return
0
;
out_no_root:
PRINTK
(
"(): get root inode failed
\n
"
);
if
(
root_inode
)
iput
(
root_inode
);
return
NUL
L
;
return
-
EINVA
L
;
}
/* End Function devfs_read_super */
static
struct
super_block
*
devfs_get_sb
(
struct
file_system_type
*
fs_type
,
int
flags
,
char
*
dev_name
,
void
*
data
)
{
return
get_sb_single
(
fs_type
,
flags
,
data
,
devfs_fill_super
);
}
static
DECLARE_FSTYPE
(
devfs_fs_type
,
DEVFS_NAME
,
devfs_read_super
,
FS_SINGLE
);
static
struct
file_system_type
devfs_fs_type
=
{
name:
DEVFS_NAME
,
get_sb:
devfs_get_sb
,
};
/* File operations for devfsd follow */
...
...
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