/linux/fs/xfs/libxfs/ |
H A D | xfs_bmap_btree.c | 51 xfs_bmdr_block_t *dblock, in xfs_bmdr_to_bmbt() argument 64 rblock->bb_level = dblock->bb_level; in xfs_bmdr_to_bmbt() 66 rblock->bb_numrecs = dblock->bb_numrecs; in xfs_bmdr_to_bmbt() 68 fkp = xfs_bmdr_key_addr(dblock, 1); in xfs_bmdr_to_bmbt() 70 fpp = xfs_bmdr_ptr_addr(dblock, 1, dmxr); in xfs_bmdr_to_bmbt() 72 dmxr = be16_to_cpu(dblock->bb_numrecs); in xfs_bmdr_to_bmbt() 148 xfs_bmdr_block_t *dblock, in xfs_bmbt_to_bmdr() argument 168 dblock->bb_level = rblock->bb_level; in xfs_bmbt_to_bmdr() 169 dblock->bb_numrecs = rblock->bb_numrecs; in xfs_bmbt_to_bmdr() 172 tkp = xfs_bmdr_key_addr(dblock, 1); in xfs_bmbt_to_bmdr() [all …]
|
/linux/fs/gfs2/ |
H A D | lops.c | 151 return je->dblock + lblock - je->lblock; in gfs2_log_bmap() 358 u64 dblock; in gfs2_log_write_bh() local 360 dblock = gfs2_log_bmap(sdp->sd_jdesc, sdp->sd_log_flush_head); in gfs2_log_write_bh() 363 bh_offset(bh), dblock); in gfs2_log_write_bh() 380 u64 dblock; in gfs2_log_write_page() local 382 dblock = gfs2_log_bmap(sdp->sd_jdesc, sdp->sd_log_flush_head); in gfs2_log_write_page() 384 gfs2_log_write(sdp, sdp->sd_jdesc, page, sb->s_blocksize, 0, dblock); in gfs2_log_write_page() 527 u64 dblock = je->dblock; in gfs2_find_jhead() local 529 for (; block < je->lblock + je->blocks; block++, dblock++) { in gfs2_find_jhead() 541 sector_t sector = dblock << sdp->sd_fsb2bb_shift; in gfs2_find_jhead() [all …]
|
H A D | bmap.h | 56 int gfs2_get_extent(struct inode *inode, u64 lblock, u64 *dblock, 58 int gfs2_alloc_extent(struct inode *inode, u64 lblock, u64 *dblock,
|
H A D | meta_io.c | 518 struct buffer_head *gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen) in gfs2_meta_ra() argument 532 first_bh = gfs2_getbuf(gl, dblock, CREATE); in gfs2_meta_ra() 538 dblock++; in gfs2_meta_ra() 542 bh = gfs2_getbuf(gl, dblock, CREATE); in gfs2_meta_ra() 546 dblock++; in gfs2_meta_ra()
|
H A D | recovery.c | 37 u64 dblock; in gfs2_replay_read_block() local 42 error = gfs2_get_extent(&ip->i_inode, blk, &dblock, &extlen); in gfs2_replay_read_block() 45 if (!dblock) { in gfs2_replay_read_block() 50 *bh = gfs2_meta_ra(gl, dblock, extlen); in gfs2_replay_read_block()
|
H A D | dir.c | 157 u64 lblock, dblock; in gfs2_dir_write_data() local 193 error = gfs2_alloc_extent(&ip->i_inode, lblock, &dblock, in gfs2_dir_write_data() 198 if (gfs2_assert_withdraw(sdp, dblock)) in gfs2_dir_write_data() 203 error = gfs2_dir_get_new_buffer(ip, dblock, &bh); in gfs2_dir_write_data() 205 error = gfs2_dir_get_existing_buffer(ip, dblock, &bh); in gfs2_dir_write_data() 217 dblock++; in gfs2_dir_write_data() 271 u64 lblock, dblock; in gfs2_dir_read_data() local 297 &dblock, &extlen); in gfs2_dir_read_data() 298 if (error || !dblock) in gfs2_dir_read_data() 301 bh = gfs2_meta_ra(ip->i_gl, dblock, extlen); in gfs2_dir_read_data() [all …]
|
H A D | bmap.c | 329 u64 dblock = be64_to_cpu(*ptr); in __fillup_metapath() local 332 if (!dblock) in __fillup_metapath() 334 ret = gfs2_meta_buffer(ip, GFS2_METATYPE_IN, dblock, &mp->mp_bh[x + 1]); in __fillup_metapath() 1251 int gfs2_get_extent(struct inode *inode, u64 lblock, u64 *dblock, in gfs2_get_extent() argument 1265 *dblock = iomap.addr >> blkbits; in gfs2_get_extent() 1272 int gfs2_alloc_extent(struct inode *inode, u64 lblock, u64 *dblock, in gfs2_alloc_extent() argument 1286 *dblock = iomap.addr >> blkbits; in gfs2_alloc_extent() 2198 static int gfs2_add_jextent(struct gfs2_jdesc *jd, u64 lblock, u64 dblock, u64 blocks) in gfs2_add_jextent() argument 2204 if ((jext->dblock + jext->blocks) == dblock) { in gfs2_add_jextent() 2213 jext->dblock = dblock; in gfs2_add_jextent()
|
H A D | aops.c | 563 sector_t dblock = 0; in gfs2_bmap() local 571 dblock = iomap_bmap(mapping, lblock, &gfs2_iomap_ops); in gfs2_bmap() 575 return dblock; in gfs2_bmap()
|
H A D | meta_io.h | 75 struct buffer_head *gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen);
|
H A D | log.c | 833 u64 dblock; in gfs2_write_log_header() local 858 dblock = gfs2_log_bmap(jd, lblock); in gfs2_write_log_header() 864 ret = gfs2_get_extent(jd->jd_inode, lblock, &dblock, &extlen); in gfs2_write_log_header() 868 lh->lh_addr = cpu_to_be64(dblock); in gfs2_write_log_header() 893 gfs2_log_write(sdp, jd, page, sb->s_blocksize, 0, dblock); in gfs2_write_log_header()
|
/linux/fs/hfsplus/ |
H A D | extents.c | 232 u32 ablock, dblock, mask; in hfsplus_get_block() local 253 dblock = hfsplus_ext_find_block(hip->first_extents, ablock); in hfsplus_get_block() 273 dblock = hfsplus_ext_find_block(hip->cached_extents, in hfsplus_get_block() 279 inode->i_ino, (long long)iblock, dblock); in hfsplus_get_block() 282 sector = ((sector_t)dblock << sbi->fs_shift) + in hfsplus_get_block()
|
/linux/fs/hfs/ |
H A D | extent.c | 340 u16 dblock, ablock; in hfs_get_block() local 361 dblock = hfs_ext_find_block(HFS_I(inode)->first_extents, ablock); in hfs_get_block() 368 dblock = hfs_ext_find_block(HFS_I(inode)->cached_extents, in hfs_get_block() 378 dblock * HFS_SB(sb)->fs_div + in hfs_get_block()
|
/linux/fs/afs/ |
H A D | dir.c | 502 union afs_xdr_dir_block *dblock; in afs_dir_iterate() local 537 offset = round_down(ctx->pos, sizeof(*dblock)) - folio_pos(folio); in afs_dir_iterate() 542 dblock = kmap_local_folio(folio, offset); in afs_dir_iterate() 543 ret = afs_dir_iterate_block(dvnode, ctx, dblock, in afs_dir_iterate() 545 kunmap_local(dblock); in afs_dir_iterate() 549 } while (offset += sizeof(*dblock), offset < size); in afs_dir_iterate()
|
/linux/drivers/md/ |
H A D | dm-cache-target.c | 2866 dm_dblock_t dblock, bool discard) in load_discard() argument 2873 if (from_dblock(dblock) == li->discard_end) in load_discard() 2884 li->discard_begin = from_dblock(dblock); in load_discard()
|