OSDN Git Service

xfs: handle cow fork in xfs_bmap_trace_exlist
authorEric Sandeen <sandeen@sandeen.net>
Mon, 9 Jan 2017 15:38:50 +0000 (16:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:39:42 +0000 (11:39 +0100)
commit4081d4a79a95252486569b014b9a666ad5bfdbee
tree8f19d3cc5ea2ec1c712ccfe826a7ddec3d244b7d
parenta585e1c4ec939d1cc5ce8776c606733d046072da
xfs: handle cow fork in xfs_bmap_trace_exlist

commit c44a1f22626c153976289e1cd67bdcdfefc16e1f upstream.

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>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_bmap.c