Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-15590 libext2fs: fix direct I/O read
[tools/e2fsprogs.git]
/
lib
/
ext2fs
/
unix_io.c
diff --git
a/lib/ext2fs/unix_io.c
b/lib/ext2fs/unix_io.c
index
5b2962f
..
09ea4fe
100644
(file)
--- a/
lib/ext2fs/unix_io.c
+++ b/
lib/ext2fs/unix_io.c
@@
-311,7
+311,7
@@
bounce_read:
size += really_read;
goto short_read;
}
- actual = size;
+
if (actual > align_size)
actual = align_size;
actual -= offset;