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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/22/19 2:13 PM, Johannes Thumshirn wrote:
From: Jens Axboe <axboe@xxxxxxxxx>

Kill the BIO_SEG_VALID flag. We should just use ->bi_phys_segments to tell
if it's valid or not.

This patch uses -1 to signify it's not.

Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
[ jth initialize pc bios with 1 phys segment and WARN if we're submitting
bios with -1 segments ]
Signed-off-by: Johannes Thumshirn <jthumshirn@xxxxxxx>
---
  block/bio.c               | 15 +++++++++------
  block/blk-core.c          |  1 +
  block/blk-merge.c         | 13 ++++++-------
  drivers/md/raid5.c        |  2 +-
  include/linux/blk_types.h |  1 -
  5 files changed, 17 insertions(+), 15 deletions(-)

Reviewed-by: Hannes Reinecke <hare@xxxxxxxx>

Cheers,

Hannes
--
Dr. Hannes Reinecke		   Teamlead Storage & Networking
hare@xxxxxxx			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah
HRB 21284 (AG Nürnberg)



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux