• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/xfs/

Lines Matching refs:bno

238  * Search the extents list for the inode, for the extent containing bno.
239 * If bno lies in a hole, point to the next entry. If bno lies past eof,
247 xfs_fileoff_t bno, /* block number searched for */
283 xfs_fileoff_t bno,
290 #define xfs_bmap_validate_ret(bno,len,flags,mval,onmap,nmap)
324 xfs_fsblock_t bno,
329 cur->bc_rec.b.br_startblock = bno;
338 xfs_fsblock_t bno,
343 cur->bc_rec.b.br_startblock = bno;
350 * by [off, bno, len, state].
357 xfs_fsblock_t bno,
363 xfs_bmbt_disk_set_allf(&rec.bmbt, off, bno, len, state);
2626 * First try an exact bno allocation.
2627 * If it fails then do a near or start bno
2867 xfs_fsblock_t bno;
2874 bno = del->br_startblock;
2876 do_div(bno, mp->m_sb.sb_rextsize);
2878 if ((error = xfs_rtfree_extent(ip->i_transp, bno,
3422 * Search the extent records for the entry containing block bno.
3423 * If bno lies in a hole, point to the next entry. If bno lies
3431 xfs_fileoff_t bno, /* block number searched for */
3454 ep = xfs_iext_bno_to_ext(ifp, bno, &lastx);
3473 * Search the extents list for the inode, for the extent containing bno.
3474 * If bno lies in a hole, point to the next entry. If bno lies past eof,
3482 xfs_fileoff_t bno, /* block number searched for */
3495 ep = xfs_bmap_search_multi_extents(ifp, bno, eofp, lastxp, gotp, prevp);
3696 xfs_fsblock_t bno, /* fs block number of extent */
3708 ASSERT(bno != NULLFSBLOCK);
3711 ASSERT(!isnullstartblock(bno));
3712 agno = XFS_FSB_TO_AGNO(mp, bno);
3713 agbno = XFS_FSB_TO_AGBNO(mp, bno);
3721 new->xbfi_startblock = bno;
3726 if (cur->xbfi_startblock >= bno)
3968 xfs_fileoff_t bno; /* input file offset */
3989 bno = *last_block - 1;
3990 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got,
3992 if (eof || xfs_bmbt_get_startoff(ep) > bno) {
4108 xfs_fsblock_t bno; /* block # of "block" */
4120 bno = NULLFSBLOCK;
4132 bno = be64_to_cpu(*pp);
4133 ASSERT(bno != NULLDFSBNO);
4134 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount);
4135 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks);
4141 if ((error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp,
4151 bno = be64_to_cpu(*pp);
4152 XFS_WANT_CORRUPTED_GOTO(XFS_FSB_SANITY_CHECK(mp, bno), error0);
4215 bno = nextbno;
4219 if (bno == NULLFSBLOCK)
4221 if ((error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp,
4267 xfs_fileoff_t bno,
4281 ASSERT(mval[i].br_startoff >= bno);
4284 bno + len);
4286 ASSERT(mval[i].br_startoff < bno + len);
4288 bno);
4305 * File range is given by the bno/len pair.
4320 xfs_fileoff_t bno, /* starting file offs. mapped */
4365 orig_bno = bno;
4433 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got,
4437 end = bno + len;
4438 obno = bno;
4441 while (bno < end && n < *nmap) {
4448 inhole = eof || got.br_startoff > bno;
4474 got.br_startoff - bno);
4475 aoff = bno;
4693 mval->br_startoff = bno;
4696 XFS_FILBLKS_MIN(len, got.br_startoff - bno);
4698 bno += mval->br_blockcount;
4710 if (obno > bno)
4711 bno = obno;
4712 ASSERT((bno >= obno) || (n == 0));
4713 ASSERT(bno < end);
4714 mval->br_startoff = bno;
4721 (bno - got.br_startoff);
4731 XFS_FILBLKS_MIN(end - bno, got.br_blockcount -
4732 (bno - got.br_startoff));
4785 bno = mval->br_startoff + mval->br_blockcount;
4786 len = end - bno;
4821 if (bno >= end || n >= *nmap || nallocs >= *nmap)
4906 xfs_fileoff_t bno) /* starting file offs. mapped */
4929 (void)xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got,
4935 if (eof || got.br_startoff > bno) {
4940 ASSERT(bno < got.br_startoff + got.br_blockcount);
4941 *fsb = got.br_startblock + (bno - got.br_startoff);
4956 xfs_fileoff_t bno, /* starting offset to unmap */
4987 trace_xfs_bunmap(ip, bno, len, flags, _RET_IP_);
5017 start = bno;
5018 bno = start + len - 1;
5019 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got,
5029 bno = got.br_startoff + got.br_blockcount - 1;
5041 while (bno != (xfs_fileoff_t)-1 && bno >= start && lastx >= 0 &&
5044 * Is the found extent after a hole in which bno lives?
5047 if (got.br_startoff > bno) {
5057 bno = XFS_FILEOFF_MIN(bno,
5059 if (bno < start)
5074 if (del.br_startoff + del.br_blockcount > bno + 1)
5075 del.br_blockcount = bno + 1 - del.br_startoff;
5092 ASSERT(bno >= mod);
5093 bno -= mod > del.br_blockcount ?
5095 if (bno < got.br_startoff) {
5144 ASSERT(bno >= del.br_blockcount);
5145 bno -= del.br_blockcount;
5146 if (bno < got.br_startoff) {
5240 bno = del.br_startoff - 1;
5248 if (bno != (xfs_fileoff_t)-1 && bno >= start) {
5250 xfs_bmbt_get_startoff(ep) > bno) {
5260 *done = bno == (xfs_fileoff_t)-1 || bno < start || lastx < 0;
5666 xfs_fsblock_t bno)
5677 if (XFS_BUF_ADDR(cur->bc_bufs[i]) == bno)
5686 XFS_BUF_ADDR(bip->bli_buf) == bno)
5753 xfs_fsblock_t bno; /* block # of "block" */
5770 bno = NULLFSBLOCK;
5781 bno = be64_to_cpu(*pp);
5783 ASSERT(bno != NULLDFSBNO);
5784 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount);
5785 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks);
5793 bp = xfs_bmap_get_bp(cur, XFS_FSB_TO_DADDR(mp, bno));
5799 if (!bp && (error = xfs_btree_read_bufl(mp, NULL, bno, 0, &bp,
5816 bno = be64_to_cpu(*pp);
5817 XFS_WANT_CORRUPTED_GOTO(XFS_FSB_SANITY_CHECK(mp, bno), error0);
5871 bno = nextbno;
5875 if (bno == NULLFSBLOCK)
5878 bp = xfs_bmap_get_bp(cur, XFS_FSB_TO_DADDR(mp, bno));
5884 if (!bp && (error = xfs_btree_read_bufl(mp, NULL, bno, 0, &bp,
5918 xfs_fsblock_t bno; /* block # of "block" */
5924 bno = NULLFSBLOCK;
5941 bno = be64_to_cpu(*pp);
5942 ASSERT(bno != NULLDFSBNO);
5943 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount);
5944 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks);
5946 if (unlikely(xfs_bmap_count_tree(mp, tp, ifp, bno, level, count) < 0)) {
5972 xfs_fsblock_t bno = blockno;
5977 if ((error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, XFS_BMAP_BTREE_REF)))
5997 bno = be64_to_cpu(*pp);
5999 xfs_bmap_count_tree(mp, tp, ifp, bno, level, count)) < 0)) {
6015 bno = nextbno;
6016 if ((error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp,