|
@@ -5683,8 +5683,7 @@ xfs_bmap_collapse_extents(
|
|
xfs_fileoff_t *next_fsb,
|
|
xfs_fileoff_t *next_fsb,
|
|
xfs_fileoff_t offset_shift_fsb,
|
|
xfs_fileoff_t offset_shift_fsb,
|
|
bool *done,
|
|
bool *done,
|
|
- xfs_fsblock_t *firstblock,
|
|
|
|
- struct xfs_defer_ops *dfops)
|
|
|
|
|
|
+ xfs_fsblock_t *firstblock)
|
|
{
|
|
{
|
|
int whichfork = XFS_DATA_FORK;
|
|
int whichfork = XFS_DATA_FORK;
|
|
struct xfs_mount *mp = ip->i_mount;
|
|
struct xfs_mount *mp = ip->i_mount;
|
|
@@ -5718,7 +5717,7 @@ xfs_bmap_collapse_extents(
|
|
if (ifp->if_flags & XFS_IFBROOT) {
|
|
if (ifp->if_flags & XFS_IFBROOT) {
|
|
cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
|
|
cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
|
|
cur->bc_private.b.firstblock = *firstblock;
|
|
cur->bc_private.b.firstblock = *firstblock;
|
|
- cur->bc_private.b.dfops = dfops;
|
|
|
|
|
|
+ cur->bc_private.b.dfops = tp->t_dfops;
|
|
cur->bc_private.b.flags = 0;
|
|
cur->bc_private.b.flags = 0;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -5739,7 +5738,7 @@ xfs_bmap_collapse_extents(
|
|
if (xfs_bmse_can_merge(&prev, &got, offset_shift_fsb)) {
|
|
if (xfs_bmse_can_merge(&prev, &got, offset_shift_fsb)) {
|
|
error = xfs_bmse_merge(ip, whichfork, offset_shift_fsb,
|
|
error = xfs_bmse_merge(ip, whichfork, offset_shift_fsb,
|
|
&icur, &got, &prev, cur, &logflags,
|
|
&icur, &got, &prev, cur, &logflags,
|
|
- dfops);
|
|
|
|
|
|
+ tp->t_dfops);
|
|
if (error)
|
|
if (error)
|
|
goto del_cursor;
|
|
goto del_cursor;
|
|
goto done;
|
|
goto done;
|
|
@@ -5752,7 +5751,7 @@ xfs_bmap_collapse_extents(
|
|
}
|
|
}
|
|
|
|
|
|
error = xfs_bmap_shift_update_extent(ip, whichfork, &icur, &got, cur,
|
|
error = xfs_bmap_shift_update_extent(ip, whichfork, &icur, &got, cur,
|
|
- &logflags, dfops, new_startoff);
|
|
|
|
|
|
+ &logflags, tp->t_dfops, new_startoff);
|
|
if (error)
|
|
if (error)
|
|
goto del_cursor;
|
|
goto del_cursor;
|
|
|
|
|
|
@@ -5806,8 +5805,7 @@ xfs_bmap_insert_extents(
|
|
xfs_fileoff_t offset_shift_fsb,
|
|
xfs_fileoff_t offset_shift_fsb,
|
|
bool *done,
|
|
bool *done,
|
|
xfs_fileoff_t stop_fsb,
|
|
xfs_fileoff_t stop_fsb,
|
|
- xfs_fsblock_t *firstblock,
|
|
|
|
- struct xfs_defer_ops *dfops)
|
|
|
|
|
|
+ xfs_fsblock_t *firstblock)
|
|
{
|
|
{
|
|
int whichfork = XFS_DATA_FORK;
|
|
int whichfork = XFS_DATA_FORK;
|
|
struct xfs_mount *mp = ip->i_mount;
|
|
struct xfs_mount *mp = ip->i_mount;
|
|
@@ -5841,7 +5839,7 @@ xfs_bmap_insert_extents(
|
|
if (ifp->if_flags & XFS_IFBROOT) {
|
|
if (ifp->if_flags & XFS_IFBROOT) {
|
|
cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
|
|
cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
|
|
cur->bc_private.b.firstblock = *firstblock;
|
|
cur->bc_private.b.firstblock = *firstblock;
|
|
- cur->bc_private.b.dfops = dfops;
|
|
|
|
|
|
+ cur->bc_private.b.dfops = tp->t_dfops;
|
|
cur->bc_private.b.flags = 0;
|
|
cur->bc_private.b.flags = 0;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -5884,7 +5882,7 @@ xfs_bmap_insert_extents(
|
|
}
|
|
}
|
|
|
|
|
|
error = xfs_bmap_shift_update_extent(ip, whichfork, &icur, &got, cur,
|
|
error = xfs_bmap_shift_update_extent(ip, whichfork, &icur, &got, cur,
|
|
- &logflags, dfops, new_startoff);
|
|
|
|
|
|
+ &logflags, tp->t_dfops, new_startoff);
|
|
if (error)
|
|
if (error)
|
|
goto del_cursor;
|
|
goto del_cursor;
|
|
|
|
|