]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: each filesystem creates and uses its own mb_cache
authorT Makphaibulchoke <tmac@hp.com>
Tue, 18 Mar 2014 23:24:49 +0000 (19:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 18 Mar 2014 23:24:49 +0000 (19:24 -0400)
commit3413d1cc8b9d26be18c35d8542f1dc2ea566b179
tree2e7a0ffa25f89e6dab1719deeb6a710405517afc
parentbd7b47b0ba317c5e9d9edfc1d9cc809a825523e8
ext4: each filesystem creates and uses its own mb_cache

This patch adds new interfaces to create and destory cache,
ext4_xattr_create_cache() and ext4_xattr_destroy_cache(), and remove
the cache creation and destory calls from ex4_init_xattr() and
ext4_exitxattr() in fs/ext4/xattr.c.

fs/ext4/super.c has been changed so that when a filesystem is mounted
a cache is allocated and attched to its ext4_sb_info structure.

fs/mbcache.c has been changed so that only one slab allocator is
allocated and used by all mbcache structures.

Signed-off-by: T. Makphaibulchoke <tmac@hp.com>
fs/ext4/ext4.h
fs/ext4/super.c
fs/ext4/xattr.c
fs/ext4/xattr.h
fs/mbcache.c