f2fs: use kmem_cache pool during inline xattr lookups
authorChao Yu <yuchao0@huawei.com>
Tue, 25 Feb 2020 10:17:10 +0000 (18:17 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 23 Mar 2020 04:16:27 +0000 (21:16 -0700)
commita999150f4fe3abbb7efd05411fd5b460be699943
tree08afcb75aaf48ab33888a594827aa68883789964
parentdabfbbc8f914504670a7fbeaf933aa253cbb8acc
f2fs: use kmem_cache pool during inline xattr lookups

It's been observed that kzalloc() on lookup_all_xattrs() are called millions
of times on Android, quickly becoming the top abuser of slub memory allocator.

Use a dedicated kmem cache pool for xattr lookups to mitigate this.

Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/super.c
fs/f2fs/xattr.c
fs/f2fs/xattr.h