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
dc3d70e8
Commit
dc3d70e8
authored
May 01, 2004
by
Steve French
Committed by
Steve French
May 01, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ppc64 build problem due to missing header
parent
6bc73d8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
+26
-6
fs/cifs/connect.c
fs/cifs/connect.c
+1
-0
fs/cifs/file.c
fs/cifs/file.c
+25
-6
No files found.
fs/cifs/connect.c
View file @
dc3d70e8
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include <linux/ipv6.h>
#include <linux/ipv6.h>
#include <linux/pagemap.h>
#include <linux/pagemap.h>
#include <linux/ctype.h>
#include <linux/ctype.h>
#include <linux/utsname.h>
#include <asm/uaccess.h>
#include <asm/uaccess.h>
#include <asm/processor.h>
#include <asm/processor.h>
#include "cifspdu.h"
#include "cifspdu.h"
...
...
fs/cifs/file.c
View file @
dc3d70e8
...
@@ -561,6 +561,10 @@ cifs_write(struct file * file, const char *write_data,
...
@@ -561,6 +561,10 @@ cifs_write(struct file * file, const char *write_data,
}
}
open_file
=
(
struct
cifsFileInfo
*
)
file
->
private_data
;
open_file
=
(
struct
cifsFileInfo
*
)
file
->
private_data
;
if
(
file
->
f_dentry
->
d_inode
==
NULL
)
{
FreeXid
(
xid
);
return
-
EBADF
;
}
if
(
*
poffset
>
file
->
f_dentry
->
d_inode
->
i_size
)
if
(
*
poffset
>
file
->
f_dentry
->
d_inode
->
i_size
)
long_op
=
2
;
/* writes past end of file can take a long time */
long_op
=
2
;
/* writes past end of file can take a long time */
...
@@ -571,7 +575,16 @@ cifs_write(struct file * file, const char *write_data,
...
@@ -571,7 +575,16 @@ cifs_write(struct file * file, const char *write_data,
total_written
+=
bytes_written
)
{
total_written
+=
bytes_written
)
{
rc
=
-
EAGAIN
;
rc
=
-
EAGAIN
;
while
(
rc
==
-
EAGAIN
)
{
while
(
rc
==
-
EAGAIN
)
{
if
(
file
->
private_data
==
NULL
)
{
/* file has been closed on us */
FreeXid
(
xid
);
return
total_written
;
}
if
((
open_file
->
invalidHandle
)
&&
(
!
open_file
->
closePend
))
{
if
((
open_file
->
invalidHandle
)
&&
(
!
open_file
->
closePend
))
{
if
((
file
->
f_dentry
==
NULL
)
||
(
file
->
f_dentry
->
d_inode
==
NULL
))
{
FreeXid
(
xid
);
return
total_written
;
}
rc
=
cifs_reopen_file
(
file
->
f_dentry
->
d_inode
,
file
);
rc
=
cifs_reopen_file
(
file
->
f_dentry
->
d_inode
,
file
);
if
(
rc
!=
0
)
if
(
rc
!=
0
)
break
;
break
;
...
@@ -594,13 +607,19 @@ cifs_write(struct file * file, const char *write_data,
...
@@ -594,13 +607,19 @@ cifs_write(struct file * file, const char *write_data,
*
poffset
+=
bytes_written
;
*
poffset
+=
bytes_written
;
long_op
=
FALSE
;
/* subsequent writes fast - 15 seconds is plenty */
long_op
=
FALSE
;
/* subsequent writes fast - 15 seconds is plenty */
}
}
file
->
f_dentry
->
d_inode
->
i_ctime
=
file
->
f_dentry
->
d_inode
->
i_mtime
=
CURRENT_TIME
;
/* since the write may have blocked check these pointers again */
if
(
bytes_written
>
0
)
{
if
(
file
->
f_dentry
)
{
if
(
*
poffset
>
file
->
f_dentry
->
d_inode
->
i_size
)
if
(
file
->
f_dentry
->
d_inode
)
{
i_size_write
(
file
->
f_dentry
->
d_inode
,
*
poffset
);
file
->
f_dentry
->
d_inode
->
i_ctime
=
file
->
f_dentry
->
d_inode
->
i_mtime
=
CURRENT_TIME
;
if
(
bytes_written
>
0
)
{
if
(
*
poffset
>
file
->
f_dentry
->
d_inode
->
i_size
)
i_size_write
(
file
->
f_dentry
->
d_inode
,
*
poffset
);
}
mark_inode_dirty_sync
(
file
->
f_dentry
->
d_inode
);
}
}
}
mark_inode_dirty_sync
(
file
->
f_dentry
->
d_inode
);
FreeXid
(
xid
);
FreeXid
(
xid
);
return
total_written
;
return
total_written
;
}
}
...
...
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