Thread (4 messages) flat view 4 messages, 4 authors, 2017-01-09

Re: [PATCH] do_direct_IO: Use inode->i_blkbits to compute block count to be cleaned

From: Christoph Hellwig <hch@infradead.org>
Date: 2017-01-09 13:52:40
Also in: linux-fsdevel, linuxppc-dev, lkml

On Sun, Jan 08, 2017 at 08:17:10PM +0530, Chandan Rajendra wrote:
The code currently uses sdio->blkbits to compute the number of blocks to
be cleaned. However sdio->blkbits is derived from the logical block size
of the underlying block device (Refer to the definition of
do_blockdev_direct_IO()). Due to this, generic/299 test would rarely
fail when executed on an ext4 filesystem with 64k as the block size and
when using a virtio based disk (having 512 byte as the logical block
size) inside a kvm guest.

This commit fixes the bug by using inode->i_blkbits to compute the
number of blocks to be cleaned.
Looks fine,

Reviewed-by: Christoph Hellwig <hch@lst.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help