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
157d81e7
Commit
157d81e7
authored
Jul 25, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert ubifs
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
51139ada
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
fs/ubifs/super.c
fs/ubifs/super.c
+6
-7
No files found.
fs/ubifs/super.c
View file @
157d81e7
...
...
@@ -2038,8 +2038,8 @@ static int sb_test(struct super_block *sb, void *data)
return
c
->
vi
.
cdev
==
*
dev
;
}
static
int
ubifs_get_sb
(
struct
file_system_type
*
fs_type
,
int
flags
,
const
char
*
name
,
void
*
data
,
struct
vfsmount
*
mnt
)
static
struct
dentry
*
ubifs_mount
(
struct
file_system_type
*
fs_type
,
int
flags
,
const
char
*
name
,
void
*
data
)
{
struct
ubi_volume_desc
*
ubi
;
struct
ubi_volume_info
vi
;
...
...
@@ -2057,7 +2057,7 @@ static int ubifs_get_sb(struct file_system_type *fs_type, int flags,
if
(
IS_ERR
(
ubi
))
{
dbg_err
(
"cannot open
\"
%s
\"
, error %d"
,
name
,
(
int
)
PTR_ERR
(
ubi
));
return
PTR_ERR
(
ubi
);
return
ERR_CAST
(
ubi
);
}
ubi_get_volume_info
(
ubi
,
&
vi
);
...
...
@@ -2095,20 +2095,19 @@ static int ubifs_get_sb(struct file_system_type *fs_type, int flags,
/* 'fill_super()' opens ubi again so we must close it here */
ubi_close_volume
(
ubi
);
simple_set_mnt
(
mnt
,
sb
);
return
0
;
return
dget
(
sb
->
s_root
);
out_deact:
deactivate_locked_super
(
sb
);
out_close:
ubi_close_volume
(
ubi
);
return
err
;
return
ERR_PTR
(
err
)
;
}
static
struct
file_system_type
ubifs_fs_type
=
{
.
name
=
"ubifs"
,
.
owner
=
THIS_MODULE
,
.
get_sb
=
ubifs_get_sb
,
.
mount
=
ubifs_mount
,
.
kill_sb
=
kill_anon_super
,
};
...
...
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