]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - mm/page_io.c
net: ethernet: ti: add missing GENERIC_ALLOCATOR dependency
[linux.git] / mm / page_io.c
index b41cf96445856e480f872b33b81855b86551488c..aafd19ec1db4667b5924b147d506d7eeeef37270 100644 (file)
@@ -338,7 +338,8 @@ int __swap_writepage(struct page *page, struct writeback_control *wbc,
                ret = -ENOMEM;
                goto out;
        }
-       bio->bi_opf = REQ_OP_WRITE | wbc_to_write_flags(wbc);
+       bio->bi_opf = REQ_OP_WRITE | REQ_SWAP | wbc_to_write_flags(wbc);
+       bio_associate_blkcg_from_page(bio, page);
        count_swpout_vm_event(page);
        set_page_writeback(page);
        unlock_page(page);