Home
last modified time | relevance | path

Searched refs:blkno (Results 1 – 25 of 72) sorted by relevance

123

/fs/jfs/
Djfs_dmap.c64 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 …]
Djfs_discard.c32 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()
Djfs_extent.c446 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
539 *blkno = daddr; in extBalloc()
595 s64 blkno, s64 nblks, s64 * newnblks, s64 * newblkno) in extBrealloc() argument
600 if ((rc = dbExtend(ip, blkno, nblks, *newnblks - nblks)) == 0) { in extBrealloc()
601 *newblkno = blkno; in extBrealloc()
611 return (extBalloc(ip, blkno, newnblks, newblkno)); in extBrealloc()
Dxattr.c208 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
515 &blkno); in ea_get()
[all …]
Djfs_dmap.h284 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);
/fs/ocfs2/
Dexport.c39 u64 blkno = handle->ih_blkno; in ocfs2_get_dentry() local
43 trace_ocfs2_get_dentry_begin(sb, handle, (unsigned long long)blkno); in ocfs2_get_dentry()
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()
97 trace_ocfs2_get_dentry_stale((unsigned long long)blkno, in ocfs2_get_dentry()
112 trace_ocfs2_get_dentry_generation((unsigned long long)blkno, in ocfs2_get_dentry()
132 u64 blkno; in ocfs2_get_parent() local
155 status = ocfs2_lookup_ino_from_name(dir, "..", 2, &blkno); in ocfs2_get_parent()
[all …]
Docfs2_trace.h45 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 …]
Ddir.h50 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);
Dioctl.c278 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()
373 status = ocfs2_info_scan_inode_alloc(osb, inode_alloc, blkno, oifi, i); 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()
468 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); in ocfs2_info_freefrag_scan_chain()
[all …]
Dresize.c47 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()
Dsysfile.c129 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()
/fs/xfs/libxfs/
Dxfs_da_btree.c197 if (be64_to_cpu(hdr3->blkno) != xfs_buf_daddr(bp)) in xfs_da3_blkinfo_verify()
422 xfs_dablk_t blkno, in xfs_da3_node_create() argument
438 error = xfs_da_get_buf(tp, dp, blkno, &bp, whichfork); in xfs_da3_node_create()
450 hdr3->info.blkno = cpu_to_be64(xfs_buf_daddr(bp)); in xfs_da3_node_create()
598 if (be32_to_cpu(node->hdr.info.forw) != addblk->blkno) { in xfs_da3_split()
604 node->hdr.info.back = cpu_to_be32(oldblk->blkno); in xfs_da3_split()
611 if (be32_to_cpu(node->hdr.info.back) != addblk->blkno) { in xfs_da3_split()
617 node->hdr.info.forw = cpu_to_be32(oldblk->blkno); in xfs_da3_split()
647 xfs_dablk_t blkno; in xfs_da3_root_split() local
659 error = xfs_da_grow_inode(args, &blkno); in xfs_da3_root_split()
[all …]
Dxfs_attr_leaf.c910 xfs_dablk_t blkno; in xfs_attr_shortform_to_leaf() local
929 error = xfs_da_grow_inode(args, &blkno); in xfs_attr_shortform_to_leaf()
933 ASSERT(blkno == 0); in xfs_attr_shortform_to_leaf()
934 error = xfs_attr3_leaf_create(args, blkno, &bp); in xfs_attr_shortform_to_leaf()
1187 xfs_dablk_t blkno; in xfs_attr3_leaf_to_node() local
1192 error = xfs_da_grow_inode(args, &blkno); in xfs_attr3_leaf_to_node()
1199 error = xfs_da_get_buf(args->trans, dp, blkno, &bp2, XFS_ATTR_FORK); in xfs_attr3_leaf_to_node()
1209 hdr3->blkno = cpu_to_be64(xfs_buf_daddr(bp2)); in xfs_attr3_leaf_to_node()
1228 icnodehdr.btree[0].before = cpu_to_be32(blkno); in xfs_attr3_leaf_to_node()
1248 xfs_dablk_t blkno, in xfs_attr3_leaf_create() argument
[all …]
Dxfs_dir2_node.c71 if (be64_to_cpu(leaf3->info.blkno) != xfs_buf_daddr(bp)) in xfs_dir3_leafn_check()
113 if (be64_to_cpu(hdr3->blkno) != xfs_buf_daddr(bp)) in xfs_dir3_free_verify()
349 hdr3->hdr.blkno = cpu_to_be64(xfs_buf_daddr(bp)); in xfs_dir3_free_get_buf()
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()
849 curdb != state->extrablk.blkno)) in xfs_dir2_leafn_lookup_for_entry()
856 newdb == state->extrablk.blkno) { in xfs_dir2_leafn_lookup_for_entry()
885 curdb != state->extrablk.blkno) in xfs_dir2_leafn_lookup_for_entry()
[all …]
/fs/xfs/scrub/
Ddabtree.c54 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()
338 if (!xchk_da_btree_ptr_ok(ds, level, blkno)) in xchk_da_btree_block()
342 error = xfs_da_read_buf(dargs->trans, dargs->dp, blk->blkno, in xchk_da_btree_block()
464 blk->blkno = 0; in xchk_da_btree_block()
[all …]
/fs/xfs/
Dxfs_buf.h113 #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()
Dxfs_attr_list.c43 !((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()
306 error = xfs_da3_node_read(context->tp, dp, cursor->blkno, &bp, in xfs_attr_node_list()
372 cursor->blkno = leafhdr.forw; in xfs_attr_node_list()
[all …]
Dxfs_buf_item_recover.c32 #define XLOG_BUF_CANCEL_BUCKET(log, blkno) \ argument
33 ((log)->l_buf_cancel_table + ((uint64_t)blkno % XLOG_BC_TABLE_SIZE))
49 xfs_daddr_t blkno, in xlog_find_buffer_cancelled() argument
58 bucket = XLOG_BUF_CANCEL_BUCKET(log, blkno); in xlog_find_buffer_cancelled()
60 if (bcp->bc_blkno == blkno && bcp->bc_len == len) in xlog_find_buffer_cancelled()
70 xfs_daddr_t blkno, in xlog_add_buffer_cancelled() argument
82 bcp = xlog_find_buffer_cancelled(log, blkno, len); in xlog_add_buffer_cancelled()
89 bcp->bc_blkno = blkno; in xlog_add_buffer_cancelled()
92 list_add_tail(&bcp->bc_list, XLOG_BUF_CANCEL_BUCKET(log, blkno)); in xlog_add_buffer_cancelled()
102 xfs_daddr_t blkno, in xlog_is_buffer_cancelled() argument
[all …]
Dxfs_attr_inactive.c36 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()
260 xfs_daddr_t blkno; in xfs_attr3_root_inactive() local
272 blkno = xfs_buf_daddr(bp); in xfs_attr3_root_inactive()
300 error = xfs_trans_get_buf(*trans, mp->m_ddev_targp, blkno, in xfs_attr3_root_inactive()
/fs/gfs2/
Dlops.c264 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()
295 static struct bio *gfs2_log_get_bio(struct gfs2_sbd *sdp, u64 blkno, in gfs2_log_get_bio() argument
306 if (blkno == nblk && !flush) in gfs2_log_get_bio()
311 *biop = gfs2_log_alloc_bio(sdp, blkno, end_io); in gfs2_log_get_bio()
331 u64 blkno) in gfs2_log_write() argument
336 bio = gfs2_log_get_bio(sdp, blkno, &jd->jd_log_bio, REQ_OP_WRITE, in gfs2_log_write()
340 bio = gfs2_log_get_bio(sdp, blkno, &jd->jd_log_bio, in gfs2_log_write()
770 u64 blkno) in obsolete_rgrp() argument
776 rgd = gfs2_blk2rgrpd(sdp, blkno, false); in obsolete_rgrp()
[all …]
Dmeta_io.c112 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()
405 static struct buffer_head *gfs2_getjdatabuf(struct gfs2_inode *ip, u64 blkno) in gfs2_getjdatabuf() argument
[all …]
Drecovery.h23 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,
Drecovery.c55 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()
Dmeta_io.h51 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,
/fs/ufs/
Dballoc.c46 u64 blkno; in ufs_free_fragments() local
97 blkno = ufs_fragstoblks (bbase); in ufs_free_fragments()
98 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno)) { 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()
185 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno)) { in ufs_free_blocks()
188 ubh_setblock(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno); in ufs_free_blocks()
191 ufs_clusteracct (sb, ucpi, blkno, 1); in ufs_free_blocks()
707 u64 result, blkno; in ufs_alloccg_block() local
[all …]

123