Home
last modified time | relevance | path

Searched refs:dblock (Results 1 – 17 of 17) sorted by relevance

/fs/xfs/libxfs/
Dxfs_bmap_btree.c34 xfs_bmdr_block_t *dblock, in xfs_bmdr_to_bmbt() argument
49 rblock->bb_level = dblock->bb_level; in xfs_bmdr_to_bmbt()
51 rblock->bb_numrecs = dblock->bb_numrecs; in xfs_bmdr_to_bmbt()
53 fkp = XFS_BMDR_KEY_ADDR(dblock, 1); in xfs_bmdr_to_bmbt()
55 fpp = XFS_BMDR_PTR_ADDR(dblock, 1, dmxr); in xfs_bmdr_to_bmbt()
57 dmxr = be16_to_cpu(dblock->bb_numrecs); in xfs_bmdr_to_bmbt()
133 xfs_bmdr_block_t *dblock, in xfs_bmbt_to_bmdr() argument
153 dblock->bb_level = rblock->bb_level; in xfs_bmbt_to_bmdr()
154 dblock->bb_numrecs = rblock->bb_numrecs; in xfs_bmbt_to_bmdr()
157 tkp = XFS_BMDR_KEY_ADDR(dblock, 1); in xfs_bmbt_to_bmdr()
[all …]
/fs/verity/
Dverify.c114 const struct fsverity_pending_block *dblock, in verify_data_block() argument
117 const u64 data_pos = dblock->pos; in verify_data_block()
157 if (memchr_inv(dblock->data, 0, params->block_size)) { in verify_data_block()
252 if (memcmp(want_hash, dblock->real_hash, hsize) != 0) in verify_data_block()
262 level == 0 ? dblock->real_hash : real_hash); in verify_data_block()
/fs/gfs2/
Dlops.c151 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()
534 u64 dblock = je->dblock; in gfs2_find_jhead() local
536 for (; block < je->lblock + je->blocks; block++, dblock++) { in gfs2_find_jhead()
548 sector_t sector = dblock << sdp->sd_fsb2bb_shift; in gfs2_find_jhead()
[all …]
Dmeta_io.c519 struct buffer_head *gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen) in gfs2_meta_ra() argument
533 first_bh = gfs2_getbuf(gl, dblock, CREATE); in gfs2_meta_ra()
539 dblock++; in gfs2_meta_ra()
543 bh = gfs2_getbuf(gl, dblock, CREATE); in gfs2_meta_ra()
547 dblock++; in gfs2_meta_ra()
Dbmap.h56 int gfs2_get_extent(struct inode *inode, u64 lblock, u64 *dblock,
58 int gfs2_alloc_extent(struct inode *inode, u64 lblock, u64 *dblock,
Drecovery.c37 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()
Ddir.c157 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 …]
Dbmap.c325 u64 dblock = be64_to_cpu(*ptr); in __fillup_metapath() local
328 if (!dblock) in __fillup_metapath()
330 ret = gfs2_meta_buffer(ip, GFS2_METATYPE_IN, dblock, &mp->mp_bh[x + 1]); in __fillup_metapath()
1248 int gfs2_get_extent(struct inode *inode, u64 lblock, u64 *dblock, in gfs2_get_extent() argument
1262 *dblock = iomap.addr >> blkbits; in gfs2_get_extent()
1269 int gfs2_alloc_extent(struct inode *inode, u64 lblock, u64 *dblock, in gfs2_alloc_extent() argument
1283 *dblock = iomap.addr >> blkbits; in gfs2_alloc_extent()
2195 static int gfs2_add_jextent(struct gfs2_jdesc *jd, u64 lblock, u64 dblock, u64 blocks) in gfs2_add_jextent() argument
2201 if ((jext->dblock + jext->blocks) == dblock) { in gfs2_add_jextent()
2210 jext->dblock = dblock; in gfs2_add_jextent()
Daops.c598 sector_t dblock = 0; in gfs2_bmap() local
606 dblock = iomap_bmap(mapping, lblock, &gfs2_iomap_ops); in gfs2_bmap()
610 return dblock; in gfs2_bmap()
Dlog.c842 u64 dblock; in gfs2_write_log_header() local
867 dblock = gfs2_log_bmap(jd, lblock); in gfs2_write_log_header()
873 ret = gfs2_get_extent(jd->jd_inode, lblock, &dblock, &extlen); in gfs2_write_log_header()
877 lh->lh_addr = cpu_to_be64(dblock); in gfs2_write_log_header()
902 gfs2_log_write(sdp, jd, page, sb->s_blocksize, 0, dblock); in gfs2_write_log_header()
Dmeta_io.h75 struct buffer_head *gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen);
Dquota.c1398 u64 dblock; in gfs2_quota_init() local
1423 error = gfs2_get_extent(&ip->i_inode, x, &dblock, &extlen); in gfs2_quota_init()
1428 bh = gfs2_meta_ra(ip->i_gl, dblock, extlen); in gfs2_quota_init()
1476 dblock++; in gfs2_quota_init()
Dincore.h502 u64 dblock; /* First disk block */ member
/fs/hfsplus/
Dextents.c232 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()
/fs/ntfs/
Daops.c537 sector_t block, dblock, iblock; in ntfs_write_block() local
591 dblock = (i_size + blocksize - 1) >> blocksize_bits; in ntfs_write_block()
616 if (unlikely(block >= dblock)) { in ntfs_write_block()
904 sector_t block, dblock, rec_block; in ntfs_write_mst_block() local
958 dblock = (i_size_read(vi) + bh_size - 1) >> bh_size_bits; in ntfs_write_mst_block()
968 if (unlikely(block >= dblock)) { in ntfs_write_mst_block()
990 if (unlikely(block >= dblock)) { in ntfs_write_mst_block()
/fs/hfs/
Dextent.c340 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()
/fs/afs/
Ddir.c501 union afs_xdr_dir_block *dblock; in afs_dir_iterate() local
536 offset = round_down(ctx->pos, sizeof(*dblock)) - folio_file_pos(folio); in afs_dir_iterate()
541 dblock = kmap_local_folio(folio, offset); in afs_dir_iterate()
542 ret = afs_dir_iterate_block(dvnode, ctx, dblock, in afs_dir_iterate()
544 kunmap_local(dblock); in afs_dir_iterate()
548 } while (offset += sizeof(*dblock), offset < size); in afs_dir_iterate()