• Kefeng Wang's avatar
    mm: remove MIGRATE_SYNC_NO_COPY mode · 90663284
    Kefeng Wang authored
    Commit 2916ecc0 ("mm/migrate: new migrate mode MIGRATE_SYNC_NO_COPY")
    introduce a new MIGRATE_SYNC_NO_COPY mode to allow to offload the copy to
    a device DMA engine, which is only used __migrate_device_pages() to decide
    whether or not copy the old page, and the MIGRATE_SYNC_NO_COPY mode only
    set in hmm, as the MIGRATE_SYNC_NO_COPY set is removed by previous
    cleanup, it seems that we could remove the unnecessary
    MIGRATE_SYNC_NO_COPY.
    
    Link: https://lkml.kernel.org/r/20240524052843.182275-6-wangkefeng.wang@huawei.comSigned-off-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
    Reviewed-by: default avatarJane Chu <jane.chu@oracle.com>
    Cc: Alistair Popple <apopple@nvidia.com>
    Cc: Benjamin LaHaise <bcrl@kvack.org>
    Cc: David Hildenbrand <david@redhat.com>
    Cc: Hugh Dickins <hughd@google.com>
    Cc: Jérôme Glisse <jglisse@redhat.com>
    Cc: Jiaqi Yan <jiaqiyan@google.com>
    Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
    Cc: Miaohe Lin <linmiaohe@huawei.com>
    Cc: Muchun Song <muchun.song@linux.dev>
    Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>
    Cc: Tony Luck <tony.luck@intel.com>
    Cc: Vishal Moola (Oracle) <vishal.moola@gmail.com>
    Cc: Zi Yan <ziy@nvidia.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    90663284
aio.c 61.4 KB