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
e4c59d61
Commit
e4c59d61
authored
Jul 26, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert nilfs
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a1da9e8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
fs/nilfs2/super.c
fs/nilfs2/super.c
+7
-9
No files found.
fs/nilfs2/super.c
View file @
e4c59d61
...
...
@@ -1141,9 +1141,9 @@ static int nilfs_test_bdev_super(struct super_block *s, void *data)
return
(
void
*
)
s
->
s_bdev
==
data
;
}
static
int
nilfs_
get_sb
(
struct
file_system_type
*
fs_type
,
int
flags
,
const
char
*
dev_name
,
void
*
data
,
struct
vfsmount
*
mnt
)
static
struct
dentry
*
nilfs_
mount
(
struct
file_system_type
*
fs_type
,
int
flags
,
const
char
*
dev_name
,
void
*
data
)
{
struct
nilfs_super_data
sd
;
struct
super_block
*
s
;
...
...
@@ -1156,7 +1156,7 @@ nilfs_get_sb(struct file_system_type *fs_type, int flags,
sd
.
bdev
=
open_bdev_exclusive
(
dev_name
,
mode
,
fs_type
);
if
(
IS_ERR
(
sd
.
bdev
))
return
PTR_ERR
(
sd
.
bdev
);
return
ERR_CAST
(
sd
.
bdev
);
sd
.
cno
=
0
;
sd
.
flags
=
flags
;
...
...
@@ -1235,9 +1235,7 @@ nilfs_get_sb(struct file_system_type *fs_type, int flags,
if
(
!
s_new
)
close_bdev_exclusive
(
sd
.
bdev
,
mode
);
mnt
->
mnt_sb
=
s
;
mnt
->
mnt_root
=
root_dentry
;
return
0
;
return
root_dentry
;
failed_super:
deactivate_locked_super
(
s
);
...
...
@@ -1245,13 +1243,13 @@ nilfs_get_sb(struct file_system_type *fs_type, int flags,
failed:
if
(
!
s_new
)
close_bdev_exclusive
(
sd
.
bdev
,
mode
);
return
err
;
return
ERR_PTR
(
err
)
;
}
struct
file_system_type
nilfs_fs_type
=
{
.
owner
=
THIS_MODULE
,
.
name
=
"nilfs2"
,
.
get_sb
=
nilfs_get_sb
,
.
mount
=
nilfs_mount
,
.
kill_sb
=
kill_block_super
,
.
fs_flags
=
FS_REQUIRES_DEV
,
};
...
...
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