BACKPORT [UPSTREAM] ext4: convert to mbcache2
authorJan Kara <jack@suse.cz>
Mon, 22 Feb 2016 16:50:13 +0000 (11:50 -0500)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 1 May 2017 09:36:07 +0000 (15:06 +0530)
commit0588ab2893f1b95395b49406b1b5cfdb43d1da38
tree5b9af8f307c7bbc4997042660c1b872fd5b28c97
parent2ffd5f0b9d77573380c7cf5fc79cc7d5ea03a1d9
BACKPORT [UPSTREAM] ext4: convert to mbcache2

(Cherry-pick from commit 82939d7999dfc1f1998c4b1c12e2f19edbdff272)

The conversion is generally straightforward. The only 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 buffer lock.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Bug; 32461228
fs/ext4/ext4.h
fs/ext4/super.c
fs/ext4/xattr.c
fs/ext4/xattr.h