Re: [PATCH] clean_bdev_aliases: Prevent cleaning blocks that are not in block range

2017-01-02 Thread Jan Kara
On Tue 03-01-17 00:21:45, Eryu Guan wrote: > On Mon, Jan 02, 2017 at 04:58:03PM +0100, Jan Kara wrote: > > On Sun 25-12-16 19:01:03, Chandan Rajendra wrote: > > > The first block to be cleaned may start at a non-zero page offset. In > > > such a scenario clean_bdev_aliases() will end up cleaning bl

Re: [PATCH] clean_bdev_aliases: Prevent cleaning blocks that are not in block range

2017-01-02 Thread Jens Axboe
On 12/25/2016 06:31 AM, Chandan Rajendra wrote: > The first block to be cleaned may start at a non-zero page offset. In > such a scenario clean_bdev_aliases() will end up cleaning blocks that > do not fall in the range of blocks to be cleaned. This commit fixes the > issue by skipping blocks that d

Re: [PATCH] clean_bdev_aliases: Prevent cleaning blocks that are not in block range

2017-01-02 Thread Eryu Guan
On Mon, Jan 02, 2017 at 04:58:03PM +0100, Jan Kara wrote: > On Sun 25-12-16 19:01:03, Chandan Rajendra wrote: > > The first block to be cleaned may start at a non-zero page offset. In > > such a scenario clean_bdev_aliases() will end up cleaning blocks that > > do not fall in the range of blocks to

Re: [PATCH] clean_bdev_aliases: Prevent cleaning blocks that are not in block range

2017-01-02 Thread Jan Kara
On Sun 25-12-16 19:01:03, Chandan Rajendra wrote: > The first block to be cleaned may start at a non-zero page offset. In > such a scenario clean_bdev_aliases() will end up cleaning blocks that > do not fall in the range of blocks to be cleaned. This commit fixes the > issue by skipping blocks that

[PATCH] clean_bdev_aliases: Prevent cleaning blocks that are not in block range

2016-12-25 Thread Chandan Rajendra
The first block to be cleaned may start at a non-zero page offset. In such a scenario clean_bdev_aliases() will end up cleaning blocks that do not fall in the range of blocks to be cleaned. This commit fixes the issue by skipping blocks that do not fall in valid block range. Signed-off-by: Chandan