| /linux/fs/jfs/ |
| H A D | jfs_dmap.c | 64 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno, 70 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, 73 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno, 75 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno, 78 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, 85 static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno, 87 static int dbExtend(struct inode *ip, s64 blkno, s64 nblocks, s64 addnblocks); 89 static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno); 91 static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno, 93 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, [all …]
|
| H A D | xattr.c | 208 s64 blkno; in ea_write() local 232 rc = dbAlloc(ip, INOHINT(ip), nblocks, &blkno); in ea_write() 256 if (!(mp = get_metapage(ip, blkno + i, bytes_to_write, 1))) { in ea_write() 290 DXDaddress(ea, blkno); in ea_write() 302 dbFree(ip, blkno, nblocks); in ea_write() 357 s64 blkno; in ea_read() local 379 blkno = addressDXD(&ji->ea) << sbi->l2nbperpage; in ea_read() 396 if (!(mp = read_metapage(ip, blkno + i, bytes_to_read, 1))) in ea_read() 433 s64 blkno; in ea_get() local 517 &blkno); in ea_get() [all …]
|
| H A D | jfs_dmap.h | 284 extern int dbFree(struct inode *ipbmap, s64 blkno, s64 nblocks); 287 int free, s64 blkno, s64 nblocks, struct tblock * tblk); 294 s64 blkno, s64 nblocks, s64 addnblocks, s64 * results); 297 extern int dbAllocBottomUp(struct inode *ip, s64 blkno, s64 nblocks); 298 extern int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks);
|
| H A D | jfs_imap.c | 298 s64 blkno, agstart; in diRead() local 338 blkno = INOPBLK(&iagp->inoext[extno], ino, sbi->l2nbperpage); in diRead() 349 pageno = blkno >> sbi->l2nbperpage; in diRead() 351 if ((block_offset = ((u32) blkno & (sbi->nbperpage - 1)))) { in diRead() 588 s64 blkno; in diWrite() local 618 blkno = INOPBLK(&(jfs_ip->ixpxd), ino, sbi->l2nbperpage); in diWrite() 621 pageno = blkno >> sbi->l2nbperpage; in diWrite() 623 if ((block_offset = ((u32) blkno & (sbi->nbperpage - 1)))) { in diWrite() 2161 s64 blkno, hint; in diNewExt() local 2261 if ((rc = dbAlloc(ipimap, hint, (s64) imap->im_nbperiext, &blkno))) in diNewExt() [all …]
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_da_btree.c | 211 if (be64_to_cpu(hdr3->blkno) != xfs_buf_daddr(bp)) in xfs_da3_blkinfo_verify() 492 da3->blkno = cpu_to_be64(xfs_buf_daddr(dst)); in xfs_da_buf_copy() 505 xfs_dablk_t blkno, in xfs_da3_node_create() argument 521 error = xfs_da_get_buf(tp, dp, blkno, &bp, whichfork); in xfs_da3_node_create() 533 hdr3->info.blkno = cpu_to_be64(xfs_buf_daddr(bp)); in xfs_da3_node_create() 685 if (be32_to_cpu(node->hdr.info.forw) != addblk->blkno) { in xfs_da3_split() 692 node->hdr.info.back = cpu_to_be32(oldblk->blkno); in xfs_da3_split() 699 if (be32_to_cpu(node->hdr.info.back) != addblk->blkno) { in xfs_da3_split() 706 node->hdr.info.forw = cpu_to_be32(oldblk->blkno); in xfs_da3_split() 736 xfs_dablk_t blkno; in xfs_da3_root_split() local [all …]
|
| H A D | xfs_btree_mem.h | 15 static inline xfs_daddr_t xfbno_to_daddr(xfbno_t blkno) in xfbno_to_daddr() argument 17 return blkno << XFBNO_BBSHIFT; in xfbno_to_daddr()
|
| H A D | xfs_log_recover.h | 126 void xlog_buf_readahead(struct xlog *log, xfs_daddr_t blkno, uint len, 128 bool xlog_is_buffer_cancelled(struct xlog *log, xfs_daddr_t blkno, uint len);
|
| /linux/fs/ocfs2/ |
| H A D | ocfs2_trace.h | 45 TP_PROTO(unsigned long long blkno), 46 TP_ARGS(blkno), 48 __field(unsigned long long, blkno) 51 __entry->blkno = blkno; 53 TP_printk("%llu", __entry->blkno) 438 TP_PROTO(int subtree_root, unsigned long long blkno, 440 TP_ARGS(subtree_root, blkno, depth), 443 __field(unsigned long long, blkno) 448 __entry->blkno = blkno; 452 __entry->blkno, __entry->depth) [all …]
|
| H A D | dir.h | 50 struct inode *inode, u64 blkno, 55 struct inode *inode, u64 blkno, in ocfs2_add_entry() argument 61 inode, blkno, parent_fe_bh, lookup); in ocfs2_add_entry() 74 u64 *blkno, 78 int namelen, u64 *blkno);
|
| H A D | ioctl.c | 279 struct inode *inode_alloc, u64 blkno, in ocfs2_info_scan_inode_alloc() argument 299 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); in ocfs2_info_scan_inode_alloc() 330 u64 blkno = -1; in ocfs2_info_handle_freeinode() local 365 namebuf, len, &blkno); in ocfs2_info_handle_freeinode() 372 status = ocfs2_info_scan_inode_alloc(osb, inode_alloc, blkno, oifi, i); in ocfs2_info_handle_freeinode() 439 u64 blkno; in ocfs2_info_freefrag_scan_chain() local 453 blkno = le64_to_cpu(rec->c_blkno); in ocfs2_info_freefrag_scan_chain() 455 blkno = le64_to_cpu(bg->bg_next_group); in ocfs2_info_freefrag_scan_chain() 465 blkno, &bh); in ocfs2_info_freefrag_scan_chain() 467 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); in ocfs2_info_freefrag_scan_chain() [all …]
|
| H A D | sysfile.c | 129 u64 blkno; in _ocfs2_get_system_file_inode() local 137 namebuf, len, &blkno); in _ocfs2_get_system_file_inode() 142 inode = ocfs2_iget(osb, blkno, OCFS2_FI_FLAG_SYSFILE, type); in _ocfs2_get_system_file_inode()
|
| H A D | resize.c | 47 u64 blkno, gd_blkno, lgd_blkno = le64_to_cpu(gd->bg_blkno); in ocfs2_calc_new_backup_super() local 50 blkno = ocfs2_backup_super_blkno(inode->i_sb, i); in ocfs2_calc_new_backup_super() 51 cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); in ocfs2_calc_new_backup_super() 182 u64 blkno; in update_backups() local 189 blkno = ocfs2_backup_super_blkno(inode->i_sb, i); in update_backups() 190 cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); in update_backups() 194 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &backup); in update_backups() 203 backup_di->i_blkno = cpu_to_le64(blkno); in update_backups()
|
| H A D | move_extents.c | 374 u64 blkno; in ocfs2_find_victim_alloc_group() local 385 ret = ocfs2_lookup_ino_from_name(osb->sys_root_inode, namebuf, len, &blkno); in ocfs2_find_victim_alloc_group() 392 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &ac_bh); in ocfs2_find_victim_alloc_group() 425 blkno = le64_to_cpu(rec->c_blkno); in ocfs2_find_victim_alloc_group() 427 blkno = le64_to_cpu(bg->bg_next_group); in ocfs2_find_victim_alloc_group() 434 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &gd_bh); in ocfs2_find_victim_alloc_group() 446 *vict_bit = (vict_blkno - blkno) >> in ocfs2_find_victim_alloc_group() 450 blkno, le16_to_cpu(bg->bg_bits), in ocfs2_find_victim_alloc_group()
|
| H A D | alloc.c | 71 u64 blkno); 142 u64 blkno); 172 u64 blkno) in ocfs2_dinode_set_last_eb_blk() argument 177 di->i_last_eb_blk = cpu_to_le64(blkno); in ocfs2_dinode_set_last_eb_blk() 260 u64 blkno) in ocfs2_xattr_value_set_last_eb_blk() argument 264 vb->vb_xv->xr_last_eb_blk = cpu_to_le64(blkno); in ocfs2_xattr_value_set_last_eb_blk() 304 u64 blkno) in ocfs2_xattr_tree_set_last_eb_blk() argument 309 xt->xt_last_eb_blk = cpu_to_le64(blkno); in ocfs2_xattr_tree_set_last_eb_blk() 337 u64 blkno) in ocfs2_dx_root_set_last_eb_blk() argument 341 dx_root->dr_last_eb_blk = cpu_to_le64(blkno); in ocfs2_dx_root_set_last_eb_blk() [all …]
|
| H A D | dir.c | 613 u64 blkno = le64_to_cpu(di->i_dx_root); in ocfs2_read_dx_root() local 616 ret = ocfs2_read_block(INODE_CACHE(dir), blkno, &tmp, in ocfs2_read_dx_root() 650 static int ocfs2_read_dx_leaf(struct inode *dir, u64 blkno, in ocfs2_read_dx_leaf() argument 656 ret = ocfs2_read_block(INODE_CACHE(dir), blkno, &tmp, in ocfs2_read_dx_leaf() 886 u64 blkno; in ocfs2_dx_dir_lookup() local 889 ret = ocfs2_dx_dir_lookup_rec(inode, el, name_hash, &cpos, &blkno, in ocfs2_dx_dir_lookup() 899 blkno += ocfs2_clusters_to_blocks(inode->i_sb, clen - 1); in ocfs2_dx_dir_lookup() 902 blkno += ocfs2_clusters_to_blocks(inode->i_sb, in ocfs2_dx_dir_lookup() 912 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup() 915 *ret_phys_blkno = blkno; in ocfs2_dx_dir_lookup() [all …]
|
| H A D | xattr.c | 273 u64 blkno, u32 cpos, u32 len, void *para); 283 u64 blkno, 1140 u64 blkno; in ocfs2_xattr_get_value_outside() local 1160 blkno = ocfs2_clusters_to_blocks(inode->i_sb, p_cluster); in ocfs2_xattr_get_value_outside() 1162 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in ocfs2_xattr_get_value_outside() 1163 ret = ocfs2_read_block(INODE_CACHE(inode), blkno, in ocfs2_xattr_get_value_outside() 1391 u64 blkno; in __ocfs2_xattr_set_value_outside() local 1409 blkno = ocfs2_clusters_to_blocks(inode->i_sb, p_cluster); in __ocfs2_xattr_set_value_outside() 1411 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in __ocfs2_xattr_set_value_outside() 1412 ret = ocfs2_read_block(INODE_CACHE(inode), blkno, in __ocfs2_xattr_set_value_outside() [all …]
|
| H A D | buffer_head_io.c | 406 sector_t blkno) in ocfs2_check_super_or_backup() argument 411 if (blkno == OCFS2_SUPER_BLOCK_BLKNO) in ocfs2_check_super_or_backup() 416 if (backup_blkno == blkno) in ocfs2_check_super_or_backup()
|
| /linux/fs/xfs/scrub/ |
| H A D | dabtree.c | 57 ds->state->path.blk[level].blkno), in xchk_da_process_error() 79 ds->state->path.blk[level].blkno), in xchk_da_set_corrupt() 94 ds->state->path.blk[level].blkno), in xchk_da_set_preen() 150 xfs_dablk_t blkno) in xchk_da_btree_ptr_ok() argument 152 if (blkno < ds->lowest || (ds->highest != 0 && blkno >= ds->highest)) { in xchk_da_btree_ptr_ok() 275 if (altpath->blk[level].blkno != sibling) in xchk_da_btree_block_check_sibling() 333 xfs_dablk_t blkno) in xchk_da_btree_block() argument 357 blk->blkno = blkno; in xchk_da_btree_block() 358 if (!xchk_da_btree_ptr_ok(ds, level, blkno)) in xchk_da_btree_block() 362 error = xfs_da_read_buf(dargs->trans, dargs->dp, blk->blkno, in xchk_da_btree_block() [all …]
|
| H A D | attr.c | 196 xchk_fblock_set_corrupt(sc, XFS_ATTR_FORK, args.blkno); in xchk_xattr_actor() 208 xchk_fblock_set_corrupt(sc, XFS_ATTR_FORK, args.blkno); in xchk_xattr_actor() 215 xchk_fblock_set_corrupt(sc, XFS_ATTR_FORK, args.blkno); in xchk_xattr_actor() 250 if (!xchk_fblock_process_error(sc, XFS_ATTR_FORK, args.blkno, in xchk_xattr_actor() 254 xchk_fblock_set_corrupt(sc, XFS_ATTR_FORK, args.blkno); in xchk_xattr_actor() 378 if (*last_checked == blk->blkno) in xchk_xattr_block() 381 *last_checked = blk->blkno; in xchk_xattr_block() 407 if (blk->blkno == 0) in xchk_xattr_block()
|
| /linux/fs/xfs/ |
| H A D | xfs_buf.h | 136 #define DEFINE_SINGLE_BUF_MAP(map, blkno, numblk) \ argument 137 struct xfs_buf_map (map) = { .bm_bn = (blkno), .bm_len = (numblk) }; 228 xfs_daddr_t blkno, in xfs_buf_incore() argument 233 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_incore() 241 xfs_daddr_t blkno, in xfs_buf_get() argument 245 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_get() 253 xfs_daddr_t blkno, in xfs_buf_read() argument 259 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_read() 268 xfs_daddr_t blkno, in xfs_buf_readahead() argument 272 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_readahead()
|
| H A D | xfs_buf_item_recover.c | 37 #define XLOG_BUF_CANCEL_BUCKET(log, blkno) \ argument 38 ((log)->l_buf_cancel_table + ((uint64_t)blkno % XLOG_BC_TABLE_SIZE)) 54 xfs_daddr_t blkno, in xlog_find_buffer_cancelled() argument 63 bucket = XLOG_BUF_CANCEL_BUCKET(log, blkno); in xlog_find_buffer_cancelled() 65 if (bcp->bc_blkno == blkno && bcp->bc_len == len) in xlog_find_buffer_cancelled() 75 xfs_daddr_t blkno, in xlog_add_buffer_cancelled() argument 87 bcp = xlog_find_buffer_cancelled(log, blkno, len); in xlog_add_buffer_cancelled() 94 bcp->bc_blkno = blkno; in xlog_add_buffer_cancelled() 97 list_add_tail(&bcp->bc_list, XLOG_BUF_CANCEL_BUCKET(log, blkno)); in xlog_add_buffer_cancelled() 107 xfs_daddr_t blkno, in xlog_is_buffer_cancelled() argument [all …]
|
| H A D | xfs_filestream.c | 230 ap->blkno = xfs_agbno_to_fsb(pag, 0); in xfs_filestream_lookup_association() 288 ap->blkno = XFS_AGB_TO_FSB(args->mp, agno, 0); in xfs_filestream_create_association() 365 ap->blkno = xfs_agbno_to_fsb(args->pag, 0); in xfs_filestream_select_ag()
|
| /linux/fs/gfs2/ |
| H A D | lops.c | 262 static struct bio *gfs2_log_alloc_bio(struct gfs2_sbd *sdp, u64 blkno, in gfs2_log_alloc_bio() argument 268 bio->bi_iter.bi_sector = blkno << sdp->sd_fsb2bb_shift; in gfs2_log_alloc_bio() 292 static struct bio *gfs2_log_get_bio(struct gfs2_sbd *sdp, u64 blkno, in gfs2_log_get_bio() argument 303 if (blkno == nblk && !flush) in gfs2_log_get_bio() 308 *biop = gfs2_log_alloc_bio(sdp, blkno, end_io, opf); in gfs2_log_get_bio() 329 u64 blkno, blk_opf_t opf) in gfs2_log_write() argument 334 bio = gfs2_log_get_bio(sdp, blkno, &jd->jd_log_bio, opf, in gfs2_log_write() 338 bio = gfs2_log_get_bio(sdp, blkno, &jd->jd_log_bio, in gfs2_log_write() 754 u64 blkno) in obsolete_rgrp() argument 760 rgd = gfs2_blk2rgrpd(sdp, blkno, false); in obsolete_rgrp() [all …]
|
| H A D | recovery.c | 55 int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) in gfs2_revoke_add() argument 61 if (iter->rr_blkno == blkno) { in gfs2_revoke_add() 76 rr->rr_blkno = blkno; in gfs2_revoke_add() 83 int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) in gfs2_revoke_check() argument 89 if (iter->rr_blkno == blkno) { in gfs2_revoke_check() 119 unsigned int blkno, struct gfs2_log_header_host *head) in __get_log_header() argument 126 (blkno && be32_to_cpu(lh->lh_blkno) != blkno)) in __get_log_header()
|
| /linux/drivers/md/ |
| H A D | dm-verity-target.c | 424 sector_t blkno = block->blkno; in verity_handle_data_hash_mismatch() local 434 if (verity_recheck(v, io, want_digest, blkno, data) == 0) { in verity_handle_data_hash_mismatch() 436 set_bit(blkno, v->validated_blocks); in verity_handle_data_hash_mismatch() 440 blkno, data) == 0) in verity_handle_data_hash_mismatch() 445 if (verity_handle_err(v, DM_VERITY_BLOCK_TYPE_DATA, blkno)) { in verity_handle_data_hash_mismatch() 447 dm_audit_log_bio(DM_MSG_PREFIX, "verify-data", bio, blkno, 0); in verity_handle_data_hash_mismatch() 494 set_bit(block->blkno, v->validated_blocks); in verity_verify_pending_blocks() 533 sector_t blkno = io->block + b; in verity_verify_io() local 540 likely(test_bit(blkno, v->validated_blocks))) in verity_verify_io() 545 r = verity_hash_for_block(v, io, blkno, block->want_digest, in verity_verify_io() [all …]
|