projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix ITER_PIPE interaction with direct_IO
[cascardo/linux.git]
/
fs
/
xfs
/
xfs_file.c
diff --git
a/fs/xfs/xfs_file.c
b/fs/xfs/xfs_file.c
index
92f16cf
..
26cf153
100644
(file)
--- a/
fs/xfs/xfs_file.c
+++ b/
fs/xfs/xfs_file.c
@@
-317,7
+317,7
@@
xfs_file_dio_aio_read(
data = *to;
ret = __blockdev_direct_IO(iocb, inode, target->bt_bdev, &data,
xfs_get_blocks_direct, NULL, NULL, 0);
- if (ret > 0) {
+ if (ret >
=
0) {
iocb->ki_pos += ret;
iov_iter_advance(to, ret);
}