@@ -469,14 +469,13 @@ static inline int pfn_to_bitidx(struct page *page, unsigned long pfn)
469
469
* get_pfnblock_flags_mask - Return the requested group of flags for the pageblock_nr_pages block of pages
470
470
* @page: The page within the block of interest
471
471
* @pfn: The target page frame number
472
- * @end_bitidx: The last bit of interest to retrieve
473
472
* @mask: mask of bits that the caller is interested in
474
473
*
475
474
* Return: pageblock_bits flags
476
475
*/
477
- static __always_inline unsigned long __get_pfnblock_flags_mask (struct page * page ,
476
+ static __always_inline
477
+ unsigned long __get_pfnblock_flags_mask (struct page * page ,
478
478
unsigned long pfn ,
479
- unsigned long end_bitidx ,
480
479
unsigned long mask )
481
480
{
482
481
unsigned long * bitmap ;
@@ -493,28 +492,25 @@ static __always_inline unsigned long __get_pfnblock_flags_mask(struct page *page
493
492
}
494
493
495
494
unsigned long get_pfnblock_flags_mask (struct page * page , unsigned long pfn ,
496
- unsigned long end_bitidx ,
497
495
unsigned long mask )
498
496
{
499
- return __get_pfnblock_flags_mask (page , pfn , end_bitidx , mask );
497
+ return __get_pfnblock_flags_mask (page , pfn , mask );
500
498
}
501
499
502
500
static __always_inline int get_pfnblock_migratetype (struct page * page , unsigned long pfn )
503
501
{
504
- return __get_pfnblock_flags_mask (page , pfn , PB_migrate_end , MIGRATETYPE_MASK );
502
+ return __get_pfnblock_flags_mask (page , pfn , MIGRATETYPE_MASK );
505
503
}
506
504
507
505
/**
508
506
* set_pfnblock_flags_mask - Set the requested group of flags for a pageblock_nr_pages block of pages
509
507
* @page: The page within the block of interest
510
508
* @flags: The flags to set
511
509
* @pfn: The target page frame number
512
- * @end_bitidx: The last bit of interest
513
510
* @mask: mask of bits that the caller is interested in
514
511
*/
515
512
void set_pfnblock_flags_mask (struct page * page , unsigned long flags ,
516
513
unsigned long pfn ,
517
- unsigned long end_bitidx ,
518
514
unsigned long mask )
519
515
{
520
516
unsigned long * bitmap ;
@@ -550,8 +546,7 @@ void set_pageblock_migratetype(struct page *page, int migratetype)
550
546
migratetype = MIGRATE_UNMOVABLE ;
551
547
552
548
set_pfnblock_flags_mask (page , (unsigned long )migratetype ,
553
- page_to_pfn (page ), PB_migrate_end ,
554
- MIGRATETYPE_MASK );
549
+ page_to_pfn (page ), MIGRATETYPE_MASK );
555
550
}
556
551
557
552
#ifdef CONFIG_DEBUG_VM
0 commit comments