]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
xfs: use ->t_dfops for rmap extent swap operations
authorBrian Foster <bfoster@redhat.com>
Thu, 12 Jul 2018 05:26:17 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:26:17 +0000 (22:26 -0700)
commit7a7943c7e09546d4cc78b9756de23fd395b2cba4
tree3eb2fb3c00a59c977b5fb15f3c88104fc4a218e9
parented7ef8e55c6f24ae4347b5bda89e00af475ebc89
xfs: use ->t_dfops for rmap extent swap operations

xfs_swap_extent_rmap() uses a local dfops instance with a
transaction from the caller. Since there is only one caller, pull
the dfops structure into the caller and attach it to the
transaction. This avoids the need to clear ->t_dfops to prevent
invalid stack memory access.

Signed-off-by: Brian Foster <bfoster@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_bmap_util.c