diff options
author | Hugh Dickins <hugh@veritas.com> | 2004-09-13 17:45:23 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-13 17:45:23 -0700 |
commit | fe658b15e8afd06f70376ff5318515dc45c655a7 (patch) | |
tree | 0be1e75dd327b999e762913dbc2137e3aa20435f /mm | |
parent | 2d656145c352fd26269be6434ede53608b7f245b (diff) | |
download | history-fe658b15e8afd06f70376ff5318515dc45c655a7.tar.gz |
[PATCH] shmem: don't SLAB_HWCACHE_ALIGN
Anton recently removed SLAB_HWCACHE_ALIGN from the fs inode caches, now do the
same for tmpfs inode cache: fits 9 per page where 7 before.
Was saying SLAB_RECLAIM_ACCOUNT too, but that's wrong: tmpfs inodes are not
reclaimed under pressure; and hugetlbfs had copied that too.
Rearrange shmem_inode_info fields so those most likely to be needed are most
likely to be in the same cacheline as the spinlock guarding them.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/shmem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 9ed4b622686afa..3722aefae02444 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -1897,8 +1897,7 @@ static int init_inodecache(void) { shmem_inode_cachep = kmem_cache_create("shmem_inode_cache", sizeof(struct shmem_inode_info), - 0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT, - init_once, NULL); + 0, 0, init_once, NULL); if (shmem_inode_cachep == NULL) return -ENOMEM; return 0; |