From: Christoph Hellwig Date: Wed, 14 Aug 2019 07:59:26 +0000 (+0200) Subject: mm: remove the unused MIGRATE_PFN_ERROR flag X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2a915acf88ac0c4c583cd654bdc87371e38016c1;p=linux.git mm: remove the unused MIGRATE_PFN_ERROR flag Now that we can rely errors in the normal control flow there is no need for this flag, remove it. Link: https://lore.kernel.org/r/20190814075928.23766-9-hch@lst.de Signed-off-by: Christoph Hellwig Reviewed-by: Ralph Campbell Tested-by: Ralph Campbell Signed-off-by: Jason Gunthorpe --- diff --git a/include/linux/migrate.h b/include/linux/migrate.h index 18156d379ebfd..1e67dcfd318fd 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h @@ -167,7 +167,6 @@ static inline int migrate_misplaced_transhuge_page(struct mm_struct *mm, #define MIGRATE_PFN_LOCKED (1UL << 2) #define MIGRATE_PFN_WRITE (1UL << 3) #define MIGRATE_PFN_DEVICE (1UL << 4) -#define MIGRATE_PFN_ERROR (1UL << 5) #define MIGRATE_PFN_SHIFT 6 static inline struct page *migrate_pfn_to_page(unsigned long mpfn)