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
4096004b
Commit
4096004b
authored
Dec 02, 2004
by
Steve French
Committed by
Steve French
Dec 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CIFS] fix spelling of CONFIG_CIFS_EXPERIMENTAL ifdef in direct i/o write
Signed-off-by: Steve French (sfrench@us.ibm.com)
parent
6e18f688
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
fs/cifs/cifsfs.c
fs/cifs/cifsfs.c
+4
-3
fs/cifs/connect.c
fs/cifs/connect.c
+7
-2
No files found.
fs/cifs/cifsfs.c
View file @
4096004b
...
...
@@ -436,7 +436,7 @@ cifs_read_wrapper(struct file * file, char __user *read_data, size_t read_size,
cFYI
(
1
,(
"In read_wrapper size %zd at %lld"
,
read_size
,
*
poffset
));
#ifdef CIFS_EXPERIMENTAL
/* BB fixme - fix user char * to kernel char * mapping here BB */
#ifdef C
ONFIG_C
IFS_EXPERIMENTAL
/* BB fixme - fix user char * to kernel char * mapping here BB */
/* check whether we can cache writes locally */
if
(
file
->
f_dentry
->
d_sb
)
{
struct
cifs_sb_info
*
cifs_sb
;
...
...
@@ -481,15 +481,16 @@ cifs_write_wrapper(struct file * file, const char __user *write_data,
cFYI
(
1
,(
"In write_wrapper size %zd at %lld"
,
write_size
,
*
poffset
));
#ifdef CIFS_EXPERIMENTAL
/* BB fixme - fix user char * to kernel char * mapping here BB */
#ifdef C
ONFIG_C
IFS_EXPERIMENTAL
/* BB fixme - fix user char * to kernel char * mapping here BB */
/* check whether we can cache writes locally */
if
(
file
->
f_dentry
->
d_sb
)
{
struct
cifs_sb_info
*
cifs_sb
;
cifs_sb
=
CIFS_SB
(
file
->
f_dentry
->
d_sb
);
if
(
cifs_sb
!=
NULL
)
{
if
(
cifs_sb
->
mnt_cifs_flags
&
CIFS_MOUNT_DIRECT_IO
)
if
(
cifs_sb
->
mnt_cifs_flags
&
CIFS_MOUNT_DIRECT_IO
)
{
return
cifs_write
(
file
,
write_data
,
write_size
,
poffset
);
}
}
}
#endif
/* CIFS_EXPERIMENTAL */
...
...
fs/cifs/connect.c
View file @
4096004b
...
...
@@ -695,7 +695,12 @@ cifs_parse_mount_options(char *options, const char *devname,struct smb_vol *vol)
vol
->
file_mode
=
simple_strtoul
(
value
,
&
value
,
0
);
}
}
else
if
(
strnicmp
(
data
,
"dir_mode"
,
3
)
==
0
)
{
}
else
if
(
strnicmp
(
data
,
"dir_mode"
,
4
)
==
0
)
{
if
(
value
&&
*
value
)
{
vol
->
dir_mode
=
simple_strtoul
(
value
,
&
value
,
0
);
}
}
else
if
(
strnicmp
(
data
,
"dirmode"
,
4
)
==
0
)
{
if
(
value
&&
*
value
)
{
vol
->
dir_mode
=
simple_strtoul
(
value
,
&
value
,
0
);
...
...
@@ -1413,7 +1418,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
if
(
volume_info
.
server_ino
)
cifs_sb
->
mnt_cifs_flags
|=
CIFS_MOUNT_SERVER_INUM
;
if
(
volume_info
.
direct_io
)
{
c
FYI
(
1
,(
"mounting share using direct i/o"
));
c
ERROR
(
1
,(
"mounting share using direct i/o"
));
cifs_sb
->
mnt_cifs_flags
|=
CIFS_MOUNT_DIRECT_IO
;
}
...
...
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