/linux-4.1.27/fs/ocfs2/ |
D | export.c | 55 u64 blkno = handle->ih_blkno; in ocfs2_get_dentry() local 59 trace_ocfs2_get_dentry_begin(sb, handle, (unsigned long long)blkno); in ocfs2_get_dentry() 61 if (blkno == 0) { in ocfs2_get_dentry() 66 inode = ocfs2_ilookup(sb, blkno); in ocfs2_get_dentry() 84 status = ocfs2_test_inode_bit(osb, blkno, &set); in ocfs2_get_dentry() 105 inode = ocfs2_iget(osb, blkno, 0, 0); in ocfs2_get_dentry() 113 trace_ocfs2_get_dentry_stale((unsigned long long)blkno, in ocfs2_get_dentry() 129 trace_ocfs2_get_dentry_generation((unsigned long long)blkno, in ocfs2_get_dentry() 148 u64 blkno; in ocfs2_get_parent() local 163 status = ocfs2_lookup_ino_from_name(dir, "..", 2, &blkno); in ocfs2_get_parent() [all …]
|
D | dir.h | 66 struct inode *inode, u64 blkno, 71 struct inode *inode, u64 blkno, in ocfs2_add_entry() argument 77 inode, blkno, parent_fe_bh, lookup); in ocfs2_add_entry() 90 u64 *blkno, 94 int namelen, u64 *blkno);
|
D | ocfs2_trace.h | 44 TP_PROTO(unsigned long long blkno), 45 TP_ARGS(blkno), 47 __field(unsigned long long, blkno) 50 __entry->blkno = blkno; 52 TP_printk("%llu", __entry->blkno) 437 TP_PROTO(int subtree_root, unsigned long long blkno, 439 TP_ARGS(subtree_root, blkno, depth), 442 __field(unsigned long long, blkno) 447 __entry->blkno = blkno; 451 __entry->blkno, __entry->depth) [all …]
|
D | ioctl.c | 280 struct inode *inode_alloc, u64 blkno, in ocfs2_info_scan_inode_alloc() argument 300 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); in ocfs2_info_scan_inode_alloc() 331 u64 blkno = -1; in ocfs2_info_handle_freeinode() local 368 &blkno); in ocfs2_info_handle_freeinode() 375 status = ocfs2_info_scan_inode_alloc(osb, inode_alloc, blkno, oifi, i); in ocfs2_info_handle_freeinode() 442 u64 blkno; in ocfs2_info_freefrag_scan_chain() local 456 blkno = le64_to_cpu(rec->c_blkno); in ocfs2_info_freefrag_scan_chain() 458 blkno = le64_to_cpu(bg->bg_next_group); in ocfs2_info_freefrag_scan_chain() 468 blkno, &bh); in ocfs2_info_freefrag_scan_chain() 470 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); in ocfs2_info_freefrag_scan_chain() [all …]
|
D | sysfile.c | 144 u64 blkno; in _ocfs2_get_system_file_inode() local 152 strlen(namebuf), &blkno); in _ocfs2_get_system_file_inode() 157 inode = ocfs2_iget(osb, blkno, OCFS2_FI_FLAG_SYSFILE, type); in _ocfs2_get_system_file_inode()
|
D | resize.c | 62 u64 blkno, gd_blkno, lgd_blkno = le64_to_cpu(gd->bg_blkno); in ocfs2_calc_new_backup_super() local 65 blkno = ocfs2_backup_super_blkno(inode->i_sb, i); in ocfs2_calc_new_backup_super() 66 cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); in ocfs2_calc_new_backup_super() 181 u64 blkno; in update_backups() local 188 blkno = ocfs2_backup_super_blkno(inode->i_sb, i); in update_backups() 189 cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); in update_backups() 193 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &backup); in update_backups() 202 backup_di->i_blkno = cpu_to_le64(blkno); in update_backups()
|
D | buffer_head_io.c | 370 sector_t blkno) in ocfs2_check_super_or_backup() argument 375 if (blkno == OCFS2_SUPER_BLOCK_BLKNO) in ocfs2_check_super_or_backup() 380 if (backup_blkno == blkno) in ocfs2_check_super_or_backup()
|
D | move_extents.c | 372 u64 blkno; in ocfs2_find_victim_alloc_group() local 384 strlen(namebuf), &blkno); in ocfs2_find_victim_alloc_group() 390 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &ac_bh); in ocfs2_find_victim_alloc_group() 423 blkno = le64_to_cpu(rec->c_blkno); in ocfs2_find_victim_alloc_group() 425 blkno = le64_to_cpu(bg->bg_next_group); in ocfs2_find_victim_alloc_group() 432 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &gd_bh); in ocfs2_find_victim_alloc_group() 444 *vict_bit = (vict_blkno - blkno) >> in ocfs2_find_victim_alloc_group() 448 blkno, le16_to_cpu(bg->bg_bits), in ocfs2_find_victim_alloc_group()
|
D | dir.c | 621 u64 blkno = le64_to_cpu(di->i_dx_root); in ocfs2_read_dx_root() local 624 ret = ocfs2_read_block(INODE_CACHE(dir), blkno, &tmp, in ocfs2_read_dx_root() 659 static int ocfs2_read_dx_leaf(struct inode *dir, u64 blkno, in ocfs2_read_dx_leaf() argument 665 ret = ocfs2_read_block(INODE_CACHE(dir), blkno, &tmp, in ocfs2_read_dx_leaf() 880 u64 uninitialized_var(blkno); in ocfs2_dx_dir_lookup() 883 ret = ocfs2_dx_dir_lookup_rec(inode, el, name_hash, &cpos, &blkno, in ocfs2_dx_dir_lookup() 893 blkno += ocfs2_clusters_to_blocks(inode->i_sb, clen - 1); in ocfs2_dx_dir_lookup() 896 blkno += ocfs2_clusters_to_blocks(inode->i_sb, in ocfs2_dx_dir_lookup() 906 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup() 909 *ret_phys_blkno = blkno; in ocfs2_dx_dir_lookup() [all …]
|
D | alloc.c | 85 u64 blkno); 156 u64 blkno); 179 u64 blkno) in ocfs2_dinode_set_last_eb_blk() argument 184 di->i_last_eb_blk = cpu_to_le64(blkno); in ocfs2_dinode_set_last_eb_blk() 267 u64 blkno) in ocfs2_xattr_value_set_last_eb_blk() argument 271 vb->vb_xv->xr_last_eb_blk = cpu_to_le64(blkno); in ocfs2_xattr_value_set_last_eb_blk() 311 u64 blkno) in ocfs2_xattr_tree_set_last_eb_blk() argument 316 xt->xt_last_eb_blk = cpu_to_le64(blkno); in ocfs2_xattr_tree_set_last_eb_blk() 344 u64 blkno) in ocfs2_dx_root_set_last_eb_blk() argument 348 dx_root->dr_last_eb_blk = cpu_to_le64(blkno); in ocfs2_dx_root_set_last_eb_blk() [all …]
|
D | xattr.c | 283 u64 blkno, u32 cpos, u32 len, void *para); 293 u64 blkno, 1097 u64 blkno; in ocfs2_xattr_get_value_outside() local 1117 blkno = ocfs2_clusters_to_blocks(inode->i_sb, p_cluster); in ocfs2_xattr_get_value_outside() 1119 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in ocfs2_xattr_get_value_outside() 1120 ret = ocfs2_read_block(INODE_CACHE(inode), blkno, in ocfs2_xattr_get_value_outside() 1347 u64 blkno; in __ocfs2_xattr_set_value_outside() local 1365 blkno = ocfs2_clusters_to_blocks(inode->i_sb, p_cluster); in __ocfs2_xattr_set_value_outside() 1367 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in __ocfs2_xattr_set_value_outside() 1368 ret = ocfs2_read_block(INODE_CACHE(inode), blkno, in __ocfs2_xattr_set_value_outside() [all …]
|
D | slot_map.c | 358 u64 blkno; in ocfs2_map_slot_buffers() local 395 &blkno, NULL, NULL); in ocfs2_map_slot_buffers() 401 trace_ocfs2_map_slot_buffers_block((unsigned long long)blkno, i); in ocfs2_map_slot_buffers() 404 status = ocfs2_read_blocks(INODE_CACHE(si->si_inode), blkno, in ocfs2_map_slot_buffers()
|
D | inode.c | 116 struct inode *ocfs2_ilookup(struct super_block *sb, u64 blkno) in ocfs2_ilookup() argument 120 args.fi_blkno = blkno; in ocfs2_ilookup() 122 args.fi_ino = ino_from_blkno(sb, blkno); in ocfs2_ilookup() 125 return ilookup5(sb, blkno, ocfs2_find_actor, &args); in ocfs2_ilookup() 127 struct inode *ocfs2_iget(struct ocfs2_super *osb, u64 blkno, unsigned flags, in ocfs2_iget() argument 135 trace_ocfs2_iget_begin((unsigned long long)blkno, flags, in ocfs2_iget() 141 if (blkno == 0) { in ocfs2_iget() 147 args.fi_blkno = blkno; in ocfs2_iget() 149 args.fi_ino = ino_from_blkno(sb, blkno); in ocfs2_iget()
|
D | namei.c | 80 u64 blkno, 116 u64 blkno; in ocfs2_lookup() local 139 dentry->d_name.len, &blkno); in ocfs2_lookup() 143 inode = ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0); in ocfs2_lookup() 866 u64 blkno; in ocfs2_unlink() local 896 dentry->d_name.len, &blkno, dir, in ocfs2_unlink() 904 if (OCFS2_I(inode)->ip_blkno != blkno) { in ocfs2_unlink() 909 (unsigned long long)blkno, in ocfs2_unlink() 2011 static int ocfs2_blkno_stringify(u64 blkno, char *name) in ocfs2_blkno_stringify() argument 2016 (long long)blkno); in ocfs2_blkno_stringify() [all …]
|
D | alloc.h | 211 u64 blkno, unsigned int bit); 213 int type, int slot, u64 suballoc, u64 blkno,
|
D | suballoc.c | 2751 static int ocfs2_get_suballoc_slot_bit(struct ocfs2_super *osb, u64 blkno, in ocfs2_get_suballoc_slot_bit() argument 2759 trace_ocfs2_get_suballoc_slot_bit((unsigned long long)blkno); in ocfs2_get_suballoc_slot_bit() 2762 status = ocfs2_read_blocks_sync(osb, blkno, 1, &inode_bh); in ocfs2_get_suballoc_slot_bit() 2765 (unsigned long long)blkno, status); in ocfs2_get_suballoc_slot_bit() 2772 (unsigned long long)blkno); in ocfs2_get_suballoc_slot_bit() 2780 (unsigned long long)blkno, in ocfs2_get_suballoc_slot_bit() 2811 u64 group_blkno, u64 blkno, in ocfs2_test_suballoc_bit() argument 2820 trace_ocfs2_test_suballoc_bit((unsigned long long)blkno, in ocfs2_test_suballoc_bit() 2833 ocfs2_which_suballoc_group(blkno, bit); in ocfs2_test_suballoc_bit() 2866 int ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res) in ocfs2_test_inode_bit() argument [all …]
|
D | refcounttree.c | 203 ocfs2_find_refcount_tree(struct ocfs2_super *osb, u64 blkno) in ocfs2_find_refcount_tree() argument 211 if (blkno < tree->rf_blkno) in ocfs2_find_refcount_tree() 213 else if (blkno > tree->rf_blkno) in ocfs2_find_refcount_tree() 974 u64 blkno; in ocfs2_get_refcount_cpos_end() local 1043 blkno = left_path->p_node[subtree_root+1].bh->b_blocknr; in ocfs2_get_refcount_cpos_end() 1045 if (le64_to_cpu(tmp_el->l_recs[i].e_blkno) == blkno) { in ocfs2_get_refcount_cpos_end() 1295 u64 suballoc_loc, blkno; in ocfs2_expand_inline_ref_root() local 1311 &blkno); in ocfs2_expand_inline_ref_root() 1317 new_bh = sb_getblk(sb, blkno); in ocfs2_expand_inline_ref_root() 1343 new_rb->rf_blkno = cpu_to_le64(blkno); in ocfs2_expand_inline_ref_root() [all …]
|
D | localalloc.c | 972 u64 blkno; in ocfs2_sync_local_to_main() local 1003 blkno = la_start_blk + in ocfs2_sync_local_to_main() 1010 (unsigned long long)blkno); in ocfs2_sync_local_to_main() 1014 main_bm_bh, blkno, in ocfs2_sync_local_to_main()
|
D | suballoc.h | 218 int ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res);
|
D | ocfs2.h | 706 u64 blkno) in ino_from_blkno() argument 708 return (unsigned long)(blkno & (u64)ULONG_MAX); in ino_from_blkno()
|
D | file.c | 1621 u64 *blkno, int *done) in ocfs2_calc_trunc_pos() argument 1639 *blkno = le64_to_cpu(rec->e_blkno); in ocfs2_calc_trunc_pos() 1654 *blkno = le64_to_cpu(rec->e_blkno) + in ocfs2_calc_trunc_pos() 1687 u64 blkno, refcount_loc = le64_to_cpu(di->i_refcount_loc); in ocfs2_remove_inode_range() local 1804 &trunc_len, &trunc_end, &blkno, &done); in ocfs2_remove_inode_range() 1809 phys_cpos = ocfs2_blocks_to_clusters(inode->i_sb, blkno); in ocfs2_remove_inode_range()
|
D | aops.c | 97 u64 blkno = le64_to_cpu(fe->id2.i_list.l_recs[0].e_blkno) + in ocfs2_symlink_get_block() local 99 buffer_cache_bh = sb_getblk(osb->sb, blkno); in ocfs2_symlink_get_block()
|
D | dlmglue.c | 394 u64 blkno, in ocfs2_build_lock_name() argument 404 (long long)blkno, generation); in ocfs2_build_lock_name()
|
/linux-4.1.27/fs/jfs/ |
D | jfs_dmap.c | 77 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno, 83 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, 86 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno, 88 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno, 91 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, 98 static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno, 100 static int dbExtend(struct inode *ip, s64 blkno, s64 nblocks, s64 addnblocks); 102 static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno); 104 static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno, 106 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, [all …]
|
D | jfs_discard.c | 45 void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks) in jfs_issue_discard() argument 50 r = sb_issue_discard(sb, blkno, nblocks, GFP_NOFS, 0); in jfs_issue_discard() 54 sb, (unsigned long long)blkno, in jfs_issue_discard() 60 sb, (unsigned long long)blkno, in jfs_issue_discard()
|
D | jfs_extent.c | 459 s64 blkno = offsetXAD(xp) >> ip->i_blkbits; in extFill() local 467 if ((rc = extAlloc(ip, nbperpage, blkno, xp, false))) in extFill() 509 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument 547 *blkno = daddr; in extBalloc() 603 s64 blkno, s64 nblks, s64 * newnblks, s64 * newblkno) in extBrealloc() argument 608 if ((rc = dbExtend(ip, blkno, nblks, *newnblks - nblks)) == 0) { in extBrealloc() 609 *newblkno = blkno; in extBrealloc() 619 return (extBalloc(ip, blkno, newnblks, newblkno)); in extBrealloc()
|
D | xattr.c | 223 s64 blkno; in ea_write() local 247 rc = dbAlloc(ip, INOHINT(ip), nblocks, &blkno); in ea_write() 271 if (!(mp = get_metapage(ip, blkno + i, bytes_to_write, 1))) { in ea_write() 305 DXDaddress(ea, blkno); in ea_write() 317 dbFree(ip, blkno, nblocks); in ea_write() 372 s64 blkno; in ea_read() local 394 blkno = addressDXD(&ji->ea) << sbi->l2nbperpage; in ea_read() 411 if (!(mp = read_metapage(ip, blkno + i, bytes_to_read, 1))) in ea_read() 448 s64 blkno; in ea_get() local 528 &blkno); in ea_get() [all …]
|
D | jfs_dmap.h | 297 extern int dbFree(struct inode *ipbmap, s64 blkno, s64 nblocks); 300 int free, s64 blkno, s64 nblocks, struct tblock * tblk); 307 s64 blkno, s64 nblocks, s64 addnblocks, s64 * results); 310 extern int dbAllocBottomUp(struct inode *ip, s64 blkno, s64 nblocks); 311 extern int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks);
|
D | jfs_imap.c | 312 s64 blkno, agstart; in diRead() local 352 blkno = INOPBLK(&iagp->inoext[extno], ino, sbi->l2nbperpage); in diRead() 360 pageno = blkno >> sbi->l2nbperpage; in diRead() 362 if ((block_offset = ((u32) blkno & (sbi->nbperpage - 1)))) { in diRead() 606 s64 blkno; in diWrite() local 636 blkno = INOPBLK(&(jfs_ip->ixpxd), ino, sbi->l2nbperpage); in diWrite() 639 pageno = blkno >> sbi->l2nbperpage; in diWrite() 641 if ((block_offset = ((u32) blkno & (sbi->nbperpage - 1)))) { in diWrite() 2176 s64 blkno, hint; in diNewExt() local 2273 if ((rc = dbAlloc(ipimap, hint, (s64) imap->im_nbperiext, &blkno))) in diNewExt() [all …]
|
D | jfs_discard.h | 23 extern void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks);
|
D | jfs_dtree.c | 208 static struct metapage *read_index_page(struct inode *inode, s64 blkno) in read_index_page() argument 215 rc = xtLookup(inode, blkno, 1, &xflag, &xaddr, &xlen, 1); in read_index_page() 227 static struct metapage *get_index_page(struct inode *inode, s64 blkno) in get_index_page() argument 234 rc = xtLookup(inode, blkno, 1, &xflag, &xaddr, &xlen, 1); in get_index_page() 253 s64 blkno; in find_index() local 281 blkno = ((offset + 1) >> L2PSIZE) << in find_index() 284 if (*mp && (*lblock != blkno)) { in find_index() 289 *lblock = blkno; in find_index() 290 *mp = read_index_page(ip, blkno); in find_index() 339 u64 blkno; in add_index() local [all …]
|
/linux-4.1.27/fs/xfs/libxfs/ |
D | xfs_da_btree.c | 151 if (be64_to_cpu(hdr3->info.blkno) != bp->b_bn) in xfs_da3_node_verify() 298 xfs_dablk_t blkno, in xfs_da3_node_create() argument 314 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, whichfork); in xfs_da3_node_create() 325 hdr3->info.blkno = cpu_to_be64(bp->b_bn); in xfs_da3_node_create() 466 if (be32_to_cpu(node->hdr.info.forw) == addblk->blkno) { in xfs_da3_split() 473 node->hdr.info.back = cpu_to_be32(oldblk->blkno); in xfs_da3_split() 480 if (be32_to_cpu(node->hdr.info.back) == addblk->blkno) { in xfs_da3_split() 487 node->hdr.info.forw = cpu_to_be32(oldblk->blkno); in xfs_da3_split() 516 xfs_dablk_t blkno; in xfs_da3_root_split() local 528 error = xfs_da_grow_inode(args, &blkno); in xfs_da3_root_split() [all …]
|
D | xfs_attr_leaf.c | 267 if (be64_to_cpu(hdr3->info.blkno) != bp->b_bn) in xfs_attr3_leaf_verify() 743 xfs_dablk_t blkno; in xfs_attr_shortform_to_leaf() local 762 error = xfs_da_grow_inode(args, &blkno); in xfs_attr_shortform_to_leaf() 775 ASSERT(blkno == 0); in xfs_attr_shortform_to_leaf() 776 error = xfs_attr3_leaf_create(args, blkno, &bp); in xfs_attr_shortform_to_leaf() 966 xfs_dablk_t blkno; in xfs_attr3_leaf_to_node() local 971 error = xfs_da_grow_inode(args, &blkno); in xfs_attr3_leaf_to_node() 978 error = xfs_da_get_buf(args->trans, dp, blkno, -1, &bp2, XFS_ATTR_FORK); in xfs_attr3_leaf_to_node() 988 hdr3->blkno = cpu_to_be64(bp2->b_bn); in xfs_attr3_leaf_to_node() 1008 btree[0].before = cpu_to_be32(blkno); in xfs_attr3_leaf_to_node() [all …]
|
D | xfs_dir2_node.c | 73 if (be64_to_cpu(leaf3->info.blkno) != bp->b_bn) in xfs_dir3_leafn_check() 98 if (be64_to_cpu(hdr3->blkno) != bp->b_bn) in xfs_dir3_free_verify() 227 hdr3->hdr.blkno = cpu_to_be64(bp->b_bn); in xfs_dir3_free_get_buf() 446 args->blkno, args->index)); in xfs_dir2_leafn_add() 552 curfdb = state->extrablk.blkno; in xfs_dir2_leafn_lookup_for_addname() 640 state->extrablk.blkno = curfdb; in xfs_dir2_leafn_lookup_for_addname() 703 curdb = state->extrablk.blkno; in xfs_dir2_leafn_lookup_for_entry() 733 curdb != state->extrablk.blkno)) in xfs_dir2_leafn_lookup_for_entry() 740 newdb == state->extrablk.blkno) { in xfs_dir2_leafn_lookup_for_entry() 769 curdb != state->extrablk.blkno) in xfs_dir2_leafn_lookup_for_entry() [all …]
|
D | xfs_da_btree.h | 77 xfs_dablk_t blkno; /* blkno of attr leaf of interest */ member 116 xfs_dablk_t blkno; /* filesystem blkno of buffer */ member 165 int xfs_da3_node_create(struct xfs_da_args *args, xfs_dablk_t blkno,
|
D | xfs_attr.c | 582 args->blkno = 0; in xfs_attr_leaf_addname() 583 error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp); in xfs_attr_leaf_addname() 605 args->blkno2 = args->blkno; /* set 2nd entry info*/ in xfs_attr_leaf_addname() 707 args->blkno = args->blkno2; in xfs_attr_leaf_addname() 721 error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, in xfs_attr_leaf_addname() 789 args->blkno = 0; in xfs_attr_leaf_removename() 790 error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp); in xfs_attr_leaf_removename() 844 args->blkno = 0; in xfs_attr_leaf_get() 845 error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp); in xfs_attr_leaf_get() 916 args->blkno2 = args->blkno; /* set 2nd entry info*/ in xfs_attr_node_addname() [all …]
|
D | xfs_da_format.h | 61 __be64 blkno; /* first block of the buffer */ member 358 __be64 blkno; /* first block of the buffer */ member
|
D | xfs_dir2_block.c | 72 if (be64_to_cpu(hdr3->blkno) != bp->b_bn) in xfs_dir3_block_verify() 158 hdr3->blkno = cpu_to_be64(bp->b_bn); in xfs_dir3_block_init() 1046 xfs_dir2_db_t blkno; /* dir-relative block # (0) */ in xfs_dir2_sf_to_block() local 1107 error = xfs_dir2_grow_inode(args, XFS_DIR2_DATA_SPACE, &blkno); in xfs_dir2_sf_to_block() 1115 error = xfs_dir3_data_init(args, blkno, &bp); in xfs_dir2_sf_to_block()
|
D | xfs_dir2_leaf.c | 70 if (be64_to_cpu(leaf3->info.blkno) != bp->b_bn) in xfs_dir3_leaf1_check() 165 if (be64_to_cpu(leaf3->info.blkno) != bp->b_bn) in xfs_dir3_leaf_verify() 311 leaf3->info.blkno = cpu_to_be64(bp->b_bn); in xfs_dir3_leaf_init() 375 xfs_dablk_t blkno; /* leaf block's bno */ in xfs_dir2_block_to_leaf() local 401 if ((error = xfs_da_grow_inode(args, &blkno))) { in xfs_dir2_block_to_leaf() 404 ldb = xfs_dir2_da_to_db(args->geo, blkno); in xfs_dir2_block_to_leaf()
|
D | xfs_dir2_data.c | 225 if (be64_to_cpu(hdr3->blkno) != bp->b_bn) in xfs_dir3_data_verify() 570 xfs_dir2_db_t blkno, /* logical dir block number */ in xfs_dir3_data_init() argument 590 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, blkno), in xfs_dir3_data_init() 606 hdr3->blkno = cpu_to_be64(bp->b_bn); in xfs_dir3_data_init()
|
D | xfs_dir2_priv.h | 58 extern int xfs_dir3_data_init(struct xfs_da_args *args, xfs_dir2_db_t blkno,
|
D | xfs_bmap.h | 43 xfs_fsblock_t blkno; /* starting block of new extent */ member
|
D | xfs_bmap.c | 3381 ap->blkno = ap->prev.br_startblock + ap->prev.br_blockcount; in xfs_bmap_adjacent() 3388 ISVALID(ap->blkno + adjust, ap->prev.br_startblock)) in xfs_bmap_adjacent() 3389 ap->blkno += adjust; in xfs_bmap_adjacent() 3491 ap->blkno = prevdiff <= gotdiff ? prevbno : gotbno; in xfs_bmap_adjacent() 3493 ap->blkno = prevbno; in xfs_bmap_adjacent() 3495 ap->blkno = gotbno; in xfs_bmap_adjacent() 3635 ap->blkno = args->fsbno = XFS_AGB_TO_FSB(mp, ag, 0); in xfs_bmap_btalloc_filestreams() 3684 ap->blkno = XFS_AGB_TO_FSB(mp, ag, 0); in xfs_bmap_btalloc() 3686 ap->blkno = XFS_INO_TO_FSB(mp, ap->ip->i_ino); in xfs_bmap_btalloc() 3689 ap->blkno = *ap->firstblock; in xfs_bmap_btalloc() [all …]
|
D | xfs_btree.h | 378 xfs_daddr_t blkno,
|
D | xfs_btree.c | 986 xfs_daddr_t blkno, in xfs_btree_init_block_int() argument 1001 buf->bb_u.l.bb_blkno = cpu_to_be64(blkno); in xfs_btree_init_block_int() 1014 buf->bb_u.s.bb_blkno = cpu_to_be64(blkno); in xfs_btree_init_block_int()
|
/linux-4.1.27/fs/xfs/ |
D | xfs_buf.h | 130 #define DEFINE_SINGLE_BUF_MAP(map, blkno, numblk) \ argument 131 struct xfs_buf_map (map) = { .bm_bn = (blkno), .bm_len = (numblk) }; 199 xfs_daddr_t blkno, in xfs_incore() argument 203 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_incore() 214 xfs_daddr_t blkno, in xfs_buf_alloc() argument 218 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_alloc() 236 xfs_daddr_t blkno, in xfs_buf_get() argument 240 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_get() 247 xfs_daddr_t blkno, in xfs_buf_read() argument 252 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_read() [all …]
|
D | xfs_attr_list.c | 60 !((cursor)->blkno) && !((cursor)->offset)) 175 cursor->blkno = 0; in xfs_attr_shortform_list() 243 if (cursor->blkno > 0) { in xfs_attr_node_list() 244 error = xfs_da3_node_read(NULL, dp, cursor->blkno, -1, in xfs_attr_node_list() 291 cursor->blkno = 0; in xfs_attr_node_list() 296 cursor->blkno, -1, &bp, in xfs_attr_node_list() 320 cursor->blkno = be32_to_cpu(btree->before); in xfs_attr_node_list() 350 cursor->blkno = leafhdr.forw; in xfs_attr_node_list() 352 error = xfs_attr3_leaf_read(NULL, dp, cursor->blkno, -1, &bp); in xfs_attr_node_list() 497 context->cursor->blkno = 0; in xfs_attr_leaf_list() [all …]
|
D | xfs_attr_inactive.c | 50 xfs_dablk_t blkno, in xfs_attr3_leaf_freextent() argument 66 tblkno = blkno; in xfs_attr3_leaf_freextent() 332 xfs_daddr_t blkno; in xfs_attr3_root_inactive() local 344 blkno = bp->b_bn; in xfs_attr3_root_inactive() 371 error = xfs_da_get_buf(*trans, dp, 0, blkno, &bp, XFS_ATTR_FORK); in xfs_attr3_root_inactive()
|
D | xfs_trans.h | 170 xfs_daddr_t blkno, in xfs_trans_get_buf() argument 174 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_trans_get_buf() 191 xfs_daddr_t blkno, in xfs_trans_read_buf() argument 197 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_trans_read_buf()
|
D | xfs_pnfs.c | 91 iomap->blkno = IOMAP_NULL_BLOCK; in xfs_bmbt_to_iomap() 94 iomap->blkno = IOMAP_NULL_BLOCK; in xfs_bmbt_to_iomap() 97 iomap->blkno = in xfs_bmbt_to_iomap()
|
D | xfs_bmap_util.c | 204 ap->blkno = rtx * mp->m_sb.sb_rextsize; in xfs_bmap_rtalloc() 206 ap->blkno = 0; in xfs_bmap_rtalloc() 214 atype = ap->blkno == 0 ? XFS_ALLOCTYPE_ANY_AG : XFS_ALLOCTYPE_NEAR_BNO; in xfs_bmap_rtalloc() 215 do_div(ap->blkno, mp->m_sb.sb_rextsize); in xfs_bmap_rtalloc() 216 rtb = ap->blkno; in xfs_bmap_rtalloc() 218 if ((error = xfs_rtallocate_extent(ap->tp, ap->blkno, 1, ap->length, in xfs_bmap_rtalloc() 222 (error = xfs_rtallocate_extent(ap->tp, ap->blkno, 1, in xfs_bmap_rtalloc() 226 ap->blkno = rtb; in xfs_bmap_rtalloc() 227 if (ap->blkno != NULLFSBLOCK) { in xfs_bmap_rtalloc() 228 ap->blkno *= mp->m_sb.sb_rextsize; in xfs_bmap_rtalloc()
|
D | xfs_log_priv.h | 417 #define XLOG_BUF_CANCEL_BUCKET(log, blkno) \ argument 418 ((log)->l_buf_cancel_table + ((__uint64_t)blkno % XLOG_BC_TABLE_SIZE))
|
D | xfs_attr.h | 102 __u32 blkno; /* block containing entry (suggestion) */ member
|
D | xfs_buf.c | 446 xfs_daddr_t blkno = map[0].bm_bn; in _xfs_buf_find() local 457 ASSERT(!(BBTOB(blkno) & (xfs_off_t)btp->bt_meta_sectormask)); in _xfs_buf_find() 464 if (blkno < 0 || blkno >= eofs) { in _xfs_buf_find() 472 __func__, blkno, eofs); in _xfs_buf_find() 479 xfs_daddr_to_agno(btp->bt_mount, blkno)); in _xfs_buf_find() 490 if (blkno < bp->b_bn) in _xfs_buf_find() 492 else if (blkno > bp->b_bn) in _xfs_buf_find()
|
D | xfs_trace.h | 49 __field(u32, blkno) 62 __entry->blkno = ctx->cursor->blkno; 75 __entry->blkno, 171 __field(u32, blkno) 186 __entry->blkno = ctx->cursor->blkno; 202 __entry->blkno, 1961 __field(__int64_t, blkno) 1969 __entry->blkno = buf_f->blf_blkno; 1978 __entry->blkno, 2009 __field(__int64_t, blkno) [all …]
|
D | xfs_fsops.c | 122 xfs_daddr_t blkno, in xfs_growfs_get_hdr_buf() argument 134 bp->b_bn = blkno; in xfs_growfs_get_hdr_buf() 135 bp->b_maps[0].bm_bn = blkno; in xfs_growfs_get_hdr_buf()
|
D | xfs_log_recover.c | 1626 xfs_daddr_t blkno, in xlog_peek_buffer_cancelled() argument 1639 bucket = XLOG_BUF_CANCEL_BUCKET(log, blkno); in xlog_peek_buffer_cancelled() 1641 if (bcp->bc_blkno == blkno && bcp->bc_len == len) in xlog_peek_buffer_cancelled() 1666 xfs_daddr_t blkno, in xlog_check_buffer_cancelled() argument 1672 bcp = xlog_peek_buffer_cancelled(log, blkno, len, flags); in xlog_check_buffer_cancelled() 4086 xfs_daddr_t blkno) in xlog_valid_rec_header() argument 4110 if (unlikely( blkno > log->l_logBBsize || blkno > INT_MAX )) { in xlog_valid_rec_header()
|
D | xfs_inode.c | 2247 xfs_daddr_t blkno; in xfs_ifree_cluster() local 2260 blkno = XFS_AGB_TO_DADDR(mp, XFS_INO_TO_AGNO(mp, inum), in xfs_ifree_cluster() 2271 bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, blkno, in xfs_ifree_cluster()
|
/linux-4.1.27/fs/gfs2/ |
D | lops.c | 261 static struct bio *gfs2_log_alloc_bio(struct gfs2_sbd *sdp, u64 blkno) in gfs2_log_alloc_bio() argument 276 bio->bi_iter.bi_sector = blkno * (sb->s_blocksize >> 9); in gfs2_log_alloc_bio() 299 static struct bio *gfs2_log_get_bio(struct gfs2_sbd *sdp, u64 blkno) in gfs2_log_get_bio() argument 307 if (blkno == nblk) in gfs2_log_get_bio() 312 return gfs2_log_alloc_bio(sdp, blkno); in gfs2_log_get_bio() 331 u64 blkno = gfs2_log_bmap(sdp); in gfs2_log_write() local 335 bio = gfs2_log_get_bio(sdp, blkno); in gfs2_log_write() 339 bio = gfs2_log_alloc_bio(sdp, blkno); in gfs2_log_write() 539 u64 blkno; in buf_lo_scan_elements() local 548 blkno = be64_to_cpu(*ptr++); in buf_lo_scan_elements() [all …]
|
D | meta_io.c | 114 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create) in gfs2_getbuf() argument 128 index = blkno >> shift; /* convert block to page */ in gfs2_getbuf() 129 bufnum = blkno - (index << shift); /* block buf index within page */ in gfs2_getbuf() 154 map_bh(bh, sdp->sd_vfs, blkno); in gfs2_getbuf() 182 struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno) in gfs2_meta_new() argument 185 bh = gfs2_getbuf(gl, blkno, CREATE); in gfs2_meta_new() 200 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, in gfs2_meta_read() argument 211 *bhp = bh = gfs2_getbuf(gl, blkno, CREATE); in gfs2_meta_read()
|
D | meta_io.h | 54 extern struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno); 55 extern int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, 58 extern struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno,
|
D | recovery.h | 26 extern int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where); 27 extern int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where);
|
D | recovery.c | 55 int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) in gfs2_revoke_add() argument 62 if (rr->rr_blkno == blkno) { in gfs2_revoke_add() 77 rr->rr_blkno = blkno; in gfs2_revoke_add() 84 int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) in gfs2_revoke_check() argument 91 if (rr->rr_blkno == blkno) { in gfs2_revoke_check()
|
D | trans.c | 259 void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) in gfs2_trans_add_unrevoke() argument 267 if ((bd->bd_blkno >= blkno) && (bd->bd_blkno < (blkno + len))) { in gfs2_trans_add_unrevoke()
|
D | trans.h | 45 extern void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len);
|
D | rgrp.c | 2448 u64 blkno = ip->i_no_addr; in gfs2_unlink_di() local 2450 rgd = rgblk_free(sdp, blkno, 1, GFS2_BLKST_UNLINKED); in gfs2_unlink_di() 2453 trace_gfs2_block_alloc(ip, rgd, blkno, 1, GFS2_BLKST_UNLINKED); in gfs2_unlink_di() 2460 static void gfs2_free_uninit_di(struct gfs2_rgrpd *rgd, u64 blkno) in gfs2_free_uninit_di() argument 2465 tmp_rgd = rgblk_free(sdp, blkno, 1, GFS2_BLKST_FREE); in gfs2_free_uninit_di()
|
/linux-4.1.27/fs/ufs/ |
D | balloc.c | 44 u64 blkno; in ufs_free_fragments() local 94 blkno = ufs_fragstoblks (bbase); in ufs_free_fragments() 95 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno)) { in ufs_free_fragments() 100 ufs_clusteracct (sb, ucpi, blkno, 1); in ufs_free_fragments() 139 u64 blkno; in ufs_free_blocks() local 181 blkno = ufs_fragstoblks(i); in ufs_free_blocks() 182 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno)) { in ufs_free_blocks() 185 ubh_setblock(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno); in ufs_free_blocks() 187 ufs_clusteracct (sb, ucpi, blkno, 1); in ufs_free_blocks() 686 u64 result, blkno; in ufs_alloccg_block() local [all …]
|
/linux-4.1.27/fs/f2fs/ |
D | checkpoint.c | 119 block_t blkno = start; in ra_meta_pages() local 125 for (; nrpages-- > 0; blkno++) { in ra_meta_pages() 127 if (!is_valid_blkaddr(sbi, blkno, type)) in ra_meta_pages() 132 if (unlikely(blkno >= in ra_meta_pages() 134 blkno = 0; in ra_meta_pages() 137 blkno * NAT_ENTRY_PER_BLOCK); in ra_meta_pages() 142 blkno * SIT_ENTRY_PER_BLOCK); in ra_meta_pages() 143 if (blkno != start && prev_blk_addr + 1 != fio.blk_addr) in ra_meta_pages() 150 fio.blk_addr = blkno; in ra_meta_pages() 169 return blkno - start; in ra_meta_pages()
|
/linux-4.1.27/fs/nfsd/ |
D | blocklayout.c | 94 bex->soff = (iomap.blkno << 9); in nfsd4_block_proc_layoutget() 107 bex->soff = (iomap.blkno << 9); in nfsd4_block_proc_layoutget()
|
/linux-4.1.27/include/linux/ |
D | exportfs.h | 193 sector_t blkno; /* first sector of mapping */ member
|
/linux-4.1.27/drivers/scsi/ |
D | st.c | 2649 int fileno, blkno, at_sm, undone; in st_int_ioctl() local 2662 blkno = STps->drv_block; in st_int_ioctl() 2678 blkno = 0; in st_int_ioctl() 2693 blkno = (-1); /* We can't know the block number */ in st_int_ioctl() 2703 if (blkno >= 0) in st_int_ioctl() 2704 blkno += arg; in st_int_ioctl() 2715 if (blkno >= 0) in st_int_ioctl() 2716 blkno -= arg; in st_int_ioctl() 2727 blkno = fileno = (-1); in st_int_ioctl() 2740 blkno = fileno = (-1); in st_int_ioctl() [all …]
|
D | osst.c | 4064 int fileno, blkno, at_sm, frame_seq_numbr, logical_blk_num; in osst_int_ioctl() local 4077 blkno = STps->drv_block; in osst_int_ioctl() 4095 blkno = 0; in osst_int_ioctl() 4107 blkno = (-1); /* We can't know the block number */ in osst_int_ioctl() 4120 if (blkno >= 0) blkno += arg; in osst_int_ioctl() 4124 if (blkno >= 0) blkno -= arg; in osst_int_ioctl() 4128 blkno = STps->drv_block; in osst_int_ioctl() 4144 blkno = fileno = (-1); in osst_int_ioctl() 4165 blkno = fileno = (-1); in osst_int_ioctl() 4182 if (blkno >= 0) blkno = 0; in osst_int_ioctl() [all …]
|
/linux-4.1.27/Documentation/filesystems/ |
D | xfs-self-describing-metadata.txt | 195 __be64 blkno; /* location on disk */ 209 information as @owner and @blkno in eh above structure, but using 8 257 if (bp->b_bn != be64_to_cpu(hdr->blkno)) 281 if (bp->b_bn != be64_to_cpu(hdr->blkno))
|
/linux-4.1.27/drivers/usb/storage/ |
D | ene_ub6250.c | 1680 u32 blkno; in ms_scsi_read() local 1703 blkno = phyblk * 0x20 + PageNum; in ms_scsi_read() 1712 bcb->CDB[5] = (unsigned char)(blkno); in ms_scsi_read() 1713 bcb->CDB[4] = (unsigned char)(blkno>>8); in ms_scsi_read() 1714 bcb->CDB[3] = (unsigned char)(blkno>>16); in ms_scsi_read() 1715 bcb->CDB[2] = (unsigned char)(blkno>>24); in ms_scsi_read()
|