Re: [patch] Inline vm_acct_memory
From: Hugh Dickins (hugh@veritas.com)
Date: Wed May 28 2003 - 10:46:42 EST
On Wed, 28 May 2003, Ravikiran G Thirumalai wrote:
> I found that inlining vm_acct_memory speeds up vm_enough_memory.
> Since vm_acct_memory is only called by vm_enough_memory,
No, linux/mman.h declares
static inline void vm_unacct_memory(long pages)
{
vm_acct_memory(-pages);
}
and I count 18 callsites for vm_unacct_memory.
I'm no judge of what's worth inlining, but Andrew is widely known
and feared as The Scourge of Inliners, so I'd advise you to hide...
Hugh
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/