Lines Matching refs:lblock

581 static int gfs2_hole_size(struct inode *inode, sector_t lblock, u64 len,  in gfs2_hole_size()  argument
594 hole_size = metapath_to_block(GFS2_SB(inode), &clone) - lblock; in gfs2_hole_size()
845 sector_t lblock; in __gfs2_iomap_get() local
891 lblock = pos >> inode->i_blkbits; in __gfs2_iomap_get()
892 iomap->offset = lblock << inode->i_blkbits; in __gfs2_iomap_get()
894 len = lblock_stop - lblock + 1; in __gfs2_iomap_get()
898 while ((lblock + 1) * sdp->sd_sb.sb_bsize > sdp->sd_heightsize[height]) in __gfs2_iomap_get()
900 find_metapath(sdp, lblock, mp, height); in __gfs2_iomap_get()
936 ret = gfs2_hole_size(inode, lblock, len, mp, iomap); in __gfs2_iomap_get()
951 ret = gfs2_hole_size(inode, lblock, len, mp, iomap); in __gfs2_iomap_get()
1210 int gfs2_block_map(struct inode *inode, sector_t lblock, in gfs2_block_map() argument
1214 loff_t pos = (loff_t)lblock << inode->i_blkbits; in gfs2_block_map()
1222 trace_gfs2_bmap(ip, bh_map, lblock, create, 1); in gfs2_block_map()
1244 trace_gfs2_bmap(ip, bh_map, lblock, create, ret); in gfs2_block_map()
1248 int gfs2_get_extent(struct inode *inode, u64 lblock, u64 *dblock, in gfs2_get_extent() argument
1256 ret = gfs2_iomap_get(inode, lblock << blkbits, *extlen << blkbits, in gfs2_get_extent()
1269 int gfs2_alloc_extent(struct inode *inode, u64 lblock, u64 *dblock, in gfs2_alloc_extent() argument
1277 ret = gfs2_iomap_alloc(inode, lblock << blkbits, *extlen << blkbits, in gfs2_alloc_extent()
1718 u64 lblock = (offset + (1 << bsize_shift) - 1) >> bsize_shift; in punch_hole() local
1762 if (lblock >= lend) in punch_hole()
1776 find_metapath(sdp, lblock, &mp, ip->i_height); in punch_hole()
2194 static int gfs2_add_jextent(struct gfs2_jdesc *jd, u64 lblock, u64 dblock, u64 blocks) in gfs2_add_jextent() argument
2210 jext->lblock = lblock; in gfs2_add_jextent()
2239 u64 lblock = 0; in gfs2_map_journal_extents() local
2250 size = (lblock_stop - lblock) << shift; in gfs2_map_journal_extents()
2258 rc = gfs2_block_map(jd->jd_inode, lblock, &bh, 0); in gfs2_map_journal_extents()
2261 rc = gfs2_add_jextent(jd, lblock, bh.b_blocknr, bh.b_size >> shift); in gfs2_map_journal_extents()
2265 lblock += (bh.b_size >> ip->i_inode.i_blkbits); in gfs2_map_journal_extents()
2279 rc, (unsigned long long)lblock, (unsigned long long)bh.b_blocknr, in gfs2_map_journal_extents()
2300 u64 lblock, lblock_stop, size; in gfs2_write_alloc_required() local
2315 lblock = offset >> shift; in gfs2_write_alloc_required()
2320 size = (lblock_stop - lblock) << shift; in gfs2_write_alloc_required()
2324 gfs2_block_map(&ip->i_inode, lblock, &bh, 0); in gfs2_write_alloc_required()
2328 lblock += (bh.b_size >> ip->i_inode.i_blkbits); in gfs2_write_alloc_required()