xfs: handle cow fork in xfs_bmap_trace_exlist
authorEric Sandeen <sandeen@sandeen.net>
Mon, 5 Dec 2016 01:32:00 +0000 (12:32 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 5 Dec 2016 01:32:00 +0000 (12:32 +1100)
commitc44a1f22626c153976289e1cd67bdcdfefc16e1f
tree32f2a2d1cf2e222ed4ee0f9926e964d728bccb31
parent7710517fc37b1899722707883b54694ea710b3c0
xfs: handle cow fork in xfs_bmap_trace_exlist

By inspection, xfs_bmap_trace_exlist isn't handling cow forks,
and will trace the data fork instead.

Fix this by setting state appropriately if whichfork
== XFS_COW_FORK.

()___()
< @ @ >
 |   |
 {o_o}
  (|)

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_bmap.c