Lines Matching refs:mval
487 xfs_bmbt_irec_t *mval,
496 ASSERT(mval[i].br_blockcount > 0);
498 ASSERT(mval[i].br_startoff >= bno);
499 ASSERT(mval[i].br_blockcount <= len);
500 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <=
503 ASSERT(mval[i].br_startoff < bno + len);
504 ASSERT(mval[i].br_startoff + mval[i].br_blockcount >
508 mval[i - 1].br_startoff + mval[i - 1].br_blockcount ==
509 mval[i].br_startoff);
510 ASSERT(mval[i].br_startblock != DELAYSTARTBLOCK &&
511 mval[i].br_startblock != HOLESTARTBLOCK);
512 ASSERT(mval[i].br_state == XFS_EXT_NORM ||
513 mval[i].br_state == XFS_EXT_UNWRITTEN);
519 #define xfs_bmap_validate_ret(bno,len,flags,mval,onmap,nmap) do { } while (0)
3766 struct xfs_bmbt_irec *mval,
3777 *mval = *got;
3779 mval->br_startblock = DELAYSTARTBLOCK;
3787 mval->br_startoff = *bno;
3789 mval->br_startblock = DELAYSTARTBLOCK;
3791 mval->br_startblock = got->br_startblock +
3800 mval->br_blockcount = XFS_FILBLKS_MIN(end - *bno,
3802 mval->br_state = got->br_state;
3803 ASSERT(mval->br_blockcount <= len);
3820 xfs_bmbt_irec_t *mval = *map;
3823 ((mval->br_startoff + mval->br_blockcount) <= end));
3824 ASSERT((flags & XFS_BMAPI_ENTIRE) || (mval->br_blockcount <= *len) ||
3825 (mval->br_startoff < obno));
3827 *bno = mval->br_startoff + mval->br_blockcount;
3829 if (*n > 0 && mval->br_startoff == mval[-1].br_startoff) {
3831 ASSERT(mval->br_startblock == mval[-1].br_startblock);
3832 ASSERT(mval->br_blockcount > mval[-1].br_blockcount);
3833 ASSERT(mval->br_state == mval[-1].br_state);
3834 mval[-1].br_blockcount = mval->br_blockcount;
3835 mval[-1].br_state = mval->br_state;
3836 } else if (*n > 0 && mval->br_startblock != DELAYSTARTBLOCK &&
3837 mval[-1].br_startblock != DELAYSTARTBLOCK &&
3838 mval[-1].br_startblock != HOLESTARTBLOCK &&
3839 mval->br_startblock == mval[-1].br_startblock +
3840 mval[-1].br_blockcount &&
3841 mval[-1].br_state == mval->br_state) {
3842 ASSERT(mval->br_startoff ==
3843 mval[-1].br_startoff + mval[-1].br_blockcount);
3844 mval[-1].br_blockcount += mval->br_blockcount;
3846 mval->br_startblock == DELAYSTARTBLOCK &&
3847 mval[-1].br_startblock == DELAYSTARTBLOCK &&
3848 mval->br_startoff ==
3849 mval[-1].br_startoff + mval[-1].br_blockcount) {
3850 mval[-1].br_blockcount += mval->br_blockcount;
3851 mval[-1].br_state = mval->br_state;
3853 ((mval->br_startoff + mval->br_blockcount) <=
3855 mval++;
3858 *map = mval;
3869 struct xfs_bmbt_irec *mval,
3915 mval->br_startoff = bno;
3916 mval->br_startblock = HOLESTARTBLOCK;
3917 mval->br_blockcount =
3919 mval->br_state = XFS_EXT_NORM;
3920 bno += mval->br_blockcount;
3921 len -= mval->br_blockcount;
3922 mval++;
3928 xfs_bmapi_trim_map(mval, &got, &bno, len, obno, end, n, flags);
3929 xfs_bmapi_update_map(&mval, &bno, &len, obno, end, &n, flags);
4189 struct xfs_bmbt_irec *mval,
4199 if (mval->br_state == XFS_EXT_UNWRITTEN &&
4204 if (mval->br_state == XFS_EXT_NORM &&
4212 ASSERT(mval->br_blockcount <= len);
4217 mval->br_state = (mval->br_state == XFS_EXT_UNWRITTEN)
4225 error = xfs_zero_extent(bma->ip, mval->br_startblock,
4226 mval->br_blockcount);
4232 &bma->icur, &bma->cur, mval, &tmp_logflags);
4260 if (mval->br_blockcount < len)
4321 struct xfs_bmbt_irec *mval, /* output: map values */
4322 int *nmap) /* i/o: mval size/count */
4342 struct xfs_bmbt_irec *orig_mval; /* original value of mval */
4348 orig_mval = mval;
4454 xfs_bmapi_trim_map(mval, &bma.got, &bno, len, obno,
4458 error = xfs_bmapi_convert_unwritten(&bma, mval, len, flags);
4465 xfs_bmapi_update_map(&mval, &bno, &len, obno, end, &n, flags);