fs: simplify handling of zero sized reads in __blockdev_direct_IO
authorChristoph Hellwig <hch@infradead.org>
Fri, 24 Jun 2011 18:29:42 +0000 (14:29 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2011 00:47:45 +0000 (20:47 -0400)
commitf9b5570d7fdedff32a2e78102bfb54cd1b12b289
tree0bbe650c809d96b25d746c400e316c3ad71b4097
parent9ea7df534ed2a18157434a496a12cf073ca00c52
fs: simplify handling of zero sized reads in __blockdev_direct_IO

Reject zero sized reads as soon as we know our I/O length, and don't
borther with locks or allocations that might have to be cleaned up
otherwise.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/direct-io.c