xattr: Option to disable meta-data block cache
authorAndreas Dilger <andreas.dilger@intel.com>
Wed, 14 Dec 2016 12:24:44 +0000 (13:24 +0100)
committerSasha Levin <alexander.levin@verizon.com>
Fri, 23 Dec 2016 13:56:34 +0000 (08:56 -0500)
commit1b364dc9edba5ad079a43853fd319a3a255f5b29
treeedf594e9af81cb2807db4537de221005b0ba97df
parent9a66bc6ee0f9908ba98a7d19b94d49ec231ab0e1
xattr: Option to disable meta-data block cache

mbcache provides absolutely no value for Lustre xattrs (because
they are unique and cannot be shared between files) and as we can
see it has a noticable overhead in some cases. In the past there
was a CONFIG_MBCACHE option that would allow it to be disabled,
but this was removed in newer kernels, so we will need to patch
ldiskfs to fix this.

References: <https://bugzilla.kernel.org/show_bug.cgi?id=107301>
References: <https://git.hpdd.intel.com/fs/lustre-release.git/blob_plain/HEAD:/ldiskfs/kernel_patches/patches/rhel7/ext4-disable-mb-cache.patch>
References: CVE-2015-8952

On 13.12.2016 at 15:58 Ben Hutchings wrote:
> I decided not to apply this as it's a userland ABI extension that we
> would then need to carry indefinitely.

Signed-off-by: Philipp Hahn <hahn@univention.de>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
fs/ext4/ext4.h
fs/ext4/super.c
fs/ext4/xattr.c