mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 00:47:56 -04:00
mm: remove offset_in_thp()
All callers have been converted to call offset_in_folio(). Link: https://lkml.kernel.org/r/20250402210612.2444135-3-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
c09b997342
commit
a551395790
@@ -2445,7 +2445,6 @@ static inline void clear_page_pfmemalloc(struct page *page)
|
||||
extern void pagefault_out_of_memory(void);
|
||||
|
||||
#define offset_in_page(p) ((unsigned long)(p) & ~PAGE_MASK)
|
||||
#define offset_in_thp(page, p) ((unsigned long)(p) & (thp_size(page) - 1))
|
||||
#define offset_in_folio(folio, p) ((unsigned long)(p) & (folio_size(folio) - 1))
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user