summaryrefslogtreecommitdiff
path: root/include/linux/list.h
diff options
context:
space:
mode:
authorDaniel McNeil <daniel@osdl.org>2005-04-17 02:25:50 +0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-17 02:25:50 +0400
commit29504ff3be784372c4e2f7e31681a3e0292c4d9a (patch)
tree449f6598e10a1930d113fd7bbe3aa6ca37341d10 /include/linux/list.h
parent1f08ad02379530e1c970d3d104343b9907b4d1b4 (diff)
downloadlinux-29504ff3be784372c4e2f7e31681a3e0292c4d9a.tar.xz
[PATCH] Direct IO async short read fix
The direct I/O code is mapping the read request to the file system block. If the file size was not on a block boundary, the result would show the the read reading past EOF. This was only happening for the AIO case. The non-AIO case truncates the result to match file size (in direct_io_worker). This patch does the same thing for the AIO case, it truncates the result to match the file size if the read reads past EOF. When I/O completes the result can be truncated to match the file size without using i_size_read(), thus the aio result now matches the number of bytes read to the end of file. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/list.h')
0 files changed, 0 insertions, 0 deletions