projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c09b997
)
mm: remove offset_in_thp()
author
Matthew Wilcox (Oracle)
<willy@infradead.org>
Wed, 2 Apr 2025 21:06:04 +0000
(22:06 +0100)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 12 May 2025 00:48:05 +0000
(17:48 -0700)
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>
include/linux/mm.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/mm.h
b/include/linux/mm.h
index 733dd7100ca14ac84da4f0e389052c8a6854ea5b..ae67d3a337925f2fc934a7adba019930708d02de 100644
(file)
--- a/
include/linux/mm.h
+++ b/
include/linux/mm.h
@@
-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))
/*