Lines Matching refs:mval

486 	xfs_bmbt_irec_t		*mval,
495 ASSERT(mval[i].br_blockcount > 0);
497 ASSERT(mval[i].br_startoff >= bno);
498 ASSERT(mval[i].br_blockcount <= len);
499 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <=
502 ASSERT(mval[i].br_startoff < bno + len);
503 ASSERT(mval[i].br_startoff + mval[i].br_blockcount >
507 mval[i - 1].br_startoff + mval[i - 1].br_blockcount ==
508 mval[i].br_startoff);
509 ASSERT(mval[i].br_startblock != DELAYSTARTBLOCK &&
510 mval[i].br_startblock != HOLESTARTBLOCK);
511 ASSERT(mval[i].br_state == XFS_EXT_NORM ||
512 mval[i].br_state == XFS_EXT_UNWRITTEN);
518 #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,
3917 mval->br_startoff = bno;
3918 mval->br_startblock = HOLESTARTBLOCK;
3919 mval->br_blockcount =
3921 mval->br_state = XFS_EXT_NORM;
3922 bno += mval->br_blockcount;
3923 len -= mval->br_blockcount;
3924 mval++;
3930 xfs_bmapi_trim_map(mval, &got, &bno, len, obno, end, n, flags);
3931 xfs_bmapi_update_map(&mval, &bno, &len, obno, end, &n, flags);
4184 struct xfs_bmbt_irec *mval,
4194 if (mval->br_state == XFS_EXT_UNWRITTEN &&
4199 if (mval->br_state == XFS_EXT_NORM &&
4207 ASSERT(mval->br_blockcount <= len);
4212 mval->br_state = (mval->br_state == XFS_EXT_UNWRITTEN)
4220 error = xfs_zero_extent(bma->ip, mval->br_startblock,
4221 mval->br_blockcount);
4227 &bma->icur, &bma->cur, mval, &tmp_logflags);
4255 if (mval->br_blockcount < len)
4316 struct xfs_bmbt_irec *mval, /* output: map values */
4317 int *nmap) /* i/o: mval size/count */
4337 struct xfs_bmbt_irec *orig_mval; /* original value of mval */
4343 orig_mval = mval;
4451 xfs_bmapi_trim_map(mval, &bma.got, &bno, len, obno,
4455 error = xfs_bmapi_convert_unwritten(&bma, mval, len, flags);
4462 xfs_bmapi_update_map(&mval, &bno, &len, obno, end, &n, flags);