OSDN Git Service

xfs: fix fork selection in xfs_find_trim_cow_extent
authorChristoph Hellwig <hch@lst.de>
Thu, 18 Oct 2018 06:19:58 +0000 (17:19 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Oct 2018 06:19:58 +0000 (17:19 +1100)
commit032dc923b2baef87db6c812f6e8bebcb7638cab8
treec85c9b5e888b0a6d0e63dd661373e96ae0caf067
parentd392bc81bb7c26ea6225d088ead344ed6486b495
xfs: fix fork selection in xfs_find_trim_cow_extent

We should want to write directly into the data fork for blocks that don't
have an extent in the COW fork covering them yet.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_reflink.c