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
063d4195
Commit
063d4195
authored
May 31, 2004
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove temporary debug message
parent
90afb22f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
fs/cifs/file.c
fs/cifs/file.c
+4
-1
No files found.
fs/cifs/file.c
View file @
063d4195
...
@@ -1978,7 +1978,7 @@ int cifs_prepare_write(struct file *file, struct page *page,
...
@@ -1978,7 +1978,7 @@ int cifs_prepare_write(struct file *file, struct page *page,
{
{
int
rc
=
0
;
int
rc
=
0
;
loff_t
offset
=
(
loff_t
)
page
->
index
<<
PAGE_CACHE_SHIFT
;
loff_t
offset
=
(
loff_t
)
page
->
index
<<
PAGE_CACHE_SHIFT
;
c
ERROR
(
1
,(
"prepare write for page %p from %d to %d"
,
page
,
from
,
to
));
c
FYI
(
1
,(
"prepare write for page %p from %d to %d"
,
page
,
from
,
to
));
if
(
!
PageUptodate
(
page
))
{
if
(
!
PageUptodate
(
page
))
{
/* if (to - from != PAGE_CACHE_SIZE) {
/* if (to - from != PAGE_CACHE_SIZE) {
void *kaddr = kmap_atomic(page, KM_USER0);
void *kaddr = kmap_atomic(page, KM_USER0);
...
@@ -1994,6 +1994,9 @@ int cifs_prepare_write(struct file *file, struct page *page,
...
@@ -1994,6 +1994,9 @@ int cifs_prepare_write(struct file *file, struct page *page,
/* might as well read a page, it is fast enough */
/* might as well read a page, it is fast enough */
rc
=
cifs_readpage_worker
(
file
,
page
,
&
offset
);
rc
=
cifs_readpage_worker
(
file
,
page
,
&
offset
);
/* if this returns an error should we try using another
file handle if there is one - how would we lock it
to prevent close of that handle racing with this read? */
}
}
/* BB should we pass any errors back? e.g. if we do not have read access to the file */
/* BB should we pass any errors back? e.g. if we do not have read access to the file */
...
...
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