]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Allow direct I/O read past end of file
authorMark Fasheh <mark.fasheh@oracle.com>
Thu, 14 Dec 2006 21:01:05 +0000 (13:01 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Fri, 29 Dec 2006 00:38:08 +0000 (16:38 -0800)
commit0be6aa733312ae14ab48306c1c3f17382d494bae
tree6e3a1b840e3061e7a1bc4df56287a99c2f513a47
parent4f07caf563f34dcda5ef15a01bcb9a08ef9fac40
ocfs2: Allow direct I/O read past end of file

ocfs2_direct_IO_get_blocks() was incorrectly returning -EIO for a direct I/O
read whose start block was past the end of the file allocation tree. Fix
things so that we return a hole instead. do_direct_IO() will then notice
that the range start is past eof and return a short read.

While there, remove the unused vbo_max variable.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/aops.c