]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
xfs: strengthen rmap record flags checking
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 9 Nov 2020 00:32:41 +0000 (16:32 -0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 20 Jan 2021 13:24:22 +0000 (14:24 +0100)
commit03734e455d7d988f3f8d6aeb1eb4d776ae537723
tree92d560b33c61894743602fae8e15e3594deec09c
parent890afc579fc90e24d05bd1f1944922f6decdad50
xfs: strengthen rmap record flags checking

BugLink: https://bugs.launchpad.net/bugs/1908561
[ Upstream commit 498fe261f0d6d5189f8e11d283705dd97b474b54 ]

We always know the correct state of the rmap record flags (attr, bmbt,
unwritten) so check them by direct comparison.

Fixes: d852657ccfc0 ("xfs: cross-reference reverse-mapping btree")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
fs/xfs/scrub/bmap.c