Bloat caused by unnecessary calls to compound_head()?
Could you just mark compound_head __pure? That would tell the compiler that it's safe to re-use the return value as long as there is no memory mutation in between.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 4 lines · George Spelvin
Could you just mark
compound_head__pure? That would tell the compiler that it's safe to re-use the return value as long as there is no memory mutation in between.
Hm. It has some positive impact, but it's not dramatic. For instance, mm/swap.o results:
add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-43 (-43)
function old new delta __page_cache_release 319 298 -21 release_pages 722 700 -22
mark_page_accessed() problem was not fixed by that.
Signature · 7 lines
Kirill A. Shutemov -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>