[Devel] [PATCH RH8 1/2] cbt: Update CBT size from check_disk_size_change()
Vasily Averin
vvs at virtuozzo.com
Sat May 29 14:52:16 MSK 2021
Here is customer node, where is CBT size is different
to ploop size. Searching against kernel code shows,
this is the only place we skip CBT size update after
bd_inode size change.
https://jira.sw.ru/browse/PSBM-123819
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
(cherry picked from vz7 commit 042072dc38993013438cc8803e61a7d87501449e)
Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
---
fs/block_dev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/block_dev.c b/fs/block_dev.c
index db46a4a205fe..36e291595135 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -1451,6 +1451,7 @@ static void check_disk_size_change(struct gendisk *disk,
disk->disk_name, bdev_size, disk_size);
}
i_size_write(bdev->bd_inode, disk_size);
+ blk_cbt_update_size(bdev);
if (bdev_size > disk_size)
flush_disk(bdev, false);
}
--
2.25.1
More information about the Devel
mailing list