Re: [PATCH] block: fix inconsistent page index

2019-02-24 Thread Francesco Ruggeri
On Thu, Feb 21, 2019 at 11:27 AM Francesco Ruggeri wrote: > > __find_get_block_slow() and grow_buffers() use different methods to compute > a page index for a given block: __find_get_block_slow() computes it from > bd_inode->i_blkbits, while grow_buffers() computes it from the block size > argumen

[PATCH] block: fix inconsistent page index

2019-02-21 Thread Francesco Ruggeri
__find_get_block_slow() and grow_buffers() use different methods to compute a page index for a given block: __find_get_block_slow() computes it from bd_inode->i_blkbits, while grow_buffers() computes it from the block size argument. The two can get out of sync, for example if bd_inode->i_blkbits is