Skip to content
Closed
18 changes: 0 additions & 18 deletions Documentation/ABI/testing/debugfs-pktcdvd

This file was deleted.

97 changes: 0 additions & 97 deletions Documentation/ABI/testing/sysfs-class-pktcdvd

This file was deleted.

1 change: 0 additions & 1 deletion Documentation/cdrom/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ CD-ROM
:maxdepth: 1

cdrom-standard
packet-writing

.. only:: subproject and html

Expand Down
139 changes: 0 additions & 139 deletions Documentation/cdrom/packet-writing.rst

This file was deleted.

1 change: 0 additions & 1 deletion Documentation/userspace-api/ioctl/ioctl-number.rst
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ Code Seq# Include File Comments
include/linux/falloc.h,
linux/fs.h,
'X' all fs/ocfs2/ocfs_fs.h conflict!
'X' 01 linux/pktcdvd.h conflict!
'Z' 14-15 drivers/message/fusion/mptctl.h
'[' 00-3F linux/usb/tmc.h USB Test and Measurement Devices
<mailto:[email protected]>
Expand Down
8 changes: 1 addition & 7 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -12681,6 +12681,7 @@ F: include/linux/io_uring.h
F: include/linux/io_uring_types.h
F: include/trace/events/io_uring.h
F: include/uapi/linux/io_uring.h
F: include/uapi/linux/io_uring/
F: io_uring/

IPMI SUBSYSTEM
Expand Down Expand Up @@ -19699,13 +19700,6 @@ S: Supported
F: Documentation/devicetree/bindings/input/pine64,pinephone-keyboard.yaml
F: drivers/input/keyboard/pinephone-keyboard.c

PKTCDVD DRIVER
M: [email protected]
S: Orphan
F: drivers/block/pktcdvd.c
F: include/linux/pktcdvd.h
F: include/uapi/linux/pktcdvd.h

PLANTOWER PMS7003 AIR POLLUTION SENSOR DRIVER
M: Tomasz Duszynski <[email protected]>
S: Maintained
Expand Down
3 changes: 3 additions & 0 deletions block/bio-integrity.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ int bio_integrity_add_page(struct bio *bio, struct page *page,
if (bip->bip_vcnt > 0) {
struct bio_vec *bv = &bip->bip_vec[bip->bip_vcnt - 1];

if (!zone_device_pages_have_same_pgmap(bv->bv_page, page))
return 0;

if (bvec_try_merge_hw_page(q, bv, page, len, offset)) {
bip->bip_iter.bi_size += len;
return len;
Expand Down
20 changes: 13 additions & 7 deletions block/bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -930,8 +930,6 @@ static bool bvec_try_merge_page(struct bio_vec *bv, struct page *page,
return false;
if (xen_domain() && !xen_biovec_phys_mergeable(bv, page))
return false;
if (!zone_device_pages_have_same_pgmap(bv->bv_page, page))
return false;

if ((vec_end_addr & PAGE_MASK) != ((page_addr + off) & PAGE_MASK)) {
if (IS_ENABLED(CONFIG_KMSAN))
Expand Down Expand Up @@ -982,6 +980,9 @@ void __bio_add_page(struct bio *bio, struct page *page,
WARN_ON_ONCE(bio_flagged(bio, BIO_CLONED));
WARN_ON_ONCE(bio_full(bio, len));

if (is_pci_p2pdma_page(page))
bio->bi_opf |= REQ_P2PDMA | REQ_NOMERGE;

bvec_set_page(&bio->bi_io_vec[bio->bi_vcnt], page, len, off);
bio->bi_iter.bi_size += len;
bio->bi_vcnt++;
Expand Down Expand Up @@ -1022,11 +1023,16 @@ int bio_add_page(struct bio *bio, struct page *page,
if (bio->bi_iter.bi_size > UINT_MAX - len)
return 0;

if (bio->bi_vcnt > 0 &&
bvec_try_merge_page(&bio->bi_io_vec[bio->bi_vcnt - 1],
page, len, offset)) {
bio->bi_iter.bi_size += len;
return len;
if (bio->bi_vcnt > 0) {
struct bio_vec *bv = &bio->bi_io_vec[bio->bi_vcnt - 1];

if (!zone_device_pages_have_same_pgmap(bv->bv_page, page))
return 0;

if (bvec_try_merge_page(bv, page, len, offset)) {
bio->bi_iter.bi_size += len;
return len;
}
}

if (bio->bi_vcnt >= bio->bi_max_vecs)
Expand Down
Loading