Searched hist:e83502ca (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/include/linux/ |
H A D | blk_types.h | e83502ca Wed Jul 21 07:43:32 CDT 2021 Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> block: fix argument type of bio_trim()
The function bio_trim has offset and size arguments that are declared as int.
The callers of this function use sector_t type when passing the offset and size, e.g. drivers/md/raid1.c:narrow_write_error() and drivers/md/raid1.c:narrow_write_error().
Change offset and size arguments to sector_t type for bio_trim(). Also, add WARN_ON_ONCE() to catch their overflow.
Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
|
H A D | bio.h | e83502ca Wed Jul 21 07:43:32 CDT 2021 Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> block: fix argument type of bio_trim()
The function bio_trim has offset and size arguments that are declared as int.
The callers of this function use sector_t type when passing the offset and size, e.g. drivers/md/raid1.c:narrow_write_error() and drivers/md/raid1.c:narrow_write_error().
Change offset and size arguments to sector_t type for bio_trim(). Also, add WARN_ON_ONCE() to catch their overflow.
Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
|
/openbmc/linux/block/ |
H A D | bio.c | e83502ca Wed Jul 21 07:43:32 CDT 2021 Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> block: fix argument type of bio_trim()
The function bio_trim has offset and size arguments that are declared as int.
The callers of this function use sector_t type when passing the offset and size, e.g. drivers/md/raid1.c:narrow_write_error() and drivers/md/raid1.c:narrow_write_error().
Change offset and size arguments to sector_t type for bio_trim(). Also, add WARN_ON_ONCE() to catch their overflow.
Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
|