]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: fix flags argument to rmap lookup when converting shared file rmaps
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 14 Nov 2020 17:08:47 +0000 (12:08 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Sat, 14 Nov 2020 17:08:47 +0000 (12:08 -0500)
commit4d1b7499ce491c3e85dec6e70d01ca36d64e13fa
treefb8ff894adef7186fa7ba71ff3d8db9d169d35e7
parentfc46ff14390ec9ee346f58b33486ea23157d981f
xfs: fix flags argument to rmap lookup when converting shared file rmaps

Source kernel commit: ea8439899c0b15a176664df62aff928010fad276

Pass the same oldext argument (which contains the existing rmapping's
unwritten state) to xfs_rmap_lookup_le_range at the start of
xfs_rmap_convert_shared.  At this point in the code, flags is zero,
which means that we perform lookups using the wrong key.

Fixes: 3f165b334e51 ("xfs: convert unwritten status of reverse mappings for shared files")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_rmap.c