linux-stable/fs/xfs/libxfs
Darrick J. Wong d69769356a xfs: revert "xfs: fix rmap key and record comparison functions"
[ Upstream commit eb8409071a ]

This reverts commit 6ff646b2ce.

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: 6ff646b2ce ("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>
2020-11-24 13:05:50 +01:00
..
xfs_ag_resv.c
xfs_ag_resv.h
xfs_alloc.c xfs: add agf freeblocks verify in xfs_agf_verify 2020-06-30 15:38:09 -04:00
xfs_alloc.h
xfs_alloc_btree.c
xfs_alloc_btree.h
xfs_attr.c xfs: hold xfs_buf locked between shortform->leaf conversion and the addition of an attribute 2019-04-27 09:35:41 +02:00
xfs_attr_leaf.c xfs: fix attr leaf header freemap.size underflow 2020-10-01 13:12:29 +02:00
xfs_attr_leaf.h xfs: hold xfs_buf locked between shortform->leaf conversion and the addition of an attribute 2019-04-27 09:35:41 +02:00
xfs_attr_remote.c
xfs_attr_remote.h
xfs_attr_sf.h
xfs_bit.c
xfs_bit.h
xfs_bmap.c xfs: set format back to extents if xfs_bmap_extents_to_btree 2020-07-31 16:44:45 +02:00
xfs_bmap.h
xfs_bmap_btree.c
xfs_bmap_btree.h
xfs_btree.c
xfs_btree.h
xfs_cksum.h
xfs_da_btree.c
xfs_da_btree.h
xfs_da_format.c
xfs_da_format.h
xfs_defer.c xfs: add the ability to join a held buffer to a defer_ops 2019-04-27 09:35:41 +02:00
xfs_defer.h xfs: add the ability to join a held buffer to a defer_ops 2019-04-27 09:35:41 +02:00
xfs_dir2.c
xfs_dir2.h
xfs_dir2_block.c
xfs_dir2_data.c
xfs_dir2_leaf.c
xfs_dir2_node.c xfs: don't ever return a stale pointer from __xfs_dir3_free_read 2020-10-01 13:12:37 +02:00
xfs_dir2_priv.h
xfs_dir2_sf.c
xfs_dquot_buf.c
xfs_format.h
xfs_fs.h
xfs_ialloc.c
xfs_ialloc.h
xfs_ialloc_btree.c
xfs_ialloc_btree.h
xfs_inode_buf.c
xfs_inode_buf.h
xfs_inode_fork.c
xfs_inode_fork.h
xfs_log_format.h
xfs_log_recover.h
xfs_log_rlimit.c
xfs_quota_defs.h
xfs_refcount.c
xfs_refcount.h
xfs_refcount_btree.c
xfs_refcount_btree.h
xfs_rmap.c xfs: fix flags argument to rmap lookup when converting shared file rmaps 2020-11-18 18:27:57 +01:00
xfs_rmap.h
xfs_rmap_btree.c xfs: revert "xfs: fix rmap key and record comparison functions" 2020-11-24 13:05:50 +01:00
xfs_rmap_btree.h
xfs_rtbitmap.c
xfs_sb.c
xfs_sb.h
xfs_shared.h
xfs_symlink_remote.c
xfs_trans_resv.c xfs: truncate transaction does not modify the inobt 2018-11-10 07:48:34 -08:00
xfs_trans_resv.h
xfs_trans_space.h
xfs_types.h