summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-01-27 15:11:47 -0800
committerSteve French <sfrench@us.ibm.com>2006-01-27 15:11:47 -0800
commiteb9bdaa3f3b9d30d09bcad47037216aa39639b8e (patch)
tree1924145e2dd24d59901c993619c99d7c2a078836 /fs
parent17cbbafe8e82bde4258e407ce043b61f4f9a350f (diff)
downloadop-kernel-dev-eb9bdaa3f3b9d30d09bcad47037216aa39639b8e.zip
op-kernel-dev-eb9bdaa3f3b9d30d09bcad47037216aa39639b8e.tar.gz
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/file.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 77c990f0..d17c97d 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -1190,7 +1190,6 @@ retry:
/* BB what if continued retry is
requested via mount flags? */
set_bit(AS_EIO, &mapping->flags);
- SetPageError(page);
} else {
cifs_stats_bytes_written(cifs_sb->tcon,
bytes_written);
@@ -1198,6 +1197,13 @@ retry:
}
for (i = 0; i < n_iov; i++) {
page = pvec.pages[first + i];
+ /* Should we also set page error on
+ success rc but too little data written? */
+ /* BB investigate retry logic on temporary
+ server crash cases and how recovery works
+ when page marked as error */
+ if(rc)
+ SetPageError(page);
kunmap(page);
unlock_page(page);
page_cache_release(page);
OpenPOWER on IntegriCloud