xfs: cow unwritten conversion uses uninitialized dfops
authorBrian Foster <bfoster@redhat.com>
Thu, 12 Jul 2018 05:26:06 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:26:06 +0000 (22:26 -0700)
commit8a749386498327c98c2792e19eeeaa21dafc6954
treeacb9a081a52618ec67fe77c16e88dd69a3b5f836
parent98c1a7c0ece345dc8e34c0c85703e4df9fdfd071
xfs: cow unwritten conversion uses uninitialized dfops

A couple COW fork unwritten extent conversion helpers pass an
uninitialized dfops pointer to xfs_bmapi_write(). This does not
cause problems because conversion does not use a transaction or the
dfops structure for the COW fork.  Drop the uninitialized usage of
dfops in these codepaths and pass NULL along to xfs_bmapi_write()
instead.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_reflink.c