Thread (5 messages) 5 messages, 3 authors, 2020-01-09

Re: [PATCH V2] block: add bio_truncate to fix guard_bio_eod

From: Christoph Hellwig <hch@infradead.org>
Date: 2020-01-08 13:37:38
Also in: linux-fsdevel

+void bio_truncate(struct bio *bio, unsigned new_size)
This function really needs a kerneldoc or similar comment describing
what it does in detail.
+	if (bio_data_dir(bio) != READ)
+		goto exit;
This really should check the passed in op for REQ_OP_READ directly instead
of just the direction on the potentially not fully set up bio.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help