Re: [BLOCK] bh: Ensure bh fits within a page
"Pekka Enberg" <[email protected]>
| Newsgroups | gmane.comp.file-systems.ext2.devel,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
Hi, On 8/1/06, Christoph Lameter <[email protected]> wrote: > The slab allocator gives no guarantee that a structure is not straddling a > page boundary regardless of debug or not. It may just happen that the > objects are arranged if kmem_cache_cretae() is called with certain > parameters. Another arch with other cacheline alignment and another page > size may arrange the objects differently. Indeed. You could try to force zero-order page allocations for a cache, but we are probably better of using the page allocator directly or crafting a special purpose allocator for the block layer. Pekka ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV