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
1f69b47b
Commit
1f69b47b
authored
Dec 01, 2003
by
Steve French
Committed by
Steve French
Dec 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix double incrementing of transaction counter
parent
85964d7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
fs/cifs/file.c
fs/cifs/file.c
+0
-9
No files found.
fs/cifs/file.c
View file @
1f69b47b
...
...
@@ -570,24 +570,18 @@ cifs_partialpagewrite(struct page *page,unsigned from, unsigned to)
struct
cifsFileInfo
*
open_file
=
NULL
;
struct
list_head
*
tmp
;
struct
list_head
*
tmp1
;
int
xid
;
xid
=
GetXid
();
cifs_sb
=
CIFS_SB
(
inode
->
i_sb
);
pTcon
=
cifs_sb
->
tcon
;
/* figure out which file struct to use
if (file->private_data == NULL) {
FreeXid(xid);
return -EBADF;
}
*/
if
(
!
mapping
)
{
FreeXid
(
xid
);
return
-
EFAULT
;
}
else
if
(
!
mapping
->
host
)
{
FreeXid
(
xid
);
return
-
EFAULT
;
}
...
...
@@ -597,14 +591,12 @@ cifs_partialpagewrite(struct page *page,unsigned from, unsigned to)
if
((
to
>
PAGE_CACHE_SIZE
)
||
(
from
>
to
))
{
kunmap
(
page
);
FreeXid
(
xid
);
return
-
EIO
;
}
/* racing with truncate? */
if
(
offset
>
mapping
->
host
->
i_size
)
{
kunmap
(
page
);
FreeXid
(
xid
);
return
0
;
/* don't care */
}
...
...
@@ -648,7 +640,6 @@ cifs_partialpagewrite(struct page *page,unsigned from, unsigned to)
}
kunmap
(
page
);
FreeXid
(
xid
);
return
rc
;
}
...
...
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