BACKPORT: [UPSTREAM] ext2: convert to mbcache2
authorJan Kara <jack@suse.cz>
Mon, 22 Feb 2016 16:56:38 +0000 (11:56 -0500)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 1 May 2017 09:36:20 +0000 (15:06 +0530)
commit4629e13aff1d2814eef87e7487d91d9ffb3599b5
treed1713c0544109b2e3770656061e14b19c00b8195
parent0588ab2893f1b95395b49406b1b5cfdb43d1da38
BACKPORT: [UPSTREAM] ext2: convert to mbcache2

(Cherry-pick from commit be0726d33cb8f411945884664924bed3cb8c70ee)

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>
Bug: 32461228
fs/ext2/ext2.h
fs/ext2/super.c
fs/ext2/xattr.c
fs/ext2/xattr.h