aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vnodeops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r--fs/xfs/xfs_vnodeops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c
index 3baebe280f10..3ee5f8a2858b 100644
--- a/fs/xfs/xfs_vnodeops.c
+++ b/fs/xfs/xfs_vnodeops.c
@@ -94,7 +94,7 @@ xfs_readlink_bmap(
94 byte_cnt = pathlen; 94 byte_cnt = pathlen;
95 pathlen -= byte_cnt; 95 pathlen -= byte_cnt;
96 96
97 memcpy(link, XFS_BUF_PTR(bp), byte_cnt); 97 memcpy(link, bp->b_addr, byte_cnt);
98 xfs_buf_relse(bp); 98 xfs_buf_relse(bp);
99 } 99 }
100 100
@@ -1654,7 +1654,7 @@ xfs_symlink(
1654 } 1654 }
1655 pathlen -= byte_cnt; 1655 pathlen -= byte_cnt;
1656 1656
1657 memcpy(XFS_BUF_PTR(bp), cur_chunk, byte_cnt); 1657 memcpy(bp->b_addr, cur_chunk, byte_cnt);
1658 cur_chunk += byte_cnt; 1658 cur_chunk += byte_cnt;
1659 1659
1660 xfs_trans_log_buf(tp, bp, 0, byte_cnt - 1); 1660 xfs_trans_log_buf(tp, bp, 0, byte_cnt - 1);
@@ -1999,7 +1999,7 @@ xfs_zero_remaining_bytes(
1999 mp, bp, XFS_BUF_ADDR(bp)); 1999 mp, bp, XFS_BUF_ADDR(bp));
2000 break; 2000 break;
2001 } 2001 }
2002 memset(XFS_BUF_PTR(bp) + 2002 memset(bp->b_addr +
2003 (offset - XFS_FSB_TO_B(mp, imap.br_startoff)), 2003 (offset - XFS_FSB_TO_B(mp, imap.br_startoff)),
2004 0, lastoffset - offset + 1); 2004 0, lastoffset - offset + 1);
2005 XFS_BUF_UNDONE(bp); 2005 XFS_BUF_UNDONE(bp);