Home
last modified time | relevance | path

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

12

/fs/jfs/
Djfs_dmap.c74 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
80 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc,
83 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
85 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
88 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
95 static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno,
97 static int dbExtend(struct inode *ip, s64 blkno, s64 nblocks, s64 addnblocks);
99 static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno);
101 static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
103 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
[all …]
Djfs_extent.c471 s64 blkno = offsetXAD(xp) >> ip->i_blkbits; in extFill() local
479 if ((rc = extAlloc(ip, nbperpage, blkno, xp, false))) in extFill()
521 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument
559 *blkno = daddr; in extBalloc()
615 s64 blkno, s64 nblks, s64 * newnblks, s64 * newblkno) in extBrealloc() argument
620 if ((rc = dbExtend(ip, blkno, nblks, *newnblks - nblks)) == 0) { in extBrealloc()
621 *newblkno = blkno; in extBrealloc()
631 return (extBalloc(ip, blkno, newnblks, newblkno)); in extBrealloc()
Djfs_dmap.h297 extern int dbFree(struct inode *ipbmap, s64 blkno, s64 nblocks);
300 int free, s64 blkno, s64 nblocks, struct tblock * tblk);
307 s64 blkno, s64 nblocks, s64 addnblocks, s64 * results);
310 extern int dbAllocBottomUp(struct inode *ip, s64 blkno, s64 nblocks);
311 extern int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks);
Dxattr.c243 s64 blkno; in ea_write() local
267 rc = dbAlloc(ip, INOHINT(ip), nblocks, &blkno); in ea_write()
291 if (!(mp = get_metapage(ip, blkno + i, bytes_to_write, 1))) { in ea_write()
325 DXDaddress(ea, blkno); in ea_write()
337 dbFree(ip, blkno, nblocks); in ea_write()
392 s64 blkno; in ea_read() local
414 blkno = addressDXD(&ji->ea) << sbi->l2nbperpage; in ea_read()
431 if (!(mp = read_metapage(ip, blkno + i, bytes_to_read, 1))) in ea_read()
468 s64 blkno; in ea_get() local
547 &blkno); in ea_get()
[all …]
Djfs_imap.c317 s64 blkno, agstart; in diRead() local
357 blkno = INOPBLK(&iagp->inoext[extno], ino, sbi->l2nbperpage); in diRead()
365 pageno = blkno >> sbi->l2nbperpage; in diRead()
367 if ((block_offset = ((u32) blkno & (sbi->nbperpage - 1)))) { in diRead()
609 s64 blkno; in diWrite() local
639 blkno = INOPBLK(&(jfs_ip->ixpxd), ino, sbi->l2nbperpage); in diWrite()
642 pageno = blkno >> sbi->l2nbperpage; in diWrite()
644 if ((block_offset = ((u32) blkno & (sbi->nbperpage - 1)))) { in diWrite()
2186 s64 blkno, hint; in diNewExt() local
2283 if ((rc = dbAlloc(ipimap, hint, (s64) imap->im_nbperiext, &blkno))) in diNewExt()
[all …]
/fs/ocfs2/
Dexport.c82 u64 blkno; in ocfs2_get_parent() local
100 status = ocfs2_lookup_ino_from_name(dir, "..", 2, &blkno); in ocfs2_get_parent()
106 parent = d_obtain_alias(ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0)); in ocfs2_get_parent()
125 u64 blkno; in ocfs2_encode_fh() local
139 blkno = OCFS2_I(inode)->ip_blkno; in ocfs2_encode_fh()
143 (unsigned long long)blkno, generation); in ocfs2_encode_fh()
146 fh[0] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh()
147 fh[1] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh()
156 blkno = OCFS2_I(parent)->ip_blkno; in ocfs2_encode_fh()
159 fh[3] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh()
[all …]
Ddir.h40 struct inode *inode, u64 blkno,
45 struct inode *inode, u64 blkno, in ocfs2_add_entry() argument
51 inode, blkno, parent_fe_bh, insert_bh); in ocfs2_add_entry()
63 u64 *blkno,
68 int namelen, u64 *blkno);
Dsysfile.c102 u64 blkno; in _ocfs2_get_system_file_inode() local
110 strlen(namebuf), &blkno); in _ocfs2_get_system_file_inode()
115 inode = ocfs2_iget(osb, blkno, OCFS2_FI_FLAG_SYSFILE, type); in _ocfs2_get_system_file_inode()
Dresize.c64 u64 blkno, gd_blkno, lgd_blkno = le64_to_cpu(gd->bg_blkno); in ocfs2_calc_new_backup_super() local
67 blkno = ocfs2_backup_super_blkno(inode->i_sb, i); in ocfs2_calc_new_backup_super()
68 cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); in ocfs2_calc_new_backup_super()
191 u64 blkno; in update_backups() local
198 blkno = ocfs2_backup_super_blkno(inode->i_sb, i); in update_backups()
199 cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); in update_backups()
203 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &backup); in update_backups()
212 backup_di->i_blkno = cpu_to_le64(blkno); in update_backups()
Ddir.c675 struct inode *inode, u64 blkno, in __ocfs2_add_entry() argument
756 if (blkno) { in __ocfs2_add_entry()
757 de->inode = cpu_to_le64(blkno); in __ocfs2_add_entry()
1072 u64 *blkno, in ocfs2_find_files_on_disk() argument
1080 namelen, name, blkno, inode, dirent_bh, dirent); in ocfs2_find_files_on_disk()
1088 *blkno = le64_to_cpu((*dirent)->inode); in ocfs2_find_files_on_disk()
1107 int namelen, u64 *blkno) in ocfs2_lookup_ino_from_name() argument
1113 ret = ocfs2_find_files_on_disk(name, namelen, blkno, dir, &bh, &dirent); in ocfs2_lookup_ino_from_name()
1404 u64 blkno, bytes = blocks_wanted << sb->s_blocksize_bits; in ocfs2_expand_inline_dir() local
1472 blkno = ocfs2_clusters_to_blocks(dir->i_sb, bit_off); in ocfs2_expand_inline_dir()
[all …]
/fs/xfs/
Dxfs_da_btree.c110 xfs_da_node_create(xfs_da_args_t *args, xfs_dablk_t blkno, int level, in xfs_da_node_create() argument
119 error = xfs_da_get_buf(tp, args->dp, blkno, -1, &bp, whichfork); in xfs_da_node_create()
259 if (be32_to_cpu(node->hdr.info.forw) == addblk->blkno) { in xfs_da_split()
266 node->hdr.info.back = cpu_to_be32(oldblk->blkno); in xfs_da_split()
273 if (be32_to_cpu(node->hdr.info.back) == addblk->blkno) { in xfs_da_split()
280 node->hdr.info.forw = cpu_to_be32(oldblk->blkno); in xfs_da_split()
302 xfs_dablk_t blkno; in xfs_da_root_split() local
316 error = xfs_da_grow_inode(args, &blkno); in xfs_da_root_split()
322 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, args->whichfork); in xfs_da_root_split()
341 blk1->blkno = blkno; in xfs_da_root_split()
[all …]
Dxfs_trans_buf.c69 xfs_daddr_t blkno, in xfs_trans_get_buf() argument
83 bp = xfs_buf_get_flags(target_dev, blkno, len, in xfs_trans_get_buf()
95 bp = xfs_trans_buf_item_match(tp, target_dev, blkno, len); in xfs_trans_get_buf()
97 bp = xfs_trans_buf_item_match_all(tp, target_dev, blkno, len); in xfs_trans_get_buf()
132 bp = xfs_buf_get_flags(target_dev, blkno, len, flags | BUF_BUSY); in xfs_trans_get_buf()
289 xfs_daddr_t blkno, in xfs_trans_read_buf() argument
305 bp = xfs_buf_read_flags(target, blkno, len, flags | BUF_BUSY); in xfs_trans_read_buf()
312 bp, blkno); in xfs_trans_read_buf()
343 bp = xfs_trans_buf_item_match(tp, target, blkno, len); in xfs_trans_read_buf()
345 bp = xfs_trans_buf_item_match_all(tp, target, blkno, len); in xfs_trans_read_buf()
[all …]
Dxfs_attr_leaf.c81 xfs_dablk_t blkno, int blkcnt);
463 xfs_dablk_t blkno; in xfs_attr_shortform_to_leaf() local
478 error = xfs_da_grow_inode(args, &blkno); in xfs_attr_shortform_to_leaf()
491 ASSERT(blkno == 0); in xfs_attr_shortform_to_leaf()
492 error = xfs_attr_leaf_create(args, blkno, &bp); in xfs_attr_shortform_to_leaf()
557 !((cursor)->blkno) && !((cursor)->offset))
674 cursor->blkno = 0; in xfs_attr_shortform_list()
852 xfs_dablk_t blkno; in xfs_attr_leaf_to_node() local
857 error = xfs_da_grow_inode(args, &blkno); in xfs_attr_leaf_to_node()
866 error = xfs_da_get_buf(args->trans, args->dp, blkno, -1, &bp2, in xfs_attr_leaf_to_node()
[all …]
Dxfs_rw.c332 xfs_daddr_t blkno) in xfs_ioerror_alert() argument
339 (__uint64_t)blkno, func, in xfs_ioerror_alert()
357 xfs_daddr_t blkno, in xfs_read_buf() argument
366 bp = xfs_buf_read_flags(target, blkno, len, flags); in xfs_read_buf()
368 bp = xfs_buf_read(target, blkno, len, flags); in xfs_read_buf()
Dxfs_dir2_node.c332 args->blkno, args->index)); in xfs_dir2_leafn_add()
435 curfdb = state->extrablk.blkno; in xfs_dir2_leafn_lookup_for_addname()
524 state->extrablk.blkno = curfdb; in xfs_dir2_leafn_lookup_for_addname()
578 curdb = state->extrablk.blkno; in xfs_dir2_leafn_lookup_for_entry()
607 curdb != state->extrablk.blkno)) in xfs_dir2_leafn_lookup_for_entry()
614 newdb == state->extrablk.blkno) { in xfs_dir2_leafn_lookup_for_entry()
641 curdb != state->extrablk.blkno) in xfs_dir2_leafn_lookup_for_entry()
648 state->extrablk.blkno = curdb; in xfs_dir2_leafn_lookup_for_entry()
664 state->extrablk.blkno = curdb; in xfs_dir2_leafn_lookup_for_entry()
950 ASSERT(dblk->blkno == db); in xfs_dir2_leafn_remove()
[all …]
Dxfs_da_btree.h107 xfs_dablk_t blkno; /* blkno of attr leaf of interest */ member
146 xfs_daddr_t blkno; /* daddr first in bps[0] */ member
166 xfs_dablk_t blkno; /* filesystem blkno of buffer */ member
216 int xfs_da_node_create(xfs_da_args_t *args, xfs_dablk_t blkno, int level,
Dxfs_attr.c741 (cursor->hashval || cursor->blkno || cursor->offset)) in xfs_attr_list()
920 args->blkno = 0; in xfs_attr_leaf_addname()
921 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp, in xfs_attr_leaf_addname()
941 args->blkno2 = args->blkno; /* set 2nd entry info*/ in xfs_attr_leaf_addname()
1036 args->blkno = args->blkno2; in xfs_attr_leaf_addname()
1049 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, in xfs_attr_leaf_addname()
1118 args->blkno = 0; in xfs_attr_leaf_removename()
1119 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp, in xfs_attr_leaf_removename()
1177 args->blkno = 0; in xfs_attr_leaf_get()
1178 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp, in xfs_attr_leaf_get()
[all …]
Dxfs_rw.h76 xfs_daddr_t blkno, int len, uint flags,
79 xfs_buf_t *bp, xfs_daddr_t blkno);
/fs/gfs2/
Dmeta_io.c140 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create) in gfs2_getbuf() argument
151 index = blkno >> shift; /* convert block to page */ in gfs2_getbuf()
152 bufnum = blkno - (index << shift); /* block buf index within page */ in gfs2_getbuf()
176 map_bh(bh, sdp->sd_vfs, blkno); in gfs2_getbuf()
205 struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno) in gfs2_meta_new() argument
208 bh = gfs2_getbuf(gl, blkno, CREATE); in gfs2_meta_new()
223 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, in gfs2_meta_read() argument
226 *bhp = gfs2_getbuf(gl, blkno, CREATE); in gfs2_meta_read()
Dmeta_io.h46 struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno);
47 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno,
50 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create);
Dlops.c251 u64 blkno; in buf_lo_scan_elements() local
260 blkno = be64_to_cpu(*ptr++); in buf_lo_scan_elements()
264 if (gfs2_revoke_check(sdp, blkno, start)) in buf_lo_scan_elements()
271 bh_ip = gfs2_meta_new(gl, blkno); in buf_lo_scan_elements()
386 u64 blkno; in revoke_lo_scan_elements() local
404 blkno = be64_to_cpu(*(__be64 *)(bh->b_data + offset)); in revoke_lo_scan_elements()
406 error = gfs2_revoke_add(sdp, blkno, start); in revoke_lo_scan_elements()
647 u64 blkno; in databuf_lo_scan_elements() local
656 blkno = be64_to_cpu(*ptr++); in databuf_lo_scan_elements()
661 if (gfs2_revoke_check(sdp, blkno, start)) in databuf_lo_scan_elements()
[all …]
Drecovery.h24 extern int gfs2_revoke_add(struct gfs2_sbd *sdp, u64 blkno, unsigned int where);
25 extern int gfs2_revoke_check(struct gfs2_sbd *sdp, u64 blkno, unsigned int where);
Dtrans.c149 void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) in gfs2_trans_add_unrevoke() argument
157 if ((bd->bd_blkno >= blkno) && (bd->bd_blkno < (blkno + len))) { in gfs2_trans_add_unrevoke()
/fs/ufs/
Dballoc.c46 u64 blkno; in ufs_free_fragments() local
100 blkno = ufs_fragstoblks (bbase); in ufs_free_fragments()
101 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno)) { in ufs_free_fragments()
106 ufs_clusteracct (sb, ucpi, blkno, 1); in ufs_free_fragments()
148 u64 blkno; in ufs_free_blocks() local
191 blkno = ufs_fragstoblks(i); in ufs_free_blocks()
192 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno)) { in ufs_free_blocks()
195 ubh_setblock(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno); in ufs_free_blocks()
197 ufs_clusteracct (sb, ucpi, blkno, 1); in ufs_free_blocks()
716 u64 result, blkno; in ufs_alloccg_block() local
[all …]
/fs/xfs/linux-2.6/
Dxfs_buf.h186 #define xfs_incore(buftarg,blkno,len,lockit) \ argument
187 _xfs_buf_find(buftarg, blkno ,len, lockit, NULL)
191 #define xfs_buf_get(target, blkno, len, flags) \ argument
192 xfs_buf_get_flags((target), (blkno), (len), XBF_LOCK | XBF_MAPPED)
196 #define xfs_buf_read(target, blkno, len, flags) \ argument
197 xfs_buf_read_flags((target), (blkno), (len), XBF_LOCK | XBF_MAPPED)

12