/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/xfs/ |
H A D | xfs_buf.h | 135 #define DEFINE_SINGLE_BUF_MAP(map, blkno, numblk) \ argument 136 struct xfs_buf_map (map) = { .bm_bn = (blkno), .bm_len = (numblk) }; 227 xfs_daddr_t blkno, in xfs_buf_incore() argument 232 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_incore() 240 xfs_daddr_t blkno, in xfs_buf_get() argument 244 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_get() 252 xfs_daddr_t blkno, in xfs_buf_read() argument 258 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_read() 267 xfs_daddr_t blkno, in xfs_buf_readahead() argument 271 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/ocfs2/ |
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 | 368 u64 blkno; in ocfs2_find_victim_alloc_group() local 379 ret = ocfs2_lookup_ino_from_name(osb->sys_root_inode, namebuf, len, &blkno); in ocfs2_find_victim_alloc_group() 386 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &ac_bh); in ocfs2_find_victim_alloc_group() 419 blkno = le64_to_cpu(rec->c_blkno); in ocfs2_find_victim_alloc_group() 421 blkno = le64_to_cpu(bg->bg_next_group); in ocfs2_find_victim_alloc_group() 428 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &gd_bh); in ocfs2_find_victim_alloc_group() 440 *vict_bit = (vict_blkno - blkno) >> in ocfs2_find_victim_alloc_group() 444 blkno, le16_to_cpu(bg->bg_bits), in ocfs2_find_victim_alloc_group()
|
H A D | dir.c | 600 u64 blkno = le64_to_cpu(di->i_dx_root); in ocfs2_read_dx_root() local 603 ret = ocfs2_read_block(INODE_CACHE(dir), blkno, &tmp, in ocfs2_read_dx_root() 637 static int ocfs2_read_dx_leaf(struct inode *dir, u64 blkno, in ocfs2_read_dx_leaf() argument 643 ret = ocfs2_read_block(INODE_CACHE(dir), blkno, &tmp, in ocfs2_read_dx_leaf() 865 u64 blkno; in ocfs2_dx_dir_lookup() local 868 ret = ocfs2_dx_dir_lookup_rec(inode, el, name_hash, &cpos, &blkno, in ocfs2_dx_dir_lookup() 878 blkno += ocfs2_clusters_to_blocks(inode->i_sb, clen - 1); in ocfs2_dx_dir_lookup() 881 blkno += ocfs2_clusters_to_blocks(inode->i_sb, in ocfs2_dx_dir_lookup() 891 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup() 894 *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 | 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()
|
H A D | namei.c | 66 u64 blkno, 100 u64 blkno; in ocfs2_lookup() local 123 dentry->d_name.len, &blkno); in ocfs2_lookup() 127 inode = ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0); in ocfs2_lookup() 886 u64 blkno; in ocfs2_unlink() local 920 dentry->d_name.len, &blkno, dir, in ocfs2_unlink() 928 if (OCFS2_I(inode)->ip_blkno != blkno) { in ocfs2_unlink() 933 (unsigned long long)blkno, in ocfs2_unlink() 2085 static int ocfs2_blkno_stringify(u64 blkno, char *name) in ocfs2_blkno_stringify() argument 2090 (long long)blkno); in ocfs2_blkno_stringify() [all …]
|
H A D | inode.c | 108 struct inode *ocfs2_ilookup(struct super_block *sb, u64 blkno) in ocfs2_ilookup() argument 112 args.fi_blkno = blkno; in ocfs2_ilookup() 114 args.fi_ino = ino_from_blkno(sb, blkno); in ocfs2_ilookup() 117 return ilookup5(sb, blkno, ocfs2_find_actor, &args); in ocfs2_ilookup() 119 struct inode *ocfs2_iget(struct ocfs2_super *osb, u64 blkno, unsigned flags, in ocfs2_iget() argument 128 trace_ocfs2_iget_begin((unsigned long long)blkno, flags, in ocfs2_iget() 134 if (blkno == 0) { in ocfs2_iget() 140 args.fi_blkno = blkno; in ocfs2_iget() 142 args.fi_ino = ino_from_blkno(sb, blkno); in ocfs2_iget()
|
/linux/fs/gfs2/ |
H A D | meta_io.c | 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() 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() 259 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, in gfs2_meta_read() argument 272 *bhp = bh = gfs2_getbuf(gl, blkno, CREATE); in gfs2_meta_read() 285 bh = gfs2_getbuf(gl, blkno + 1, CREATE); in gfs2_meta_read() 413 static struct buffer_head *gfs2_getjdatabuf(struct gfs2_inode *ip, u64 blkno) in 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 …]
|
H A D | jfs_discard.h | 10 extern void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks);
|