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
f0e23d83
Commit
f0e23d83
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] (3/6) more ->get_sb() stuff
pcihpfs converted.
parent
07890e77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
drivers/hotplug/pci_hotplug_core.c
drivers/hotplug/pci_hotplug_core.c
+16
-5
No files found.
drivers/hotplug/pci_hotplug_core.c
View file @
f0e23d83
...
@@ -362,7 +362,7 @@ static struct super_operations pcihpfs_ops = {
...
@@ -362,7 +362,7 @@ static struct super_operations pcihpfs_ops = {
put_inode:
force_delete
,
put_inode:
force_delete
,
};
};
static
struct
super_block
*
pcihpfs_read_super
(
struct
super_block
*
sb
,
void
*
data
,
int
silent
)
static
int
pcihpfs_fill_super
(
struct
super_block
*
sb
,
void
*
data
,
int
silent
)
{
{
struct
inode
*
inode
;
struct
inode
*
inode
;
struct
dentry
*
root
;
struct
dentry
*
root
;
...
@@ -375,20 +375,31 @@ static struct super_block *pcihpfs_read_super (struct super_block *sb, void *dat
...
@@ -375,20 +375,31 @@ static struct super_block *pcihpfs_read_super (struct super_block *sb, void *dat
if
(
!
inode
)
{
if
(
!
inode
)
{
dbg
(
"%s: could not get inode!
\n
"
,
__FUNCTION__
);
dbg
(
"%s: could not get inode!
\n
"
,
__FUNCTION__
);
return
NULL
;
return
-
ENOMEM
;
}
}
root
=
d_alloc_root
(
inode
);
root
=
d_alloc_root
(
inode
);
if
(
!
root
)
{
if
(
!
root
)
{
dbg
(
"%s: could not get root dentry!
\n
"
,
__FUNCTION__
);
dbg
(
"%s: could not get root dentry!
\n
"
,
__FUNCTION__
);
iput
(
inode
);
iput
(
inode
);
return
NULL
;
return
-
ENOMEM
;
}
}
sb
->
s_root
=
root
;
sb
->
s_root
=
root
;
return
sb
;
return
0
;
}
}
static
DECLARE_FSTYPE
(
pcihpfs_fs_type
,
"pcihpfs"
,
pcihpfs_read_super
,
FS_SINGLE
|
FS_LITTER
);
static
struct
super_block
*
pcihpfs_get_sb
(
struct
file_system_type
*
fs_type
,
int
flags
,
char
*
dev_name
,
void
*
data
)
{
return
get_sb_single
(
fs_type
,
flags
,
data
,
pcihpfs_fill_super
);
}
static
struct
file_system_type
pcihpfs_type
=
{
owner:
THIS_MODULE
,
name:
"pchihpfs"
,
get_sb:
pcihpfs_get_sb
,
fs_flags:
FS_LITTER
,
};
static
int
get_mount
(
void
)
static
int
get_mount
(
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