[rh7,2/2] Revert "vfs: panic in guard_bio_eod() if truncated_bytes > bvec->bv_len"

Submitted by Konstantin Khorenko on July 9, 2019, 4:33 p.m.

Details

Message ID 20190709163358.24889-2-khorenko@virtuozzo.com
State New
Series "Series without cover letter"
Headers show

Commit Message

Konstantin Khorenko July 9, 2019, 4:33 p.m.
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-96006

Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
---
 fs/buffer.c | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/fs/buffer.c b/fs/buffer.c
index e9a4c65eed73..2774c8bfb24e 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -3032,7 +3032,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 */