]> www.infradead.org Git - users/jedix/linux-maple.git/commit
directio: account for extra page IOs for unaligned request
authorDave Kleikamp <dave.kleikamp@oracle.com>
Thu, 12 Apr 2012 21:44:41 +0000 (16:44 -0500)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Thu, 12 Apr 2012 21:48:50 +0000 (16:48 -0500)
commitc795b2961e57da8db9c5bb912488ec973802bf44
tree9f26b1e1263ad9e338537000a19092bd260fb50c
parent172943d4afc6baf0cc18647031bffc0268bf892b
directio: account for extra page IOs for unaligned request

sdio_init() initializes pages_in_io to 2 for an unaligned directio request
in order that a zero page may be written to the first and last block.
However, __blockdev_direct_IO_bvec was setting pages_in_io to the number
of pages in the request rather than adding them to the original value.

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/direct-io.c