Code: init_ext2_xattr(void)
 {
	ext2_xattr_cache = mb_cache_create("ext2_xattr", 6);
	if (!ext2_xattr_cache)
		return -ENOMEM;
	return 0;
 }

Commit Message: ext2: convert to mbcache2

The conversion is generally straightforward. We convert filesystem from
a global cache to per-fs one. Similarly to ext4 the tricky part is that
xattr block corresponding to found mbcache entry can get freed before we
get buffer lock for that block. So we have to check whether the entry is
still valid after getting the buffer lock.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
CWE ID: CWE-19
init_ext2_xattr(void)
#define HASH_BUCKET_BITS 10

struct mb2_cache *ext2_xattr_create_cache(void)
 {
	return mb2_cache_create(HASH_BUCKET_BITS);
 }
