diff options
author | David Sterba <dsterba@suse.cz> | 2012-09-07 05:00:48 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-10-01 15:19:16 -0400 |
commit | 837e197283199de640857192ca32767cb6e24fe8 (patch) | |
tree | 30b40201d0895a49c75861372ec7554aa384baa9 /fs/btrfs/inode.c | |
parent | a80c8dcf7e5065adc555ef8ffb256df11e3293e3 (diff) |
btrfs: polish names of kmem caches
Usecase:
watch 'grep btrfs < /proc/slabinfo'
easy to watch all caches in one go.
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 9b21cf97cdd5..aae55625aa59 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -7155,31 +7155,31 @@ void btrfs_destroy_cachep(void) | |||
7155 | 7155 | ||
7156 | int btrfs_init_cachep(void) | 7156 | int btrfs_init_cachep(void) |
7157 | { | 7157 | { |
7158 | btrfs_inode_cachep = kmem_cache_create("btrfs_inode_cache", | 7158 | btrfs_inode_cachep = kmem_cache_create("btrfs_inode", |
7159 | sizeof(struct btrfs_inode), 0, | 7159 | sizeof(struct btrfs_inode), 0, |
7160 | SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, init_once); | 7160 | SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, init_once); |
7161 | if (!btrfs_inode_cachep) | 7161 | if (!btrfs_inode_cachep) |
7162 | goto fail; | 7162 | goto fail; |
7163 | 7163 | ||
7164 | btrfs_trans_handle_cachep = kmem_cache_create("btrfs_trans_handle_cache", | 7164 | btrfs_trans_handle_cachep = kmem_cache_create("btrfs_trans_handle", |
7165 | sizeof(struct btrfs_trans_handle), 0, | 7165 | sizeof(struct btrfs_trans_handle), 0, |
7166 | SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); | 7166 | SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); |
7167 | if (!btrfs_trans_handle_cachep) | 7167 | if (!btrfs_trans_handle_cachep) |
7168 | goto fail; | 7168 | goto fail; |
7169 | 7169 | ||
7170 | btrfs_transaction_cachep = kmem_cache_create("btrfs_transaction_cache", | 7170 | btrfs_transaction_cachep = kmem_cache_create("btrfs_transaction", |
7171 | sizeof(struct btrfs_transaction), 0, | 7171 | sizeof(struct btrfs_transaction), 0, |
7172 | SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); | 7172 | SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); |
7173 | if (!btrfs_transaction_cachep) | 7173 | if (!btrfs_transaction_cachep) |
7174 | goto fail; | 7174 | goto fail; |
7175 | 7175 | ||
7176 | btrfs_path_cachep = kmem_cache_create("btrfs_path_cache", | 7176 | btrfs_path_cachep = kmem_cache_create("btrfs_path", |
7177 | sizeof(struct btrfs_path), 0, | 7177 | sizeof(struct btrfs_path), 0, |
7178 | SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); | 7178 | SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); |
7179 | if (!btrfs_path_cachep) | 7179 | if (!btrfs_path_cachep) |
7180 | goto fail; | 7180 | goto fail; |
7181 | 7181 | ||
7182 | btrfs_free_space_cachep = kmem_cache_create("btrfs_free_space_cache", | 7182 | btrfs_free_space_cachep = kmem_cache_create("btrfs_free_space", |
7183 | sizeof(struct btrfs_free_space), 0, | 7183 | sizeof(struct btrfs_free_space), 0, |
7184 | SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); | 7184 | SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); |
7185 | if (!btrfs_free_space_cachep) | 7185 | if (!btrfs_free_space_cachep) |