Lines Matching defs:mval

513 	xfs_bmbt_irec_t		*mval,
522 ASSERT(mval[i].br_blockcount > 0);
524 ASSERT(mval[i].br_startoff >= bno);
525 ASSERT(mval[i].br_blockcount <= len);
526 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <=
529 ASSERT(mval[i].br_startoff < bno + len);
530 ASSERT(mval[i].br_startoff + mval[i].br_blockcount >
534 mval[i - 1].br_startoff + mval[i - 1].br_blockcount ==
535 mval[i].br_startoff);
536 ASSERT(mval[i].br_startblock != DELAYSTARTBLOCK &&
537 mval[i].br_startblock != HOLESTARTBLOCK);
538 ASSERT(mval[i].br_state == XFS_EXT_NORM ||
539 mval[i].br_state == XFS_EXT_UNWRITTEN);
545 #define xfs_bmap_validate_ret(bno,len,flags,mval,onmap,nmap) do { } while (0)
3860 struct xfs_bmbt_irec *mval,
3871 *mval = *got;
3873 mval->br_startblock = DELAYSTARTBLOCK;
3881 mval->br_startoff = *bno;
3883 mval->br_startblock = DELAYSTARTBLOCK;
3885 mval->br_startblock = got->br_startblock +
3894 mval->br_blockcount = XFS_FILBLKS_MIN(end - *bno,
3896 mval->br_state = got->br_state;
3897 ASSERT(mval->br_blockcount <= len);
3914 xfs_bmbt_irec_t *mval = *map;
3917 ((mval->br_startoff + mval->br_blockcount) <= end));
3918 ASSERT((flags & XFS_BMAPI_ENTIRE) || (mval->br_blockcount <= *len) ||
3919 (mval->br_startoff < obno));
3921 *bno = mval->br_startoff + mval->br_blockcount;
3923 if (*n > 0 && mval->br_startoff == mval[-1].br_startoff) {
3925 ASSERT(mval->br_startblock == mval[-1].br_startblock);
3926 ASSERT(mval->br_blockcount > mval[-1].br_blockcount);
3927 ASSERT(mval->br_state == mval[-1].br_state);
3928 mval[-1].br_blockcount = mval->br_blockcount;
3929 mval[-1].br_state = mval->br_state;
3930 } else if (*n > 0 && mval->br_startblock != DELAYSTARTBLOCK &&
3931 mval[-1].br_startblock != DELAYSTARTBLOCK &&
3932 mval[-1].br_startblock != HOLESTARTBLOCK &&
3933 mval->br_startblock == mval[-1].br_startblock +
3934 mval[-1].br_blockcount &&
3935 mval[-1].br_state == mval->br_state) {
3936 ASSERT(mval->br_startoff ==
3937 mval[-1].br_startoff + mval[-1].br_blockcount);
3938 mval[-1].br_blockcount += mval->br_blockcount;
3940 mval->br_startblock == DELAYSTARTBLOCK &&
3941 mval[-1].br_startblock == DELAYSTARTBLOCK &&
3942 mval->br_startoff ==
3943 mval[-1].br_startoff + mval[-1].br_blockcount) {
3944 mval[-1].br_blockcount += mval->br_blockcount;
3945 mval[-1].br_state = mval->br_state;
3947 ((mval->br_startoff + mval->br_blockcount) <=
3949 mval++;
3952 *map = mval;
3963 struct xfs_bmbt_irec *mval,
4013 mval->br_startoff = bno;
4014 mval->br_startblock = HOLESTARTBLOCK;
4015 mval->br_blockcount =
4017 mval->br_state = XFS_EXT_NORM;
4018 bno += mval->br_blockcount;
4019 len -= mval->br_blockcount;
4020 mval++;
4026 xfs_bmapi_trim_map(mval, &got, &bno, len, obno, end, n, flags);
4027 xfs_bmapi_update_map(&mval, &bno, &len, obno, end, &n, flags);
4286 struct xfs_bmbt_irec *mval,
4296 if (mval->br_state == XFS_EXT_UNWRITTEN &&
4301 if (mval->br_state == XFS_EXT_NORM &&
4309 ASSERT(mval->br_blockcount <= len);
4314 mval->br_state = (mval->br_state == XFS_EXT_UNWRITTEN)
4322 error = xfs_zero_extent(bma->ip, mval->br_startblock,
4323 mval->br_blockcount);
4329 &bma->icur, &bma->cur, mval, &tmp_logflags);
4357 if (mval->br_blockcount < len)
4418 struct xfs_bmbt_irec *mval, /* output: map values */
4419 int *nmap) /* i/o: mval size/count */
4439 struct xfs_bmbt_irec *orig_mval; /* original value of mval */
4445 orig_mval = mval;
4552 xfs_bmapi_trim_map(mval, &bma.got, &bno, len, obno,
4556 error = xfs_bmapi_convert_unwritten(&bma, mval, len, flags);
4563 xfs_bmapi_update_map(&mval, &bno, &len, obno, end, &n, flags);