/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 | 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()
|
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_attr_leaf.c | 952 xfs_dablk_t blkno; in xfs_attr_shortform_to_leaf() local 965 error = xfs_da_grow_inode(args, &blkno); in xfs_attr_shortform_to_leaf() 969 ASSERT(blkno == 0); in xfs_attr_shortform_to_leaf() 970 error = xfs_attr3_leaf_create(args, blkno, &bp); in xfs_attr_shortform_to_leaf() 1223 xfs_dablk_t blkno; in xfs_attr3_leaf_to_node() local 1233 error = xfs_da_grow_inode(args, &blkno); in xfs_attr3_leaf_to_node() 1240 error = xfs_da_get_buf(args->trans, dp, blkno, &bp2, XFS_ATTR_FORK); in xfs_attr3_leaf_to_node() 1265 icnodehdr.btree[0].before = cpu_to_be32(blkno); in xfs_attr3_leaf_to_node() 1285 xfs_dablk_t blkno, in xfs_attr3_leaf_create() argument 1297 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 [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 | 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()
|
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 | 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() 857 u64 blkno; in ocfs2_dx_dir_lookup() local 860 ret = ocfs2_dx_dir_lookup_rec(inode, el, name_hash, &cpos, &blkno, in ocfs2_dx_dir_lookup() 870 blkno += ocfs2_clusters_to_blocks(inode->i_sb, clen - 1); in ocfs2_dx_dir_lookup() 873 blkno += ocfs2_clusters_to_blocks(inode->i_sb, in ocfs2_dx_dir_lookup() 883 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup() 886 *ret_phys_blkno = blkno; in ocfs2_dx_dir_lookup() [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() 3830 u64 blkno, lower_blkno = 0; ocfs2_xattr_bucket_find() local 3970 ocfs2_iterate_xattr_buckets(struct inode * inode,u64 blkno,u32 clusters,xattr_bucket_func * func,void * para) ocfs2_iterate_xattr_buckets() argument 4126 ocfs2_list_xattr_tree_rec(struct inode * inode,struct buffer_head * root_bh,u64 blkno,u32 cpos,u32 len,void * para) ocfs2_list_xattr_tree_rec() argument 4271 u64 blkno; ocfs2_xattr_create_index_block() local 4386 u64 blkno = bucket_blkno(bucket); ocfs2_defrag_xattr_bucket() local 5412 ocfs2_rm_xattr_cluster(struct inode * inode,struct buffer_head * root_bh,u64 blkno,u32 cpos,u32 len,void * para) ocfs2_rm_xattr_cluster() argument 6089 ocfs2_refcount_xattr_tree_rec(struct inode * inode,struct buffer_head * root_bh,u64 blkno,u32 cpos,u32 len,void * para) ocfs2_refcount_xattr_tree_rec() argument 6734 ocfs2_lock_reflink_xattr_rec_allocators(struct ocfs2_reflink_xattr_tree_args * args,struct ocfs2_extent_tree * xt_et,u64 blkno,u32 len,int * credits,struct ocfs2_alloc_context ** meta_ac,struct ocfs2_alloc_context ** data_ac) ocfs2_lock_reflink_xattr_rec_allocators() argument 6818 ocfs2_reflink_xattr_bucket(handle_t * handle,u64 blkno,u64 new_blkno,u32 clusters,u32 * cpos,int num_buckets,struct ocfs2_alloc_context * meta_ac,struct ocfs2_alloc_context * data_ac,struct ocfs2_reflink_xattr_tree_args * args) ocfs2_reflink_xattr_bucket() argument 6914 ocfs2_reflink_xattr_buckets(handle_t * handle,struct inode * inode,struct ocfs2_reflink_xattr_tree_args * args,struct ocfs2_extent_tree * et,struct ocfs2_alloc_context * meta_ac,struct ocfs2_alloc_context * data_ac,u64 blkno,u32 cpos,u32 len) ocfs2_reflink_xattr_buckets() argument 6981 ocfs2_reflink_xattr_rec(struct inode * inode,struct buffer_head * root_bh,u64 blkno,u32 cpos,u32 len,void * para) ocfs2_reflink_xattr_rec() argument [all...] |
/linux/fs/xfs/ |
H A D | xfs_buf.h | 141 #define DEFINE_SINGLE_BUF_MAP(map, blkno, numblk) \ argument 142 struct xfs_buf_map (map) = { .bm_bn = (blkno), .bm_len = (numblk) }; 238 xfs_daddr_t blkno, in xfs_buf_incore() argument 243 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_incore() 251 xfs_daddr_t blkno, in xfs_buf_get() argument 255 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_get() 263 xfs_daddr_t blkno, in xfs_buf_read() argument 269 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_read() 278 xfs_daddr_t blkno, in xfs_buf_readahead() argument 282 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 | 183 xfs_daddr_t blkno, in xfs_trans_get_buf() argument 188 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_trans_get_buf() 205 xfs_daddr_t blkno, in xfs_trans_read_buf() argument 211 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_trans_read_buf()
|
/linux/fs/gfs2/ |
H A D | lops.c | 264 static struct bio *gfs2_log_alloc_bio(struct gfs2_sbd *sdp, u64 blkno, in gfs2_log_alloc_bio() argument 270 bio->bi_iter.bi_sector = blkno << sdp->sd_fsb2bb_shift; in gfs2_log_alloc_bio() 294 static struct bio *gfs2_log_get_bio(struct gfs2_sbd *sdp, u64 blkno, in gfs2_log_get_bio() argument 305 if (blkno == nblk && !flush) in gfs2_log_get_bio() 310 *biop = gfs2_log_alloc_bio(sdp, blkno, end_io); in gfs2_log_get_bio() 330 u64 blkno) in gfs2_log_write() argument 335 bio = gfs2_log_get_bio(sdp, blkno, &jd->jd_log_bio, REQ_OP_WRITE, in gfs2_log_write() 339 bio = gfs2_log_get_bio(sdp, blkno, &jd->jd_log_bio, in gfs2_log_write() 758 u64 blkno) in obsolete_rgrp() argument 764 rgd = gfs2_blk2rgrpd(sdp, blkno, false); in obsolete_rgrp() [all …]
|
H A D | meta_io.c | 124 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create) in gfs2_getbuf() argument 138 index = blkno >> shift; /* convert block to page */ in gfs2_getbuf() 139 bufnum = blkno - (index << shift); /* block buf index within page */ in gfs2_getbuf() 162 map_bh(bh, sdp->sd_vfs, blkno); in gfs2_getbuf() 191 struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno) in gfs2_meta_new() argument 194 bh = gfs2_getbuf(gl, blkno, CREATE); in gfs2_meta_new() 258 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, in gfs2_meta_read() argument 271 *bhp = bh = gfs2_getbuf(gl, blkno, CREATE); in gfs2_meta_read() 284 bh = gfs2_getbuf(gl, blkno + 1, CREATE); in gfs2_meta_read() 412 static struct buffer_head *gfs2_getjdatabuf(struct gfs2_inode *ip, u64 blkno) in gfs2_getjdatabuf() argument [all …]
|
H A D | recovery.h | 23 int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where); 24 int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where); 30 const struct gfs2_log_header *lh, unsigned int blkno,
|
H A D | meta_io.h | 53 struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno); 54 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, 57 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno,
|
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 125 (blkno && be32_to_cpu(lh->lh_blkno) != blkno)) in __get_log_header()
|