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
d753ed97
Commit
d753ed97
authored
Jul 26, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert cifs
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e4c59d61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
fs/cifs/cifsfs.c
fs/cifs/cifsfs.c
+7
-8
No files found.
fs/cifs/cifsfs.c
View file @
d753ed97
...
...
@@ -545,9 +545,9 @@ static const struct super_operations cifs_super_ops = {
#endif
};
static
int
cifs_
get_sb
(
struct
file_system_type
*
fs_type
,
int
flags
,
const
char
*
dev_name
,
void
*
data
,
struct
vfsmount
*
mnt
)
static
struct
dentry
*
cifs_
do_mount
(
struct
file_system_type
*
fs_type
,
int
flags
,
const
char
*
dev_name
,
void
*
data
)
{
int
rc
;
struct
super_block
*
sb
;
...
...
@@ -557,18 +557,17 @@ cifs_get_sb(struct file_system_type *fs_type,
cFYI
(
1
,
"Devname: %s flags: %d "
,
dev_name
,
flags
);
if
(
IS_ERR
(
sb
))
return
PTR_ERR
(
sb
);
return
ERR_CAST
(
sb
);
sb
->
s_flags
=
flags
;
rc
=
cifs_read_super
(
sb
,
data
,
dev_name
,
flags
&
MS_SILENT
?
1
:
0
);
if
(
rc
)
{
deactivate_locked_super
(
sb
);
return
rc
;
return
ERR_PTR
(
rc
)
;
}
sb
->
s_flags
|=
MS_ACTIVE
;
simple_set_mnt
(
mnt
,
sb
);
return
0
;
return
dget
(
sb
->
s_root
);
}
static
ssize_t
cifs_file_aio_write
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
...
...
@@ -634,7 +633,7 @@ static int cifs_setlease(struct file *file, long arg, struct file_lock **lease)
struct
file_system_type
cifs_fs_type
=
{
.
owner
=
THIS_MODULE
,
.
name
=
"cifs"
,
.
get_sb
=
cifs_get_sb
,
.
mount
=
cifs_do_mount
,
.
kill_sb
=
kill_anon_super
,
/* .fs_flags */
};
...
...
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