Commit e06259aa authored by Darrick J. Wong's avatar Darrick J. Wong

xfs: various swapext cleanups

Replace structure typedefs with struct expressions and fix some
whitespace issues that result.
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent e54b5bf9
...@@ -1564,8 +1564,8 @@ xfs_insert_file_space( ...@@ -1564,8 +1564,8 @@ xfs_insert_file_space(
*/ */
static int static int
xfs_swap_extents_check_format( xfs_swap_extents_check_format(
xfs_inode_t *ip, /* target inode */ struct xfs_inode *ip, /* target inode */
xfs_inode_t *tip) /* tmp inode */ struct xfs_inode *tip) /* tmp inode */
{ {
/* Should never get a local format */ /* Should never get a local format */
...@@ -1651,22 +1651,22 @@ xfs_swap_extent_flush( ...@@ -1651,22 +1651,22 @@ xfs_swap_extent_flush(
int int
xfs_swap_extents( xfs_swap_extents(
xfs_inode_t *ip, /* target inode */ struct xfs_inode *ip, /* target inode */
xfs_inode_t *tip, /* tmp inode */ struct xfs_inode *tip, /* tmp inode */
xfs_swapext_t *sxp) struct xfs_swapext *sxp)
{ {
xfs_mount_t *mp = ip->i_mount; struct xfs_mount *mp = ip->i_mount;
xfs_trans_t *tp; struct xfs_trans *tp;
xfs_bstat_t *sbp = &sxp->sx_stat; struct xfs_bstat *sbp = &sxp->sx_stat;
xfs_ifork_t *tempifp, *ifp, *tifp; struct xfs_ifork *tempifp, *ifp, *tifp;
int src_log_flags, target_log_flags; int src_log_flags, target_log_flags;
int error = 0; int error = 0;
int aforkblks = 0; int aforkblks = 0;
int taforkblks = 0; int taforkblks = 0;
__uint64_t tmp; __uint64_t tmp;
int lock_flags; int lock_flags;
struct xfs_ifork *cowfp; struct xfs_ifork *cowfp;
__uint64_t f; __uint64_t f;
/* XXX: we can't do this with rmap, will fix later */ /* XXX: we can't do this with rmap, will fix later */
if (xfs_sb_version_hasrmapbt(&mp->m_sb)) if (xfs_sb_version_hasrmapbt(&mp->m_sb))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment