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
90f348bd
Commit
90f348bd
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] (4/6) more ->get_sb()
we are done with nodev filesystems - removed dead code in super.c and fs.h
parent
70861a8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
12 deletions
+2
-12
fs/super.c
fs/super.c
+0
-7
include/linux/fs.h
include/linux/fs.h
+2
-5
No files found.
fs/super.c
View file @
90f348bd
...
...
@@ -797,11 +797,6 @@ static struct super_block *__get_sb_bdev(struct file_system_type *fs_type,
{
return
get_sb_bdev
(
fs_type
,
flags
,
dev_name
,
data
,
fill_super
);
}
static
struct
super_block
*
__get_sb_nodev
(
struct
file_system_type
*
fs_type
,
int
flags
,
char
*
dev_name
,
void
*
data
)
{
return
get_sb_nodev
(
fs_type
,
flags
,
data
,
fill_super
);
}
struct
vfsmount
*
do_kern_mount
(
const
char
*
fstype
,
int
flags
,
char
*
name
,
void
*
data
)
...
...
@@ -820,8 +815,6 @@ do_kern_mount(const char *fstype, int flags, char *name, void *data)
sb
=
type
->
get_sb
(
type
,
flags
,
name
,
data
);
else
if
(
type
->
fs_flags
&
FS_REQUIRES_DEV
)
sb
=
__get_sb_bdev
(
type
,
flags
,
name
,
data
);
else
sb
=
__get_sb_nodev
(
type
,
flags
,
name
,
data
);
if
(
IS_ERR
(
sb
))
goto
out_mnt
;
if
(
type
->
fs_flags
&
FS_NOMOUNT
)
...
...
include/linux/fs.h
View file @
90f348bd
...
...
@@ -964,17 +964,14 @@ struct super_block *get_sb_nodev(struct file_system_type *fs_type,
int
flags
,
void
*
data
,
int
(
*
fill_super
)(
struct
super_block
*
,
void
*
,
int
));
#define DECLARE_FSTYPE
(var,type,read,flags
) \
#define DECLARE_FSTYPE
_DEV(var,type,read
) \
struct file_system_type var = { \
name: type, \
read_super: read, \
fs_flags:
flags
, \
fs_flags:
FS_REQUIRES_DEV
, \
owner: THIS_MODULE, \
}
#define DECLARE_FSTYPE_DEV(var,type,read) \
DECLARE_FSTYPE(var,type,read,FS_REQUIRES_DEV)
/* Alas, no aliases. Too much hassle with bringing module.h everywhere */
#define fops_get(fops) \
(((fops) && (fops)->owner) \
...
...
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