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
d2d1ea93
Commit
d2d1ea93
authored
Jul 25, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert v9fs
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
157d81e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
fs/9p/vfs_super.c
fs/9p/vfs_super.c
+10
-12
No files found.
fs/9p/vfs_super.c
View file @
d2d1ea93
...
...
@@ -68,7 +68,7 @@ static int v9fs_set_super(struct super_block *s, void *data)
* v9fs_fill_super - populate superblock with info
* @sb: superblock
* @v9ses: session information
* @flags: flags propagated from v9fs_
get_sb
()
* @flags: flags propagated from v9fs_
mount
()
*
*/
...
...
@@ -99,18 +99,16 @@ v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses,
}
/**
* v9fs_
get_sb
- mount a superblock
* v9fs_
mount
- mount a superblock
* @fs_type: file system type
* @flags: mount flags
* @dev_name: device name that was mounted
* @data: mount options
* @mnt: mountpoint record to be instantiated
*
*/
static
int
v9fs_get_sb
(
struct
file_system_type
*
fs_type
,
int
flags
,
const
char
*
dev_name
,
void
*
data
,
struct
vfsmount
*
mnt
)
static
struct
dentry
*
v9fs_mount
(
struct
file_system_type
*
fs_type
,
int
flags
,
const
char
*
dev_name
,
void
*
data
)
{
struct
super_block
*
sb
=
NULL
;
struct
inode
*
inode
=
NULL
;
...
...
@@ -124,7 +122,7 @@ static int v9fs_get_sb(struct file_system_type *fs_type, int flags,
v9ses
=
kzalloc
(
sizeof
(
struct
v9fs_session_info
),
GFP_KERNEL
);
if
(
!
v9ses
)
return
-
ENOMEM
;
return
ERR_PTR
(
-
ENOMEM
)
;
fid
=
v9fs_session_init
(
v9ses
,
dev_name
,
data
);
if
(
IS_ERR
(
fid
))
{
...
...
@@ -186,15 +184,15 @@ static int v9fs_get_sb(struct file_system_type *fs_type, int flags,
v9fs_fid_add
(
root
,
fid
);
P9_DPRINTK
(
P9_DEBUG_VFS
,
" simple set mount, return 0
\n
"
);
simple_set_mnt
(
mnt
,
sb
);
return
0
;
return
dget
(
sb
->
s_root
);
clunk_fid:
p9_client_clunk
(
fid
);
close_session:
v9fs_session_close
(
v9ses
);
kfree
(
v9ses
);
return
retval
;
return
ERR_PTR
(
retval
);
release_sb:
/*
* we will do the session_close and root dentry release
...
...
@@ -204,7 +202,7 @@ static int v9fs_get_sb(struct file_system_type *fs_type, int flags,
*/
p9_client_clunk
(
fid
);
deactivate_locked_super
(
sb
);
return
retval
;
return
ERR_PTR
(
retval
)
;
}
/**
...
...
@@ -300,7 +298,7 @@ static const struct super_operations v9fs_super_ops_dotl = {
struct
file_system_type
v9fs_fs_type
=
{
.
name
=
"9p"
,
.
get_sb
=
v9fs_get_sb
,
.
mount
=
v9fs_mount
,
.
kill_sb
=
v9fs_kill_super
,
.
owner
=
THIS_MODULE
,
.
fs_flags
=
FS_RENAME_DOES_D_MOVE
,
...
...
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