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

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

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

2018-03-19 Thread shunki-fujita
, but 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_disk_size_cha

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 <shunki-fuj...@cybozu.co.jp> > 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 > >

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 expanding,

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

2018-03-16 Thread shunki-fujita
, but they are designed not to cache drops when expanding. Therefore this patch removes unnecessary cache drop. Signed-off-by: Shunki Fujita <shunki-fuj...@cybozu.co.jp> --- 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 f

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

2018-03-16 Thread shunki-fujita
, but 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 100644 --- a/fs

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

2017-09-19 Thread Shunki Fujita
caches about a device which is under growing. Signed-off-by: Shunki Fujita <shunki-fuj...@cybozu.co.jp> --- 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 ++

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

2017-09-19 Thread Shunki Fujita
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 @@ -1078,7 +1078,14