Home
last modified time | relevance | path

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

123

/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()
85 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_da_btree_node_entry() local
88 ASSERT(blk->magic == XFS_DA_NODE_MAGIC); in xchk_da_btree_node_entry()
90 xfs_da3_node_hdr_from_disk(ds->sc->mp, &hdr, blk->bp->b_addr); in xchk_da_btree_node_entry()
91 return hdr.btree + blk->index; in xchk_da_btree_node_entry()
252 if (altpath->blk[level].bp) in xchk_da_btree_block_check_sibling()
253 xchk_buffer_recheck(ds->sc, altpath->blk[level].bp); in xchk_da_btree_block_check_sibling()
256 if (altpath->blk[level].blkno != sibling) in xchk_da_btree_block_check_sibling()
262 if (altpath->blk[plevel].bp == NULL || 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()
335 *last_checked = blk->blkno; in xchk_xattr_block()
405 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_xattr_rec() local
417 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xchk_xattr_rec()
419 ent = xfs_attr3_leaf_entryp(blk->bp->b_addr) + blk->index; in xchk_xattr_rec()
434 bp = blk->bp; in xchk_xattr_rec()
Ddir.c204 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_dir_rec() local
224 ASSERT(blk->magic == XFS_DIR2_LEAF1_MAGIC || in xchk_dir_rec()
225 blk->magic == XFS_DIR2_LEAFN_MAGIC); in xchk_dir_rec()
227 xfs_dir2_leaf_hdr_from_disk(mp, &hdr, blk->bp->b_addr); in xchk_dir_rec()
228 ent = hdr.ents + blk->index; in xchk_dir_rec()
/fs/quota/
Dquota_tree.c50 static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in read_blk() argument
56 info->dqi_usable_bs, (loff_t)blk << info->dqi_blocksize_bits); in read_blk()
59 static ssize_t write_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in write_blk() argument
65 info->dqi_usable_bs, (loff_t)blk << info->dqi_blocksize_bits); in write_blk()
108 int ret, blk; in get_free_dqblk() local
113 blk = info->dqi_free_blk; in get_free_dqblk()
114 ret = read_blk(info, blk, buf); in get_free_dqblk()
128 blk = info->dqi_blocks++; in get_free_dqblk()
131 ret = blk; in get_free_dqblk()
138 static int put_free_dqblk(struct qtree_mem_dqinfo *info, char *buf, uint blk) in put_free_dqblk() argument
[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.c866 u32 last_blk, blkcnt, blk; in affs_truncate() local
923 blk = last_blk; in affs_truncate()
926 blk++; in affs_truncate()
931 if (size > blkcnt - blk + i) in affs_truncate()
932 size = blkcnt - blk + i; in affs_truncate()
933 for (; i < size; i++, blk++) { in affs_truncate()
969 if (size > blkcnt - blk) in affs_truncate()
970 size = blkcnt - blk; in affs_truncate()
971 for (i = 0; i < size; i++, blk++) in affs_truncate()
/fs/xfs/libxfs/
Dxfs_attr.c1164 struct xfs_da_state_blk *blk; in xfs_attr_node_addname() local
1169 blk = &state->path.blk[state->path.active-1]; in xfs_attr_node_addname()
1170 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname()
1172 error = xfs_attr3_leaf_add(blk->bp, state->args); in xfs_attr_node_addname()
1279 ASSERT(state->path.blk[0].bp); in xfs_attr_node_shrink()
1280 state->path.blk[0].bp = NULL; in xfs_attr_node_shrink()
1340 ASSERT((*state)->path.blk[(*state)->path.active - 1].bp != NULL); in xfs_attr_node_removename_setup()
1341 ASSERT((*state)->path.blk[(*state)->path.active - 1].magic == in xfs_attr_node_removename_setup()
1363 struct xfs_da_state_blk *blk; in xfs_attr_node_removename() local
1369 blk = &state->path.blk[state->path.active-1]; in xfs_attr_node_removename()
[all …]
Dxfs_da_btree.c102 state->altpath.blk[i].bp = NULL; in xfs_da_state_kill_altpath()
493 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split()
494 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
496 addblk = &state->path.blk[max]; /* initial dummy value */ in xfs_da3_split()
498 oldblk = &state->path.blk[i]; in xfs_da3_split()
499 newblk = &state->altpath.blk[i]; in xfs_da3_split()
574 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
580 oldblk = &state->path.blk[0]; in xfs_da3_split()
1072 drop_blk = &state->path.blk[ state->path.active-1 ]; in xfs_da3_join()
1073 save_blk = &state->altpath.blk[ state->path.active-1 ]; in xfs_da3_join()
[all …]
Dxfs_dir2_node.c1488 xfs_da_state_blk_t *blk; /* leaf block */ in xfs_dir2_leafn_toosmall() local
1507 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_leafn_toosmall()
1508 leaf = blk->bp->b_addr; in xfs_dir2_leafn_toosmall()
1511 xfs_dir3_leaf_check(dp, blk->bp); in xfs_dir2_leafn_toosmall()
1596 if (blkno < blk->blkno) in xfs_dir2_leafn_toosmall()
2008 xfs_da_state_blk_t *blk; /* leaf block for insert */ in xfs_dir2_node_addname() local
2038 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_node_addname()
2039 ASSERT(blk->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_node_addname()
2043 rval = xfs_dir2_leafn_add(blk->bp, args, blk->index); in xfs_dir2_node_addname()
2108 xfs_trans_brelse(args->trans, state->path.blk[i].bp); in xfs_dir2_node_lookup()
[all …]
/fs/xfs/
Dxfs_buf_item_recover.c716 void *blk = bp->b_addr; in xlog_recover_get_buf_lsn() local
733 magic32 = be32_to_cpu(*(__be32 *)blk); in xlog_recover_get_buf_lsn()
745 struct xfs_btree_block *btb = blk; in xlog_recover_get_buf_lsn()
753 struct xfs_btree_block *btb = blk; in xlog_recover_get_buf_lsn()
760 lsn = be64_to_cpu(((struct xfs_agf *)blk)->agf_lsn); in xlog_recover_get_buf_lsn()
761 uuid = &((struct xfs_agf *)blk)->agf_uuid; in xlog_recover_get_buf_lsn()
764 lsn = be64_to_cpu(((struct xfs_agfl *)blk)->agfl_lsn); in xlog_recover_get_buf_lsn()
765 uuid = &((struct xfs_agfl *)blk)->agfl_uuid; in xlog_recover_get_buf_lsn()
768 lsn = be64_to_cpu(((struct xfs_agi *)blk)->agi_lsn); in xlog_recover_get_buf_lsn()
769 uuid = &((struct xfs_agi *)blk)->agi_uuid; in xlog_recover_get_buf_lsn()
[all …]
/fs/ext4/
Dballoc.c349 ext4_fsblk_t blk; in ext4_valid_block_bitmap() local
364 blk = ext4_block_bitmap(sb, desc); in ext4_valid_block_bitmap()
365 offset = blk - group_first_block; in ext4_valid_block_bitmap()
369 return blk; in ext4_valid_block_bitmap()
372 blk = ext4_inode_bitmap(sb, desc); in ext4_valid_block_bitmap()
373 offset = blk - group_first_block; in ext4_valid_block_bitmap()
377 return blk; in ext4_valid_block_bitmap()
380 blk = ext4_inode_table(sb, desc); in ext4_valid_block_bitmap()
381 offset = blk - group_first_block; in ext4_valid_block_bitmap()
384 return blk; in ext4_valid_block_bitmap()
[all …]
Dblock_validity.c353 unsigned int blk; in ext4_check_blockref() local
361 blk = le32_to_cpu(*bref++); in ext4_check_blockref()
362 if (blk && in ext4_check_blockref()
363 unlikely(!ext4_inode_block_valid(inode, blk, 1))) { in ext4_check_blockref()
364 ext4_error_inode(inode, function, line, blk, in ext4_check_blockref()
Dorphan.c196 int blk, off; in ext4_orphan_file_del() local
202 blk = EXT4_I(inode)->i_orphan_idx / inodes_per_ob; in ext4_orphan_file_del()
204 if (WARN_ON_ONCE(blk >= oi->of_blocks)) in ext4_orphan_file_del()
208 oi->of_binfo[blk].ob_bh, EXT4_JTR_ORPHAN_FILE); in ext4_orphan_file_del()
212 bdata = (__le32 *)(oi->of_binfo[blk].ob_bh->b_data); in ext4_orphan_file_del()
214 atomic_inc(&oi->of_binfo[blk].ob_free_entries); in ext4_orphan_file_del()
215 ret = ext4_handle_dirty_metadata(handle, NULL, oi->of_binfo[blk].ob_bh); in ext4_orphan_file_del()
Dresize.c421 ext4_fsblk_t blk) in bclean() argument
426 bh = sb_getblk(sb, blk); in bclean()
770 const ext4_fsblk_t blk = primary->b_blocknr; in verify_reserved_gdb() local
780 grp * EXT4_BLOCKS_PER_GROUP(sb) + blk){ in verify_reserved_gdb()
783 blk, grp, in verify_reserved_gdb()
786 blk); in verify_reserved_gdb()
1011 ext4_fsblk_t blk; in reserve_backup_gdb() local
1029 blk = EXT4_SB(sb)->s_sbh->b_blocknr + 1 + EXT4_SB(sb)->s_gdb_count; in reserve_backup_gdb()
1035 for (res = 0; res < reserved_gdb; res++, blk++) { in reserve_backup_gdb()
1036 if (le32_to_cpu(*data) != blk) { in reserve_backup_gdb()
[all …]
Dmigrate.c606 ext4_fsblk_t blk; in ext4_ind_migrate() local
646 blk = len = start = end = 0; in ext4_ind_migrate()
649 blk = ext4_ext_pblock(ex); in ext4_ind_migrate()
661 ei->i_data[i] = cpu_to_le32(blk++); in ext4_ind_migrate()
/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,
Ddir.c1980 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()
2041 for (blk = leaf_no; blk; blk = nblk) { in leaf_dealloc()
2044 if (blk != leaf_no) { in leaf_dealloc()
2045 error = get_leaf(dip, blk, &bh); in leaf_dealloc()
2051 if (blk != leaf_no) in leaf_dealloc()
[all …]
Drecovery.c32 int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk, in gfs2_replay_read_block() argument
42 error = gfs2_get_extent(&ip->i_inode, blk, &dblock, &extlen); in gfs2_replay_read_block()
167 static int get_log_header(struct gfs2_jdesc *jd, unsigned int blk, in get_log_header() argument
174 error = gfs2_replay_read_block(jd, blk, &bh); in get_log_header()
179 blk, head); in get_log_header()
/fs/pstore/
DKconfig170 The common layer for pstore/blk (and pstore/ram in the future)
183 For more information, see Documentation/admin-guide/pstore-blk.rst
192 Which block device should be used for pstore/blk.
214 pstore/blk, but module parameters have priority over Kconfig.
222 pstore/blk. The size is in KB and must be a multiple of 4.
225 pstore/blk, but module parameters have priority over Kconfig.
237 pstore/blk, but module parameters have priority over Kconfig.
245 This just sets size of pmsg (pmsg_size) for pstore/blk. The size is
249 pstore/blk, but module parameters have priority over Kconfig.
258 pstore/blk. The size is in KB and must be a multiple of 4.
[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
53 start = le64_to_cpu(msblk->inode_lookup_table[blk]); in squashfs_inode_lookup()
/fs/erofs/
Dsuper.c133 erofs_blk_t blk; in erofs_read_metadata() local
136 blk = erofs_blknr(*offset); in erofs_read_metadata()
138 if (!page || page->index != blk) { in erofs_read_metadata()
143 page = erofs_get_meta_page(sb, blk); in erofs_read_metadata()
162 blk = erofs_blknr(*offset); in erofs_read_metadata()
164 if (!page || page->index != blk) { in erofs_read_metadata()
170 page = erofs_get_meta_page(sb, blk); in erofs_read_metadata()
288 erofs_blk_t blk = erofs_blknr(pos); in erofs_init_devices() local
291 if (!page || page->index != blk) { in erofs_init_devices()
298 page = erofs_get_meta_page(sb, blk); in erofs_init_devices()
/fs/freevxfs/
Dvxfs_super.c150 unsigned blk, __fs32 magic) in vxfs_try_sb_magic() argument
157 bp = sb_bread(sbp, blk); in vxfs_try_sb_magic()
163 blk); in vxfs_try_sb_magic()
174 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()

123