Home
last modified time | relevance | path

Searched refs:blk (Results 1 – 25 of 55) sorted by relevance

123

/fs/quota/
Dquota_tree.c59 static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in read_blk() argument
65 info->dqi_usable_bs, blk << info->dqi_blocksize_bits); in read_blk()
68 static ssize_t write_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in write_blk() argument
74 info->dqi_usable_bs, blk << info->dqi_blocksize_bits); in write_blk()
88 int ret, blk; in get_free_dqblk() local
93 blk = info->dqi_free_blk; in get_free_dqblk()
94 ret = read_blk(info, blk, buf); in get_free_dqblk()
105 blk = info->dqi_blocks++; in get_free_dqblk()
108 ret = blk; in get_free_dqblk()
115 static int put_free_dqblk(struct qtree_mem_dqinfo *info, char *buf, uint blk) in put_free_dqblk() argument
[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()
88 struct xfs_da_state_blk *blk; in xchk_da_btree_entry() local
92 blk = &ds->state->path.blk[level]; in xchk_da_btree_entry()
93 baddr = blk->bp->b_addr; in xchk_da_btree_entry()
94 switch (blk->magic) { in xchk_da_btree_entry()
138 blks = ds->state->path.blk; in xchk_da_btree_hash()
274 if (ds->state->altpath.blk[level].bp) in xchk_da_btree_block_check_sibling()
276 ds->state->altpath.blk[level].bp); in xchk_da_btree_block_check_sibling()
279 if (ds->state->altpath.blk[level].blkno != sibling) in xchk_da_btree_block_check_sibling()
[all …]
Dattr.c308 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_xattr_block() local
309 struct xfs_buf *bp = blk->bp; in xchk_xattr_block()
323 if (*last_checked == blk->blkno) in xchk_xattr_block()
334 *last_checked = blk->blkno; in xchk_xattr_block()
406 struct xfs_da_state_blk *blk; in xchk_xattr_rec() local
417 blk = &ds->state->path.blk[level]; in xchk_xattr_rec()
432 bp = blk->bp; in xchk_xattr_rec()
/fs/xfs/libxfs/
Dxfs_attr.c849 struct xfs_da_state_blk *blk; in xfs_attr_node_addname() local
873 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname()
874 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname()
901 retval = xfs_attr3_leaf_add(blk->bp, state->args); in xfs_attr_node_addname()
1022 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname()
1023 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname()
1024 error = xfs_attr3_leaf_remove(blk->bp, args); in xfs_attr_node_addname()
1076 struct xfs_da_state_blk *blk; in xfs_attr_node_removename() local
1106 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_removename()
1107 ASSERT(blk->bp != NULL); in xfs_attr_node_removename()
[all …]
Dxfs_da_btree.c96 state->altpath.blk[i].bp = NULL; in xfs_da_state_kill_altpath()
401 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split()
402 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
404 addblk = &state->path.blk[max]; /* initial dummy value */ in xfs_da3_split()
406 oldblk = &state->path.blk[i]; in xfs_da3_split()
407 newblk = &state->altpath.blk[i]; in xfs_da3_split()
482 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
488 oldblk = &state->path.blk[0]; in xfs_da3_split()
977 drop_blk = &state->path.blk[ state->path.active-1 ]; in xfs_da3_join()
978 save_blk = &state->altpath.blk[ state->path.active-1 ]; in xfs_da3_join()
[all …]
Dxfs_dir2_node.c1426 xfs_da_state_blk_t *blk; /* leaf block */ in xfs_dir2_leafn_toosmall() local
1445 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_leafn_toosmall()
1446 leaf = blk->bp->b_addr; in xfs_dir2_leafn_toosmall()
1449 xfs_dir3_leaf_check(dp, blk->bp); in xfs_dir2_leafn_toosmall()
1535 if (blkno < blk->blkno) in xfs_dir2_leafn_toosmall()
1965 xfs_da_state_blk_t *blk; /* leaf block for insert */ in xfs_dir2_node_addname() local
1997 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_node_addname()
1998 ASSERT(blk->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_node_addname()
2002 rval = xfs_dir2_leafn_add(blk->bp, args, blk->index); in xfs_dir2_node_addname()
2068 xfs_trans_brelse(args->trans, state->path.blk[i].bp); in xfs_dir2_node_lookup()
[all …]
/fs/affs/
Dbitmap.c44 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local
52 blk = block - sbi->s_reserved; in affs_free_block()
53 bmap = blk / sbi->s_bmap_bits; in affs_free_block()
54 bit = blk % sbi->s_bmap_bits; in affs_free_block()
122 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local
144 blk = goal - sbi->s_reserved; in affs_alloc_block()
145 bmap = blk / sbi->s_bmap_bits; in affs_alloc_block()
167 blk = bmap * sbi->s_bmap_bits; in affs_alloc_block()
182 bit = blk % sbi->s_bmap_bits; in affs_alloc_block()
186 blk &= ~31UL; in affs_alloc_block()
[all …]
Dfile.c839 u32 last_blk, blkcnt, blk; in affs_truncate() local
896 blk = last_blk; in affs_truncate()
899 blk++; in affs_truncate()
904 if (size > blkcnt - blk + i) in affs_truncate()
905 size = blkcnt - blk + i; in affs_truncate()
906 for (; i < size; i++, blk++) { in affs_truncate()
942 if (size > blkcnt - blk) in affs_truncate()
943 size = blkcnt - blk; in affs_truncate()
944 for (i = 0; i < size; i++, blk++) in affs_truncate()
/fs/adfs/
Ddir_f.c131 int blk = 0; in adfs_dir_read() local
145 for (blk = 0; blk < size; blk++) { in adfs_dir_read()
148 phys = __adfs_block_map(sb, indaddr, blk); in adfs_dir_read()
151 indaddr, blk); in adfs_dir_read()
155 dir->bh[blk] = sb_bread(sb, phys); in adfs_dir_read()
156 if (!dir->bh[blk]) in adfs_dir_read()
174 dir->nr_buffers = blk; in adfs_dir_read()
181 for (blk -= 1; blk >= 0; blk -= 1) in adfs_dir_read()
182 brelse(dir->bh[blk]); in adfs_dir_read()
Ddir_fplus.c17 unsigned int blk, size; in adfs_fplus_read() local
69 for (blk = 1; blk < size; blk++) { in adfs_fplus_read()
70 block = __adfs_block_map(sb, id, blk); in adfs_fplus_read()
72 adfs_error(sb, "dir object %X has a hole at offset %d", id, blk); in adfs_fplus_read()
76 dir->bh_fplus[blk] = sb_bread(sb, block); in adfs_fplus_read()
77 if (!dir->bh_fplus[blk]) { in adfs_fplus_read()
79 id, blk, block); in adfs_fplus_read()
/fs/gfs2/
Drecovery.h14 static inline void gfs2_replay_incr_blk(struct gfs2_jdesc *jd, u32 *blk) in gfs2_replay_incr_blk() argument
16 if (++*blk == jd->jd_blocks) in gfs2_replay_incr_blk()
17 *blk = 0; in gfs2_replay_incr_blk()
20 extern int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk,
Drecovery.c32 int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk, in gfs2_replay_read_block() argument
42 error = gfs2_extent_map(&ip->i_inode, blk, &new, &dblock, &extlen); in gfs2_replay_read_block()
163 static int get_log_header(struct gfs2_jdesc *jd, unsigned int blk, in get_log_header() argument
170 error = gfs2_replay_read_block(jd, blk, &bh); in get_log_header()
175 blk, head); in get_log_header()
Ddir.c1979 u64 blk, nblk; in leaf_dealloc() local
2005 for (blk = leaf_no; blk; blk = nblk) { in leaf_dealloc()
2006 if (blk != leaf_no) { in leaf_dealloc()
2007 error = get_leaf(dip, blk, &bh); in leaf_dealloc()
2013 if (blk != leaf_no) in leaf_dealloc()
2016 gfs2_rlist_add(dip, &rlist, blk); in leaf_dealloc()
2040 for (blk = leaf_no; blk; blk = nblk) { in leaf_dealloc()
2043 if (blk != leaf_no) { in leaf_dealloc()
2044 error = get_leaf(dip, blk, &bh); in leaf_dealloc()
2050 if (blk != leaf_no) in leaf_dealloc()
[all …]
Drgrp.c196 static inline int rs_cmp(u64 blk, u32 len, struct gfs2_blkreserv *rs) in rs_cmp() argument
200 if (blk >= startblk + rs->rs_free) in rs_cmp()
202 if (blk + len - 1 < startblk) in rs_cmp()
508 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact) in gfs2_blk2rgrpd() argument
518 if (blk < cur->rd_addr) in gfs2_blk2rgrpd()
520 else if (blk >= cur->rd_data0 + cur->rd_data) in gfs2_blk2rgrpd()
525 if (blk < cur->rd_addr) in gfs2_blk2rgrpd()
527 if (blk >= cur->rd_data0 + cur->rd_data) in gfs2_blk2rgrpd()
1323 u64 blk; in gfs2_rgrp_send_discards() local
1344 blk = offset + ((bi->bi_start + x) * GFS2_NBBY); in gfs2_rgrp_send_discards()
[all …]
/fs/ext4/
Dballoc.c311 ext4_fsblk_t blk; in ext4_valid_block_bitmap() local
326 blk = ext4_block_bitmap(sb, desc); in ext4_valid_block_bitmap()
327 offset = blk - group_first_block; in ext4_valid_block_bitmap()
331 return blk; in ext4_valid_block_bitmap()
334 blk = ext4_inode_bitmap(sb, desc); in ext4_valid_block_bitmap()
335 offset = blk - group_first_block; in ext4_valid_block_bitmap()
339 return blk; in ext4_valid_block_bitmap()
342 blk = ext4_inode_table(sb, desc); in ext4_valid_block_bitmap()
343 offset = blk - group_first_block; in ext4_valid_block_bitmap()
346 return blk; in ext4_valid_block_bitmap()
[all …]
Dblock_validity.c365 unsigned int blk; in ext4_check_blockref() local
373 blk = le32_to_cpu(*bref++); in ext4_check_blockref()
374 if (blk && in ext4_check_blockref()
376 blk, 1))) { in ext4_check_blockref()
377 es->s_last_error_block = cpu_to_le64(blk); in ext4_check_blockref()
378 ext4_error_inode(inode, function, line, blk, in ext4_check_blockref()
Dresize.c371 ext4_fsblk_t blk) in bclean() argument
376 bh = sb_getblk(sb, blk); in bclean()
740 const ext4_fsblk_t blk = primary->b_blocknr; in verify_reserved_gdb() local
750 grp * EXT4_BLOCKS_PER_GROUP(sb) + blk){ in verify_reserved_gdb()
753 blk, grp, in verify_reserved_gdb()
756 blk); in verify_reserved_gdb()
973 ext4_fsblk_t blk; in reserve_backup_gdb() local
991 blk = EXT4_SB(sb)->s_sbh->b_blocknr + 1 + EXT4_SB(sb)->s_gdb_count; in reserve_backup_gdb()
997 for (res = 0; res < reserved_gdb; res++, blk++) { in reserve_backup_gdb()
998 if (le32_to_cpu(*data) != blk) { in reserve_backup_gdb()
[all …]
Dmigrate.c616 ext4_fsblk_t blk; in ext4_ind_migrate() local
652 blk = len = start = end = 0; in ext4_ind_migrate()
655 blk = ext4_ext_pblock(ex); in ext4_ind_migrate()
667 ei->i_data[i] = cpu_to_le32(blk++); in ext4_ind_migrate()
Dext4.h285 #define EXT4_B2C(sbi, blk) ((blk) >> (sbi)->s_cluster_bits) argument
2821 struct ext4_group_desc *bg, ext4_fsblk_t blk);
2823 struct ext4_group_desc *bg, ext4_fsblk_t blk);
2825 struct ext4_group_desc *bg, ext4_fsblk_t blk);
2875 ext4_fsblk_t blk) in ext4_blocks_count_set() argument
2877 es->s_blocks_count_lo = cpu_to_le32((u32)blk); in ext4_blocks_count_set()
2878 es->s_blocks_count_hi = cpu_to_le32(blk >> 32); in ext4_blocks_count_set()
2882 ext4_fsblk_t blk) in ext4_free_blocks_count_set() argument
2884 es->s_free_blocks_count_lo = cpu_to_le32((u32)blk); in ext4_free_blocks_count_set()
2885 es->s_free_blocks_count_hi = cpu_to_le32(blk >> 32); in ext4_free_blocks_count_set()
[all …]
/fs/squashfs/
Dnamei.c200 unsigned int blk, off, ino_num; in squashfs_lookup() local
202 blk = le32_to_cpu(dirh.start_block); in squashfs_lookup()
206 ino = SQUASHFS_MKINODE(blk, off); in squashfs_lookup()
210 blk, off, ino_num); in squashfs_lookup()
Dexport.c42 int blk = SQUASHFS_LOOKUP_BLOCK(ino_num - 1); in squashfs_inode_lookup() local
44 u64 start = le64_to_cpu(msblk->inode_lookup_table[blk]); in squashfs_inode_lookup()
/fs/freevxfs/
Dvxfs_super.c149 unsigned blk, __fs32 magic) in vxfs_try_sb_magic() argument
156 bp = sb_bread(sbp, blk); in vxfs_try_sb_magic()
162 blk); in vxfs_try_sb_magic()
173 rsbp->vs_magic, blk); in vxfs_try_sb_magic()
/fs/ufs/
Dutil.h343 u64 blk) in ubh_get_data_ptr() argument
346 return ubh_get_addr64(ubh, blk); in ubh_get_data_ptr()
348 return ubh_get_addr32(ubh, blk); in ubh_get_data_ptr()
553 unsigned blk) in ufs_get_direct_data_ptr() argument
555 BUG_ON(blk > UFS_TIND_BLOCK); in ufs_get_direct_data_ptr()
557 (void *)&ufsi->i_u1.u2_i_data[blk] : in ufs_get_direct_data_ptr()
558 (void *)&ufsi->i_u1.i_data[blk]; in ufs_get_direct_data_ptr()
/fs/jfs/
Dsuper.c739 sector_t blk = off >> sb->s_blocksize_bits; in jfs_quota_read() local
759 err = jfs_get_block(inode, blk, &tmp_bh, 0); in jfs_quota_read()
774 blk++; in jfs_quota_read()
784 sector_t blk = off >> sb->s_blocksize_bits; in jfs_quota_write() local
799 err = jfs_get_block(inode, blk, &tmp_bh, 1); in jfs_quota_write()
820 blk++; in jfs_quota_write()
/fs/xfs/
Dxfs_log_recover.c2192 void *blk = bp->b_addr; in xlog_recover_get_buf_lsn() local
2200 magic32 = be32_to_cpu(*(__be32 *)blk); in xlog_recover_get_buf_lsn()
2210 struct xfs_btree_block *btb = blk; in xlog_recover_get_buf_lsn()
2218 struct xfs_btree_block *btb = blk; in xlog_recover_get_buf_lsn()
2225 lsn = be64_to_cpu(((struct xfs_agf *)blk)->agf_lsn); in xlog_recover_get_buf_lsn()
2226 uuid = &((struct xfs_agf *)blk)->agf_uuid; in xlog_recover_get_buf_lsn()
2229 lsn = be64_to_cpu(((struct xfs_agfl *)blk)->agfl_lsn); in xlog_recover_get_buf_lsn()
2230 uuid = &((struct xfs_agfl *)blk)->agfl_uuid; in xlog_recover_get_buf_lsn()
2233 lsn = be64_to_cpu(((struct xfs_agi *)blk)->agi_lsn); in xlog_recover_get_buf_lsn()
2234 uuid = &((struct xfs_agi *)blk)->agi_uuid; in xlog_recover_get_buf_lsn()
[all …]

123