| /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_attr_leaf.c | 941 xfs_dablk_t blkno; in xfs_attr_shortform_to_leaf() local 954 error = xfs_da_grow_inode(args, &blkno); in xfs_attr_shortform_to_leaf() 958 ASSERT(blkno == 0); in xfs_attr_shortform_to_leaf() 959 error = xfs_attr3_leaf_create(args, blkno, &bp); in xfs_attr_shortform_to_leaf() 1210 xfs_dablk_t blkno; in xfs_attr3_leaf_to_node() local 1220 error = xfs_da_grow_inode(args, &blkno); in xfs_attr3_leaf_to_node() 1227 error = xfs_da_get_buf(args->trans, dp, blkno, &bp2, XFS_ATTR_FORK); in xfs_attr3_leaf_to_node() 1252 icnodehdr.btree[0].before = cpu_to_be32(blkno); in xfs_attr3_leaf_to_node() 1272 xfs_dablk_t blkno, in xfs_attr3_leaf_create() argument 1284 error = xfs_da_get_buf(args->trans, args->dp, blkno, &bp, in xfs_attr3_leaf_create() [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 | 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 | alloc.c | 70 u64 blkno); 141 u64 blkno); 171 u64 blkno) in ocfs2_dinode_set_last_eb_blk() argument 176 di->i_last_eb_blk = cpu_to_le64(blkno); in ocfs2_dinode_set_last_eb_blk() 259 u64 blkno) in ocfs2_xattr_value_set_last_eb_blk() argument 263 vb->vb_xv->xr_last_eb_blk = cpu_to_le64(blkno); in ocfs2_xattr_value_set_last_eb_blk() 303 u64 blkno) in ocfs2_xattr_tree_set_last_eb_blk() argument 308 xt->xt_last_eb_blk = cpu_to_le64(blkno); in ocfs2_xattr_tree_set_last_eb_blk() 336 u64 blkno) in ocfs2_dx_root_set_last_eb_blk() argument 340 dx_root->dr_last_eb_blk = cpu_to_le64(blkno); in ocfs2_dx_root_set_last_eb_blk() [all …]
|
| H A D | xattr.c | 269 u64 blkno, u32 cpos, u32 len, void *para); 279 u64 blkno, 1110 u64 blkno; in ocfs2_xattr_get_value_outside() local 1130 blkno = ocfs2_clusters_to_blocks(inode->i_sb, p_cluster); in ocfs2_xattr_get_value_outside() 1132 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in ocfs2_xattr_get_value_outside() 1133 ret = ocfs2_read_block(INODE_CACHE(inode), blkno, in ocfs2_xattr_get_value_outside() 1361 u64 blkno; in __ocfs2_xattr_set_value_outside() local 1379 blkno = ocfs2_clusters_to_blocks(inode->i_sb, p_cluster); in __ocfs2_xattr_set_value_outside() 1381 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in __ocfs2_xattr_set_value_outside() 1382 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()
|
| H A D | slot_map.c | 339 u64 blkno; in ocfs2_map_slot_buffers() local 376 &blkno, NULL, NULL); in ocfs2_map_slot_buffers() 382 trace_ocfs2_map_slot_buffers_block((unsigned long long)blkno, i); in ocfs2_map_slot_buffers() 385 status = ocfs2_read_blocks(INODE_CACHE(si->si_inode), blkno, in ocfs2_map_slot_buffers()
|
| /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_attr_list.c | 45 !((cursor)->blkno) && !((cursor)->offset)) 165 cursor->blkno = 0; in xfs_attr_shortform_list() 233 cursor->blkno = 0; in xfs_attr_node_list_lookup() 235 error = xfs_da3_node_read(tp, dp, cursor->blkno, &bp, in xfs_attr_node_list_lookup() 262 if (cursor->blkno == 0) in xfs_attr_node_list_lookup() 272 cursor->blkno = be32_to_cpu(btree->before); in xfs_attr_node_list_lookup() 284 if (XFS_IS_CORRUPT(mp, cursor->blkno == 0)) { in xfs_attr_node_list_lookup() 334 if (cursor->blkno > 0) { in xfs_attr_node_list() 337 error = xfs_da3_node_read(context->tp, dp, cursor->blkno, &bp, in xfs_attr_node_list() 418 cursor->blkno = leafhdr.forw; in xfs_attr_node_list() [all …]
|
| H A D | xfs_attr_inactive.c | 37 xfs_dablk_t blkno, in xfs_attr3_rmt_stale() argument 53 error = xfs_bmapi_read(dp, (xfs_fileoff_t)blkno, blkcnt, in xfs_attr3_rmt_stale() 69 blkno += map.br_blockcount; in xfs_attr3_rmt_stale() 263 xfs_daddr_t blkno; in xfs_attr3_root_inactive() local 275 blkno = xfs_buf_daddr(bp); in xfs_attr3_root_inactive() 304 error = xfs_trans_get_buf(*trans, mp->m_ddev_targp, blkno, in xfs_attr3_root_inactive()
|
| 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_trans.h | 181 xfs_daddr_t blkno, in xfs_trans_get_buf() argument 186 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_trans_get_buf() 203 xfs_daddr_t blkno, in xfs_trans_read_buf() argument 209 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_trans_read_buf()
|
| /linux/fs/gfs2/ |
| H A D | meta_io.c | 120 * @blkno: the block number (filesystem scope) 126 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create) in gfs2_getbuf() argument 140 index = blkno >> shift; /* convert block to page */ in gfs2_getbuf() 141 bufnum = blkno - (index << shift); /* block buf index within page */ in gfs2_getbuf() 164 map_bh(bh, sdp->sd_vfs, blkno); in gfs2_getbuf() 188 * @blkno: The block number 193 struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno) in gfs2_meta_new() argument 196 bh = gfs2_getbuf(gl, blkno, CREATE); in gfs2_meta_new() 251 * @blkno: The block number 259 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, in argument 413 gfs2_getjdatabuf(struct gfs2_inode * ip,u64 blkno) gfs2_getjdatabuf() argument [all...] |
| /linux/fs/jfs/ |
| 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/drivers/md/ |
| H A D | dm-verity-target.c | 423 sector_t blkno = block->blkno; in verity_handle_data_hash_mismatch() local 433 if (verity_recheck(v, io, want_digest, blkno, data) == 0) { in verity_handle_data_hash_mismatch() 435 set_bit(blkno, v->validated_blocks); in verity_handle_data_hash_mismatch() 440 blkno, data) == 0) in verity_handle_data_hash_mismatch() 446 if (verity_handle_err(v, DM_VERITY_BLOCK_TYPE_DATA, blkno)) { in verity_handle_data_hash_mismatch() 448 dm_audit_log_bio(DM_MSG_PREFIX, "verify-data", bio, blkno, 0); in verity_handle_data_hash_mismatch() 495 set_bit(block->blkno, v->validated_blocks); in verity_verify_pending_blocks() 534 sector_t blkno = io->block + b; in verity_verify_io() local 541 likely(test_bit(blkno, v->validated_blocks))) in verity_verify_io() 546 r = verity_hash_for_block(v, io, blkno, block->want_digest, in verity_verify_io() [all …]
|