aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r--fs/xfs/xfs_inode.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index 73b604e15dcd..7b4f13c710d6 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -2435,10 +2435,8 @@ xfs_iroot_realloc(
2435 /* 2435 /*
2436 * First copy the records. 2436 * First copy the records.
2437 */ 2437 */
2438 op = (char *)XFS_BMAP_BROOT_REC_ADDR(ifp->if_broot, 1, 2438 op = (char *)XFS_BMBT_REC_ADDR(mp, ifp->if_broot, 1);
2439 ifp->if_broot_bytes); 2439 np = (char *)XFS_BMBT_REC_ADDR(mp, new_broot, 1);
2440 np = (char *)XFS_BMAP_BROOT_REC_ADDR(new_broot, 1,
2441 (int)new_size);
2442 memcpy(np, op, new_max * (uint)sizeof(xfs_bmbt_rec_t)); 2440 memcpy(np, op, new_max * (uint)sizeof(xfs_bmbt_rec_t));
2443 2441
2444 /* 2442 /*