• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/xfs/

Lines Matching defs:bno

244  * Search the extents list for the inode, for the extent containing bno.
245 * If bno lies in a hole, point to the next entry. If bno lies past eof,
253 xfs_fileoff_t bno, /* block number searched for */
361 xfs_fileoff_t bno,
368 #define xfs_bmap_validate_ret(bno,len,flags,mval,onmap,nmap)
375 xfs_fileoff_t bno,
380 #define xfs_bunmap_trace(ip, bno, len, flags, ra)
2855 * First try an exact bno allocation.
2856 * If it fails then do a near or start bno
3096 xfs_fsblock_t bno;
3103 bno = del->br_startblock;
3105 do_div(bno, mp->m_sb.sb_rextsize);
3107 if ((error = xfs_rtfree_extent(ip->i_transp, bno,
3636 * Search the extent records for the entry containing block bno.
3637 * If bno lies in a hole, point to the next entry. If bno lies
3645 xfs_fileoff_t bno, /* block number searched for */
3668 ep = xfs_iext_bno_to_ext(ifp, bno, &lastx);
3687 * Search the extents list for the inode, for the extent containing bno.
3688 * If bno lies in a hole, point to the next entry. If bno lies past eof,
3696 xfs_fileoff_t bno, /* block number searched for */
3709 ep = xfs_bmap_search_multi_extents(ifp, bno, eofp, lastxp, gotp, prevp);
3916 xfs_fileoff_t bno,
3928 (void *)(__psint_t)(((xfs_dfiloff_t)bno >> 32) & 0xffffffff),
3929 (void *)(__psint_t)((xfs_dfiloff_t)bno & 0xffffffff),
4094 xfs_fsblock_t bno, /* fs block number of extent */
4106 ASSERT(bno != NULLFSBLOCK);
4109 ASSERT(!ISNULLSTARTBLOCK(bno));
4110 agno = XFS_FSB_TO_AGNO(mp, bno);
4111 agbno = XFS_FSB_TO_AGBNO(mp, bno);
4119 new->xbfi_startblock = bno;
4124 if (cur->xbfi_startblock >= bno)
4356 xfs_fileoff_t bno; /* input file offset */
4377 bno = *last_block - 1;
4378 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got,
4380 if (eof || xfs_bmbt_get_startoff(ep) > bno) {
4480 xfs_fsblock_t bno; /* block # of "block" */
4495 bno = NULLFSBLOCK;
4507 bno = be64_to_cpu(*pp);
4508 ASSERT(bno != NULLDFSBNO);
4509 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount);
4510 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks);
4516 if ((error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp,
4526 bno = be64_to_cpu(*pp);
4527 XFS_WANT_CORRUPTED_GOTO(XFS_FSB_SANITY_CHECK(mp, bno), error0);
4590 bno = nextbno;
4594 if (bno == NULLFSBLOCK)
4596 if ((error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp,
4646 xfs_fileoff_t bno,
4660 ASSERT(mval[i].br_startoff >= bno);
4663 bno + len);
4665 ASSERT(mval[i].br_startoff < bno + len);
4667 bno);
4684 * File range is given by the bno/len pair.
4699 xfs_fileoff_t bno, /* starting file offs. mapped */
4745 orig_bno = bno;
4813 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got,
4817 end = bno + len;
4818 obno = bno;
4824 while (bno < end && n < *nmap) {
4831 inhole = eof || got.br_startoff > bno;
4855 got.br_blockcount) - bno);
4856 aoff = bno;
4863 got.br_startoff - bno);
4864 aoff = bno;
5087 mval->br_startoff = bno;
5090 XFS_FILBLKS_MIN(len, got.br_startoff - bno);
5092 bno += mval->br_blockcount;
5104 if (obno > bno)
5105 bno = obno;
5106 ASSERT((bno >= obno) || (n == 0));
5107 ASSERT(bno < end);
5108 mval->br_startoff = bno;
5115 (bno - got.br_startoff);
5125 XFS_FILBLKS_MIN(end - bno, got.br_blockcount -
5126 (bno - got.br_startoff));
5180 bno = mval->br_startoff + mval->br_blockcount;
5181 len = end - bno;
5216 if (bno >= end || n >= *nmap || nallocs >= *nmap)
5309 xfs_fileoff_t bno) /* starting file offs. mapped */
5332 (void)xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got,
5338 if (eof || got.br_startoff > bno) {
5343 ASSERT(bno < got.br_startoff + got.br_blockcount);
5344 *fsb = got.br_startblock + (bno - got.br_startoff);
5359 xfs_fileoff_t bno, /* starting offset to unmap */
5392 xfs_bunmap_trace(ip, bno, len, flags, (inst_t *)__return_address);
5421 start = bno;
5422 bno = start + len - 1;
5423 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got,
5436 bno = got.br_startoff + got.br_blockcount - 1;
5449 while (bno != (xfs_fileoff_t)-1 && bno >= start && lastx >= 0 &&
5452 * Is the found extent after a hole in which bno lives?
5455 if (got.br_startoff > bno) {
5465 bno = XFS_FILEOFF_MIN(bno,
5467 if (bno < start)
5482 if (del.br_startoff + del.br_blockcount > bno + 1)
5483 del.br_blockcount = bno + 1 - del.br_startoff;
5500 ASSERT(bno >= mod);
5501 bno -= mod > del.br_blockcount ?
5503 if (bno < got.br_startoff) {
5552 ASSERT(bno >= del.br_blockcount);
5553 bno -= del.br_blockcount;
5554 if (bno < got.br_startoff) {
5648 bno = del.br_startoff - 1;
5656 if (bno != (xfs_fileoff_t)-1 && bno >= start) {
5658 xfs_bmbt_get_startoff(ep) > bno) {
5668 *done = bno == (xfs_fileoff_t)-1 || bno < start || lastx < 0;
6043 xfs_fsblock_t bno)
6055 if (XFS_BUF_ADDR(bp) == bno)
6090 if (XFS_BUF_ADDR(lbp) == bno) {
6168 xfs_fsblock_t bno; /* block # of "block" */
6185 bno = NULLFSBLOCK;
6196 bno = be64_to_cpu(*pp);
6198 ASSERT(bno != NULLDFSBNO);
6199 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount);
6200 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks);
6208 bp = xfs_bmap_get_bp(cur, XFS_FSB_TO_DADDR(mp, bno));
6214 if (!bp && (error = xfs_btree_read_bufl(mp, NULL, bno, 0, &bp,
6231 bno = be64_to_cpu(*pp);
6232 XFS_WANT_CORRUPTED_GOTO(XFS_FSB_SANITY_CHECK(mp, bno), error0);
6285 bno = nextbno;
6289 if (bno == NULLFSBLOCK)
6292 bp = xfs_bmap_get_bp(cur, XFS_FSB_TO_DADDR(mp, bno));
6298 if (!bp && (error = xfs_btree_read_bufl(mp, NULL, bno, 0, &bp,
6332 xfs_fsblock_t bno; /* block # of "block" */
6338 bno = NULLFSBLOCK;
6359 bno = be64_to_cpu(*pp);
6360 ASSERT(bno != NULLDFSBNO);
6361 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount);
6362 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks);
6364 if (unlikely(xfs_bmap_count_tree(mp, tp, ifp, bno, level, count) < 0)) {
6390 xfs_fsblock_t bno = blockno;
6395 if ((error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, XFS_BMAP_BTREE_REF)))
6415 bno = be64_to_cpu(*pp);
6417 xfs_bmap_count_tree(mp, tp, ifp, bno, level, count)) < 0)) {
6439 bno = nextbno;
6440 if ((error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp,