projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
524b1d3
)
orangefs: fix do_readv_writev() handling of error halfway through
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 17 Feb 2016 01:15:43 +0000
(20:15 -0500)
committer
Mike Marshall
<hubcap@omnibond.com>
Sat, 26 Mar 2016 02:30:54 +0000
(22:30 -0400)
Error should only be returned if nothing had been read/written.
Otherwise we need to report a short read/write instead.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/orangefs/file.c
b/fs/orangefs/file.c
index cb6a164b2718097596461281b8c852a3719befe5..ae92795ed9658d476a6ab229582086986fc2ad27 100644
(file)
--- a/
fs/orangefs/file.c
+++ b/
fs/orangefs/file.c
@@
-350,9
+350,9
@@
static ssize_t do_readv_writev(enum ORANGEFS_io_type type, struct file *file,
break;
} /*end while */
+out:
if (total_count > 0)
ret = total_count;
-out:
if (ret > 0) {
if (type == ORANGEFS_IO_READ) {
file_accessed(file);