[PATCH v2] fs: don't flush pagecache when expanding block device

2018-03-19 Thread shunki-fujita
t they are designed not to cache drops when expanding. Therefore this patch removes unnecessary cache drop. Signed-off-by: Shunki Fujita --- Changes in v2: - Remove unnecessary changes (Since bdev-> bd_invalidated always 0 after check_disk_size_change ()[1]) - Add document of check_dis

Re: [PATCH] fs: don't flush pagecache when expanding block device

2018-03-19 Thread Shunki Fujita
Hi Andrew, > On Fri, 16 Mar 2018 15:55:53 +0900 shunki-fujita > wrote: > > > When changing the size of a block device, its all caches are freed. > > It's necessary on shrinking to prevent spurious I/Os to the disappeared > > region. > > However, on expan

[PATCH] fs: don't flush pagecache when expanding block device

2018-03-15 Thread shunki-fujita
t they are designed not to cache drops when expanding. Therefore this patch removes unnecessary cache drop. Signed-off-by: Shunki Fujita --- fs/block_dev.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index fe09ef9..243f4002 10064

[RFC PATCH] fs: don't flush pagecahce when expanding block device

2017-09-19 Thread Shunki Fujita
t necessary to flush caches about a device which is under growing. Signed-off-by: Shunki Fujita --- fs/block_dev.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index 44d4a1e..d17603c 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c