File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -1183,7 +1183,7 @@ static inline int is_vmalloc_or_module_addr(const void *x)
1183
1183
* How many times the entire folio is mapped as a single unit (eg by a
1184
1184
* PMD or PUD entry). This is probably not what you want, except for
1185
1185
* debugging purposes - it does not include PTE-mapped sub-pages; look
1186
- * at folio_mapcount() or page_mapcount() or total_mapcount() instead.
1186
+ * at folio_mapcount() or page_mapcount() instead.
1187
1187
*/
1188
1188
static inline int folio_entire_mapcount (struct folio * folio )
1189
1189
{
@@ -1243,13 +1243,6 @@ static inline int folio_mapcount(struct folio *folio)
1243
1243
return folio_total_mapcount (folio );
1244
1244
}
1245
1245
1246
- static inline int total_mapcount (struct page * page )
1247
- {
1248
- if (likely (!PageCompound (page )))
1249
- return atomic_read (& page -> _mapcount ) + 1 ;
1250
- return folio_total_mapcount (page_folio (page ));
1251
- }
1252
-
1253
1246
static inline bool folio_large_is_mapped (struct folio * folio )
1254
1247
{
1255
1248
/*
You can’t perform that action at this time.
0 commit comments