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
2226a288
Commit
2226a288
authored
Mar 17, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
9p: make register_filesystem() the last failure exit
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
01e0fe0b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
fs/9p/v9fs.c
fs/9p/v9fs.c
+8
-8
No files found.
fs/9p/v9fs.c
View file @
2226a288
...
...
@@ -594,21 +594,21 @@ static int __init init_v9fs(void)
int
err
;
pr_info
(
"Installing v9fs 9p2000 file system support
\n
"
);
/* TODO: Setup list of registered trasnport modules */
err
=
register_filesystem
(
&
v9fs_fs_type
);
if
(
err
<
0
)
{
pr_err
(
"Failed to register filesystem
\n
"
);
return
err
;
}
err
=
v9fs_cache_register
();
if
(
err
<
0
)
{
pr_err
(
"Failed to register v9fs for caching
\n
"
);
goto
out_fs_unreg
;
return
err
;
}
err
=
v9fs_sysfs_init
();
if
(
err
<
0
)
{
pr_err
(
"Failed to register with sysfs
\n
"
);
goto
out_cache
;
}
err
=
register_filesystem
(
&
v9fs_fs_type
);
if
(
err
<
0
)
{
pr_err
(
"Failed to register filesystem
\n
"
);
goto
out_sysfs_cleanup
;
}
...
...
@@ -617,8 +617,8 @@ static int __init init_v9fs(void)
out_sysfs_cleanup:
v9fs_sysfs_cleanup
();
out_
fs_unreg
:
unregister_filesystem
(
&
v9fs_fs_type
);
out_
cache
:
v9fs_cache_unregister
(
);
return
err
;
}
...
...
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