]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
xfs: revert "xfs: fix rmap key and record comparison functions"
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 19 Nov 2020 23:17:50 +0000 (15:17 -0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 20 Jan 2021 13:24:22 +0000 (14:24 +0100)
commit4879e7a287b83556881cefadd8eb7789b207b778
tree2ea9918dd211cd4b2a6fe4c925ee4b249a38c3de
parent031e45093c292536fb532a445ec218ad77dcf894
xfs: revert "xfs: fix rmap key and record comparison functions"

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

This reverts commit 6ff646b2ceb0eec916101877f38da0b73e3a5b7f.

Your maintainer committed a major braino in the rmap code by adding the
attr fork, bmbt, and unwritten extent usage bits into rmap record key
comparisons.  While XFS uses the usage bits *in the rmap records* for
cross-referencing metadata in xfs_scrub and xfs_repair, it only needs
the owner and offset information to distinguish between reverse mappings
of the same physical extent into the data fork of a file at multiple
offsets.  The other bits are not important for key comparisons for index
lookups, and never have been.

Eric Sandeen reports that this causes regressions in generic/299, so
undo this patch before it does more damage.

Reported-by: Eric Sandeen <sandeen@sandeen.net>
Fixes: 6ff646b2ceb0 ("xfs: fix rmap key and record comparison functions")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
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/libxfs/xfs_rmap_btree.c