Lines Matching refs:lblock
584 static int gfs2_hole_size(struct inode *inode, sector_t lblock, u64 len, in gfs2_hole_size() argument
597 hole_size = metapath_to_block(GFS2_SB(inode), &clone) - lblock; in gfs2_hole_size()
848 sector_t lblock; in __gfs2_iomap_get() local
894 lblock = pos >> inode->i_blkbits; in __gfs2_iomap_get()
895 iomap->offset = lblock << inode->i_blkbits; in __gfs2_iomap_get()
897 len = lblock_stop - lblock + 1; in __gfs2_iomap_get()
901 while ((lblock + 1) * sdp->sd_sb.sb_bsize > sdp->sd_heightsize[height]) in __gfs2_iomap_get()
903 find_metapath(sdp, lblock, mp, height); in __gfs2_iomap_get()
939 ret = gfs2_hole_size(inode, lblock, len, mp, iomap); in __gfs2_iomap_get()
954 ret = gfs2_hole_size(inode, lblock, len, mp, iomap); in __gfs2_iomap_get()
1199 int gfs2_block_map(struct inode *inode, sector_t lblock, in gfs2_block_map() argument
1203 loff_t pos = (loff_t)lblock << inode->i_blkbits; in gfs2_block_map()
1211 trace_gfs2_bmap(ip, bh_map, lblock, create, 1); in gfs2_block_map()
1233 trace_gfs2_bmap(ip, bh_map, lblock, create, ret); in gfs2_block_map()
1237 int gfs2_get_extent(struct inode *inode, u64 lblock, u64 *dblock, in gfs2_get_extent() argument
1245 ret = gfs2_iomap_get(inode, lblock << blkbits, *extlen << blkbits, in gfs2_get_extent()
1258 int gfs2_alloc_extent(struct inode *inode, u64 lblock, u64 *dblock, in gfs2_alloc_extent() argument
1266 ret = gfs2_iomap_alloc(inode, lblock << blkbits, *extlen << blkbits, in gfs2_alloc_extent()
1708 u64 lblock = (offset + (1 << bsize_shift) - 1) >> bsize_shift; in punch_hole() local
1752 if (lblock >= lend) in punch_hole()
1766 find_metapath(sdp, lblock, &mp, ip->i_height); in punch_hole()
2192 static int gfs2_add_jextent(struct gfs2_jdesc *jd, u64 lblock, u64 dblock, u64 blocks) in gfs2_add_jextent() argument
2208 jext->lblock = lblock; in gfs2_add_jextent()
2237 u64 lblock = 0; in gfs2_map_journal_extents() local
2248 size = (lblock_stop - lblock) << shift; in gfs2_map_journal_extents()
2256 rc = gfs2_block_map(jd->jd_inode, lblock, &bh, 0); in gfs2_map_journal_extents()
2259 rc = gfs2_add_jextent(jd, lblock, bh.b_blocknr, bh.b_size >> shift); in gfs2_map_journal_extents()
2263 lblock += (bh.b_size >> ip->i_inode.i_blkbits); in gfs2_map_journal_extents()
2277 rc, (unsigned long long)lblock, (unsigned long long)bh.b_blocknr, in gfs2_map_journal_extents()
2298 u64 lblock, lblock_stop, size; in gfs2_write_alloc_required() local
2313 lblock = offset >> shift; in gfs2_write_alloc_required()
2318 size = (lblock_stop - lblock) << shift; in gfs2_write_alloc_required()
2322 gfs2_block_map(&ip->i_inode, lblock, &bh, 0); in gfs2_write_alloc_required()
2326 lblock += (bh.b_size >> ip->i_inode.i_blkbits); in gfs2_write_alloc_required()