[Devel] [PATCH RHEL7 COMMIT] Revert "vfs: panic in guard_bio_eod() if truncated_bytes > bvec->bv_len"

Konstantin Khorenko khorenko at virtuozzo.com
Tue Dec 24 13:32:01 MSK 2019


The commit is pushed to "branch-rh7-3.10.0-1062.7.1.vz7.130.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1062.7.1.vz7.130.5
------>
commit e901ad9409acf52ee15adc428afb898b9c1354a3
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Tue Jul 9 19:31:41 2019 +0300

    Revert "vfs: panic in guard_bio_eod() if truncated_bytes > bvec->bv_len"
    
    This reverts commit e340cf28e7635d2f2c146a1efa4100c63a4e1a1d.
    
    Not needed after the 5f816f6345ad ("ms/fs: fix guard_bio_eod to
    check for real EOD errors")
    
    https://jira.sw.ru/browse/PSBM-100474
    https://jira.sw.ru/browse/PSBM-96006
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 fs/buffer.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/buffer.c b/fs/buffer.c
index 9b8cefc460319..7d9daf86838cd 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -3031,7 +3031,6 @@ void guard_bio_eod(int rw, struct bio *bio)
 
 	/* Truncate the bio.. */
 	bio->bi_size -= truncated_bytes;
-	BUG_ON(truncated_bytes > bvec->bv_len);
 	bvec->bv_len -= truncated_bytes;
 
 	/* ..and clear the end of the buffer for reads */



More information about the Devel mailing list