• Home
  • Raw
  • Download

Lines Matching refs:blk

330 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact)  in gfs2_blk2rgrpd()  argument
340 if (blk < cur->rd_addr) in gfs2_blk2rgrpd()
342 else if (blk >= cur->rd_data0 + cur->rd_data) in gfs2_blk2rgrpd()
347 if (blk < cur->rd_addr) in gfs2_blk2rgrpd()
349 if (blk >= cur->rd_data0 + cur->rd_data) in gfs2_blk2rgrpd()
829 u64 blk; in gfs2_rgrp_send_discards() local
850 blk = offset + ((bi->bi_start + x) * GFS2_NBBY); in gfs2_rgrp_send_discards()
851 blk *= sects_per_blk; /* convert to sectors */ in gfs2_rgrp_send_discards()
856 if ((start + nr_sects) != blk) { in gfs2_rgrp_send_discards()
867 start = blk; in gfs2_rgrp_send_discards()
872 blk += sects_per_blk; in gfs2_rgrp_send_discards()
1033 static inline u32 gfs2_bi2rgd_blk(struct gfs2_bitmap *bi, u32 blk) in gfs2_bi2rgd_blk() argument
1035 return (bi->bi_start * GFS2_NBBY) + blk; in gfs2_bi2rgd_blk()
1291 u32 blk = BFITNOENT; in rgblk_search() local
1328 blk = gfs2_bitfit(buffer, bi->bi_len, goal, state); in rgblk_search()
1329 if (blk != BFITNOENT) in rgblk_search()
1342 if (blk != BFITNOENT) in rgblk_search()
1345 return blk; in rgblk_search()
1361 u32 blk, bool dinode, unsigned int *n) in gfs2_alloc_extent() argument
1371 bi, blk, dinode ? GFS2_BLKST_DINODE : GFS2_BLKST_USED); in gfs2_alloc_extent()
1373 goal = blk; in gfs2_alloc_extent()
1385 blk = gfs2_bi2rgd_blk(bi, blk); in gfs2_alloc_extent()
1386 rgd->rd_last_alloc = blk + *n - 1; in gfs2_alloc_extent()
1387 return rgd->rd_data0 + blk; in gfs2_alloc_extent()
1492 u32 goal, blk; /* block, within the rgrp scope */ in gfs2_alloc_blocks() local
1510 blk = rgblk_search(rgd, goal, GFS2_BLKST_FREE, &bi); in gfs2_alloc_blocks()
1513 if (blk == BFITNOENT) in gfs2_alloc_blocks()
1516 block = gfs2_alloc_extent(rgd, bi, blk, dinode, nblocks); in gfs2_alloc_blocks()