[Devel] [PATCH RHEL8 COMMIT] cbt: Update CBT size from check_disk_size_change()

Konstantin Khorenko khorenko at virtuozzo.com
Wed Jun 2 19:47:59 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.34
------>
commit 4ec5073d7dd1bf71d2bcdbc8d9adf54c6c79fb10
Author: Vasily Averin <vvs at virtuozzo.com>
Date:   Wed Jun 2 19:47:58 2021 +0300

    cbt: Update CBT size from check_disk_size_change()
    
    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>
    
    To_merge: d0307ef32890 ("cbt: introduce changed block tracking")
    
    (cherry picked from vz7 commit 042072dc3899 ("cbt: Update CBT size from
    check_disk_size_change()"))
    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);
 	}


More information about the Devel mailing list