Lines Matching refs:mp
50 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtbuf_get() argument
62 ip = issum ? mp->m_rsumip : mp->m_rbmip; in xfs_rtbuf_get()
69 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, in xfs_rtbuf_get()
70 XFS_FSB_TO_DADDR(mp, map.br_startblock), in xfs_rtbuf_get()
71 mp->m_bsize, 0, &bp, NULL); in xfs_rtbuf_get()
84 xfs_mount_t *mp, /* file system mount point */ in xfs_rtfind_back() argument
107 block = XFS_BITTOBLOCK(mp, start); in xfs_rtfind_back()
108 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtfind_back()
116 word = XFS_BITTOWORD(mp, start); in xfs_rtfind_back()
160 error = xfs_rtbuf_get(mp, tp, --block, 0, &bp); in xfs_rtfind_back()
165 word = XFS_BLOCKWMASK(mp); in xfs_rtfind_back()
206 error = xfs_rtbuf_get(mp, tp, --block, 0, &bp); in xfs_rtfind_back()
211 word = XFS_BLOCKWMASK(mp); in xfs_rtfind_back()
259 xfs_mount_t *mp, /* file system mount point */ in xfs_rtfind_forw() argument
282 block = XFS_BITTOBLOCK(mp, start); in xfs_rtfind_forw()
283 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtfind_forw()
291 word = XFS_BITTOWORD(mp, start); in xfs_rtfind_forw()
329 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtfind_forw()
334 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtfind_forw()
374 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtfind_forw()
379 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtfind_forw()
434 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtmodify_summary_int() argument
452 so = XFS_SUMOFFS(mp, log, bbno); in xfs_rtmodify_summary_int()
456 sb = XFS_SUMOFFSTOBLOCK(mp, so); in xfs_rtmodify_summary_int()
471 error = xfs_rtbuf_get(mp, tp, sb, 1, &bp); in xfs_rtmodify_summary_int()
484 sp = XFS_SUMPTR(mp, bp, so); in xfs_rtmodify_summary_int()
498 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtmodify_summary() argument
506 return xfs_rtmodify_summary_int(mp, tp, log, bbno, in xfs_rtmodify_summary()
516 xfs_mount_t *mp, /* file system mount point */ in xfs_rtmodify_range() argument
537 block = XFS_BITTOBLOCK(mp, start); in xfs_rtmodify_range()
541 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtmodify_range()
549 word = XFS_BITTOWORD(mp, start); in xfs_rtmodify_range()
578 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtmodify_range()
586 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtmodify_range()
618 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtmodify_range()
626 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtmodify_range()
673 xfs_mount_t *mp, /* file system mount point */ in xfs_rtfree_range() argument
689 error = xfs_rtmodify_range(mp, tp, start, len, 1); in xfs_rtfree_range()
698 error = xfs_rtfind_back(mp, tp, start, 0, &preblock); in xfs_rtfree_range()
705 error = xfs_rtfind_forw(mp, tp, end, mp->m_sb.sb_rextents - 1, in xfs_rtfree_range()
714 error = xfs_rtmodify_summary(mp, tp, in xfs_rtfree_range()
716 XFS_BITTOBLOCK(mp, preblock), -1, rbpp, rsb); in xfs_rtfree_range()
726 error = xfs_rtmodify_summary(mp, tp, in xfs_rtfree_range()
728 XFS_BITTOBLOCK(mp, end + 1), -1, rbpp, rsb); in xfs_rtfree_range()
737 error = xfs_rtmodify_summary(mp, tp, in xfs_rtfree_range()
739 XFS_BITTOBLOCK(mp, preblock), 1, rbpp, rsb); in xfs_rtfree_range()
749 xfs_mount_t *mp, /* file system mount point */ in xfs_rtcheck_range() argument
772 block = XFS_BITTOBLOCK(mp, start); in xfs_rtcheck_range()
776 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtcheck_range()
784 word = XFS_BITTOWORD(mp, start); in xfs_rtcheck_range()
822 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtcheck_range()
827 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtcheck_range()
868 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtcheck_range()
873 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtcheck_range()
925 xfs_mount_t *mp, /* file system mount point */ in xfs_rtcheck_alloc_range() argument
934 error = xfs_rtcheck_range(mp, tp, bno, len, 0, &new, &stat); in xfs_rtcheck_alloc_range()
954 xfs_mount_t *mp; /* file system mount structure */ in xfs_rtfree_extent() local
958 mp = tp->t_mountp; in xfs_rtfree_extent()
960 ASSERT(mp->m_rbmip->i_itemp != NULL); in xfs_rtfree_extent()
961 ASSERT(xfs_isilocked(mp->m_rbmip, XFS_ILOCK_EXCL)); in xfs_rtfree_extent()
963 error = xfs_rtcheck_alloc_range(mp, tp, bno, len); in xfs_rtfree_extent()
970 error = xfs_rtfree_range(mp, tp, bno, len, &sumbp, &sb); in xfs_rtfree_extent()
982 if (tp->t_frextents_delta + mp->m_sb.sb_frextents == in xfs_rtfree_extent()
983 mp->m_sb.sb_rextents) { in xfs_rtfree_extent()
984 if (!(mp->m_rbmip->i_d.di_flags & XFS_DIFLAG_NEWRTBM)) in xfs_rtfree_extent()
985 mp->m_rbmip->i_d.di_flags |= XFS_DIFLAG_NEWRTBM; in xfs_rtfree_extent()
986 *(__uint64_t *)&mp->m_rbmip->i_d.di_atime = 0; in xfs_rtfree_extent()
987 xfs_trans_log_inode(tp, mp->m_rbmip, XFS_ILOG_CORE); in xfs_rtfree_extent()