/linux/fs/jfs/ |
A D | jfs_dmap.c | 331 if (unlikely((blkno == 0) || (blkno + nblocks > bmp->db_mapsize))) { in dbFree() 739 blkno = hint + 1; in dbAlloc() 1283 blkno += in dbAllocNear() 1468 blkno = 0; in dbAllocAG() 1474 blkno += in dbAllocAG() 1554 s64 blkno = 0; in dbAllocAny() local 1616 u64 blkno; in dbDiscardAG() member 1645 tt->blkno = blkno; in dbDiscardAG() 1782 *blkno = b; in dbFindCtl() 1987 s64 blkno; in dbAllocDmapLev() local [all …]
|
A D | jfs_discard.c | 32 void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks) in jfs_issue_discard() argument 37 r = sb_issue_discard(sb, blkno, nblocks, GFP_NOFS, 0); in jfs_issue_discard() 40 sb, (unsigned long long)blkno, in jfs_issue_discard() 45 sb, (unsigned long long)blkno, in jfs_issue_discard()
|
A D | jfs_extent.c | 446 s64 blkno = offsetXAD(xp) >> ip->i_blkbits; in extFill() local 454 if ((rc = extAlloc(ip, nbperpage, blkno, xp, false))) in extFill() 496 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument 534 *blkno = daddr; in extBalloc() 590 s64 blkno, s64 nblks, s64 * newnblks, s64 * newblkno) in extBrealloc() argument 595 if ((rc = dbExtend(ip, blkno, nblks, *newnblks - nblks)) == 0) { in extBrealloc() 596 *newblkno = blkno; in extBrealloc() 606 return (extBalloc(ip, blkno, newnblks, newblkno)); in extBrealloc()
|
A D | xattr.c | 208 s64 blkno; in ea_write() local 232 rc = dbAlloc(ip, INOHINT(ip), nblocks, &blkno); 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 433 s64 blkno; in ea_get() local 515 &blkno); in ea_get() 520 DXDaddress(&ea_buf->new_ea, blkno); in ea_get() 526 ea_buf->mp = get_metapage(inode, blkno, in ea_get() 530 dbFree(inode, blkno, (s64) blocks_needed); in ea_get() [all …]
|
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);
|
/linux/fs/ocfs2/ |
A D | export.c | 39 u64 blkno = handle->ih_blkno; in ocfs2_get_dentry() local 45 if (blkno == 0) { in ocfs2_get_dentry() 50 inode = ocfs2_ilookup(sb, blkno); in ocfs2_get_dentry() 68 status = ocfs2_test_inode_bit(osb, blkno, &set); in ocfs2_get_dentry() 89 inode = ocfs2_iget(osb, blkno, 0, 0); in ocfs2_get_dentry() 132 u64 blkno; in ocfs2_get_parent() local 197 u64 blkno; in ocfs2_encode_fh() local 218 blkno = OCFS2_I(inode)->ip_blkno; in ocfs2_encode_fh() 224 fh[0] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh() 229 blkno = OCFS2_I(parent)->ip_blkno; in ocfs2_encode_fh() [all …]
|
A D | ocfs2_trace.h | 51 __entry->blkno = blkno; 448 __entry->blkno = blkno; 556 __entry->blkno = blkno; 635 __entry->blkno = blkno; 684 __entry->blkno = blkno; 755 __entry->blkno = blkno; 915 __entry->blkno = blkno; 2067 __entry->blkno = blkno; 2093 __entry->blkno = blkno; 2363 __entry->blkno = blkno; [all …]
|
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);
|
A D | ioctl.c | 278 struct inode *inode_alloc, u64 blkno, in ocfs2_info_scan_inode_alloc() argument 298 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); in ocfs2_info_scan_inode_alloc() 329 u64 blkno = -1; in ocfs2_info_handle_freeinode() local 366 &blkno); in ocfs2_info_handle_freeinode() 440 u64 blkno; in ocfs2_info_freefrag_scan_chain() local 454 blkno = le64_to_cpu(rec->c_blkno); in ocfs2_info_freefrag_scan_chain() 456 blkno = le64_to_cpu(bg->bg_next_group); in ocfs2_info_freefrag_scan_chain() 466 blkno, &bh); in ocfs2_info_freefrag_scan_chain() 536 struct inode *gb_inode, u64 blkno, in ocfs2_info_freefrag_scan_bitmap() argument 616 u64 blkno = -1; in ocfs2_info_handle_freefrag() local [all …]
|
A D | sysfile.c | 129 u64 blkno; in _ocfs2_get_system_file_inode() local 137 strlen(namebuf), &blkno); in _ocfs2_get_system_file_inode() 142 inode = ocfs2_iget(osb, blkno, OCFS2_FI_FLAG_SYSFILE, type); in _ocfs2_get_system_file_inode()
|
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() 174 u64 blkno; in update_backups() local 181 blkno = ocfs2_backup_super_blkno(inode->i_sb, i); in update_backups() 182 cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); in update_backups() 186 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &backup); in update_backups() 195 backup_di->i_blkno = cpu_to_le64(blkno); in update_backups()
|
/linux/fs/xfs/libxfs/ |
A D | xfs_da_btree.c | 422 xfs_dablk_t blkno, in xfs_da3_node_create() argument 647 xfs_dablk_t blkno; in xfs_da3_root_split() local 721 blk1->blkno = blkno; in xfs_da3_root_split() 773 xfs_dablk_t blkno; in xfs_da3_node_split() local 805 newblk->blkno = blkno; in xfs_da3_node_split() 1314 if (blkno == 0) in xfs_da3_node_toosmall() 1338 if (blkno < blk->blkno) { in xfs_da3_node_toosmall() 1603 blk->blkno = blkno; in xfs_da3_node_lookup_int() 1607 blk->blkno = 0; in xfs_da3_node_lookup_int() 1725 args->blkno = blk->blkno; in xfs_da3_node_lookup_int() [all …]
|
A D | xfs_attr_leaf.c | 933 ASSERT(blkno == 0); in xfs_attr_shortform_to_leaf() 1187 xfs_dablk_t blkno; in xfs_attr3_leaf_to_node() local 1304 xfs_dablk_t blkno; in xfs_attr3_leaf_split() local 1319 newblk->blkno = blkno; in xfs_attr3_leaf_split() 1816 args->blkno = args->blkno2 = blk2->blkno; in xfs_attr3_leaf_rebalance() 1820 args->blkno = blk1->blkno; in xfs_attr3_leaf_rebalance() 1831 args->blkno = blk2->blkno; in xfs_attr3_leaf_rebalance() 1845 args->blkno = args->blkno2 = blk1->blkno; in xfs_attr3_leaf_rebalance() 2030 if (blkno == 0) in xfs_attr3_leaf_toosmall() 2033 blkno, &bp); in xfs_attr3_leaf_toosmall() [all …]
|
A D | xfs_dir2_node.c | 566 args->blkno, args->index)); in xfs_dir2_leafn_add() 667 curfdb = state->extrablk.blkno; in xfs_dir2_leafn_lookup_for_addname() 755 state->extrablk.blkno = curfdb; in xfs_dir2_leafn_lookup_for_addname() 819 curdb = state->extrablk.blkno; in xfs_dir2_leafn_lookup_for_entry() 893 state->extrablk.blkno = curdb; in xfs_dir2_leafn_lookup_for_entry() 910 state->extrablk.blkno = curdb; in xfs_dir2_leafn_lookup_for_entry() 1300 ASSERT(dblk->blkno == db); in xfs_dir2_leafn_remove() 1446 newblk->blkno = blkno; in xfs_dir2_leafn_split() 1554 if (blkno == 0) in xfs_dir2_leafn_toosmall() 1596 if (blkno < blk->blkno) in xfs_dir2_leafn_toosmall() [all …]
|
/linux/fs/xfs/scrub/ |
A D | dabtree.c | 54 ds->state->path.blk[level].blkno), in xchk_da_process_error() 76 ds->state->path.blk[level].blkno), in xchk_da_set_corrupt() 131 xfs_dablk_t blkno) in xchk_da_btree_ptr_ok() argument 133 if (blkno < ds->lowest || (ds->highest != 0 && blkno >= ds->highest)) { in xchk_da_btree_ptr_ok() 256 if (altpath->blk[level].blkno != sibling) in xchk_da_btree_block_check_sibling() 314 xfs_dablk_t blkno) in xchk_da_btree_block() argument 337 blk->blkno = blkno; in xchk_da_btree_block() 464 blk->blkno = 0; in xchk_da_btree_block() 480 xfs_dablk_t blkno; in xchk_da_btree() local 508 blkno = ds->lowest; in xchk_da_btree() [all …]
|
/linux/fs/xfs/ |
A D | xfs_buf.h | 113 #define DEFINE_SINGLE_BUF_MAP(map, blkno, numblk) \ argument 114 struct xfs_buf_map (map) = { .bm_bn = (blkno), .bm_len = (numblk) }; 199 xfs_daddr_t blkno, size_t numblks, 214 xfs_daddr_t blkno, in xfs_buf_get() argument 218 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_get() 226 xfs_daddr_t blkno, in xfs_buf_read() argument 232 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_read() 241 xfs_daddr_t blkno, in xfs_buf_readahead() argument 245 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_readahead()
|
A D | xfs_attr_list.c | 43 !((cursor)->blkno) && !((cursor)->offset)) 154 cursor->blkno = 0; in xfs_attr_shortform_list() 219 cursor->blkno = 0; in xfs_attr_node_list_lookup() 221 error = xfs_da3_node_read(tp, dp, cursor->blkno, &bp, in xfs_attr_node_list_lookup() 244 if (cursor->blkno == 0) in xfs_attr_node_list_lookup() 254 cursor->blkno = be32_to_cpu(btree->before); in xfs_attr_node_list_lookup() 266 if (XFS_IS_CORRUPT(mp, cursor->blkno == 0)) in xfs_attr_node_list_lookup() 305 if (cursor->blkno > 0) { in xfs_attr_node_list() 372 cursor->blkno = leafhdr.forw; in xfs_attr_node_list() 374 error = xfs_attr3_leaf_read(context->tp, dp, cursor->blkno, in xfs_attr_node_list() [all …]
|
A D | xfs_buf_item_recover.c | 40 xfs_daddr_t blkno, in xlog_find_buffer_cancelled() argument 49 bucket = XLOG_BUF_CANCEL_BUCKET(log, blkno); in xlog_find_buffer_cancelled() 51 if (bcp->bc_blkno == blkno && bcp->bc_len == len) in xlog_find_buffer_cancelled() 61 xfs_daddr_t blkno, in xlog_add_buffer_cancelled() argument 73 bcp = xlog_find_buffer_cancelled(log, blkno, len); in xlog_add_buffer_cancelled() 80 bcp->bc_blkno = blkno; in xlog_add_buffer_cancelled() 83 list_add_tail(&bcp->bc_list, XLOG_BUF_CANCEL_BUCKET(log, blkno)); in xlog_add_buffer_cancelled() 93 xfs_daddr_t blkno, in xlog_is_buffer_cancelled() argument 96 return xlog_find_buffer_cancelled(log, blkno, len) != NULL; in xlog_is_buffer_cancelled() 110 xfs_daddr_t blkno, in xlog_put_buffer_cancelled() argument [all …]
|
A D | xfs_attr_inactive.c | 36 xfs_dablk_t blkno, in xfs_attr3_rmt_stale() argument 52 error = xfs_bmapi_read(dp, (xfs_fileoff_t)blkno, blkcnt, in xfs_attr3_rmt_stale() 68 blkno += map.br_blockcount; in xfs_attr3_rmt_stale() 262 xfs_daddr_t blkno; in xfs_attr3_root_inactive() local 274 blkno = xfs_buf_daddr(bp); in xfs_attr3_root_inactive() 302 error = xfs_trans_get_buf(*trans, mp->m_ddev_targp, blkno, in xfs_attr3_root_inactive()
|
/linux/fs/gfs2/ |
A D | lops.c | 306 if (blkno == nblk && !flush) in gfs2_log_get_bio() 331 u64 blkno) in gfs2_log_write() argument 770 u64 blkno) in obsolete_rgrp() argument 777 if (rgd && rgd->rd_addr == blkno && in obsolete_rgrp() 799 u64 blkno; in buf_lo_scan_elements() local 808 blkno = be64_to_cpu(*ptr++); in buf_lo_scan_elements() 819 bh_ip = gfs2_meta_new(gl, blkno); in buf_lo_scan_elements() 941 u64 blkno; in revoke_lo_scan_elements() local 1023 u64 blkno; in databuf_lo_scan_elements() local 1032 blkno = be64_to_cpu(*ptr++); in databuf_lo_scan_elements() [all …]
|
A D | meta_io.c | 112 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create) in gfs2_getbuf() argument 126 index = blkno >> shift; /* convert block to page */ in gfs2_getbuf() 127 bufnum = blkno - (index << shift); /* block buf index within page */ in gfs2_getbuf() 155 map_bh(bh, sdp->sd_vfs, blkno); in gfs2_getbuf() 184 struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno) in gfs2_meta_new() argument 187 bh = gfs2_getbuf(gl, blkno, CREATE); in gfs2_meta_new() 254 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, in gfs2_meta_read() argument 266 *bhp = bh = gfs2_getbuf(gl, blkno, CREATE); in gfs2_meta_read() 279 bh = gfs2_getbuf(gl, blkno + 1, CREATE); in gfs2_meta_read() 412 unsigned long index = blkno >> shift; /* convert block to page */ in gfs2_getjdatabuf() [all …]
|
A D | recovery.h | 23 extern int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where); 24 extern int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where); 30 const struct gfs2_log_header *lh, unsigned int blkno,
|
A 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() 121 unsigned int blkno, struct gfs2_log_header_host *head) in __get_log_header() argument 127 (blkno && be32_to_cpu(lh->lh_blkno) != blkno)) in __get_log_header()
|
A D | meta_io.h | 51 extern struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno); 52 extern int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, 55 extern struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno,
|
/linux/fs/ufs/ |
A D | balloc.c | 46 u64 blkno; in ufs_free_fragments() local 97 blkno = ufs_fragstoblks (bbase); in ufs_free_fragments() 103 ufs_clusteracct (sb, ucpi, blkno, 1); in ufs_free_fragments() 142 u64 blkno; in ufs_free_blocks() local 184 blkno = ufs_fragstoblks(i); in ufs_free_blocks() 191 ufs_clusteracct (sb, ucpi, blkno, 1); in ufs_free_blocks() 707 u64 result, blkno; in ufs_alloccg_block() local 738 blkno = ufs_fragstoblks(result); in ufs_alloccg_block() 741 ufs_clusteracct (sb, ucpi, blkno, -1); in ufs_alloccg_block() 889 start = blkno + 1; in ufs_clusteracct() [all …]
|