Thread (18 messages) 18 messages, 6 authors, 2019-03-25

Re: [PATCH v2 1/3] block: bio: kill BIO_SEG_VALID flag

From: Johannes Thumshirn <hidden>
Date: 2019-03-25 08:02:41
Also in: linux-fsdevel

On 22/03/2019 15:01, Christoph Hellwig wrote:
quoted
+	if (bio->bi_phys_segments == -1)
+		bio->bi_phys_segments = 1;
+	else
+		bio->bi_phys_segments++;
Minor nitpickm but I'd kust write this as:

	if (bio->bi_phys_segments == -1)
		bio->bi_phys_segments = 0;
	bio->bi_phys_segments++;
Yeah, that looks more obvious



-- 
Johannes Thumshirn                            SUSE Labs Filesystems
jthumshirn@suse.de                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help