| /fs/xfs/scrub/ |
| A D | dabtree.c | 102 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_da_btree_node_entry() local 281 altpath->blk[plevel].bp == path->blk[plevel].bp)) in xchk_da_btree_block_check_sibling() 345 blk = &ds->state->path.blk[level]; in xchk_da_btree_block() 349 if (blk->bp) { in xchk_da_btree_block() 351 blk->bp = NULL; in xchk_da_btree_block() 365 if (blk->bp) in xchk_da_btree_block() 410 blk->hashval = xfs_attr_leaf_lasthash(blk->bp, pmaxrecs); in xchk_da_btree_block() 419 blk->hashval = xfs_dir2_leaf_lasthash(ip, blk->bp, pmaxrecs); in xchk_da_btree_block() 428 blk->hashval = xfs_dir2_leaf_lasthash(ip, blk->bp, pmaxrecs); in xchk_da_btree_block() 486 blk->bp = NULL; in xchk_da_btree_block() [all …]
|
| A D | attr.c | 387 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_xattr_block() local 388 struct xfs_buf *bp = blk->bp; in xchk_xattr_block() 401 if (*last_checked == blk->blkno) in xchk_xattr_block() 404 *last_checked = blk->blkno; in xchk_xattr_block() 429 if (blk->blkno == 0) in xchk_xattr_block() 487 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_xattr_rec() local 498 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xchk_xattr_rec() 500 ent = xfs_attr3_leaf_entryp(blk->bp->b_addr) + blk->index; in xchk_xattr_rec() 515 bp = blk->bp; in xchk_xattr_rec()
|
| /fs/quota/ |
| A D | quota_tree.c | 119 int ret, blk; in get_free_dqblk() local 142 ret = blk; in get_free_dqblk() 167 uint blk) in remove_free_dqentry() argument 214 uint blk) in insert_free_dqentry() argument 262 uint blk, i; in find_free_dqentry() local 284 *err = blk; in find_free_dqentry() 321 blk); in find_free_dqentry() 328 return blk; in find_free_dqentry() 480 uint blk) in free_dqentry() argument 498 blk); in free_dqentry() [all …]
|
| /fs/affs/ |
| A D | bitmap.c | 44 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local 144 blk = goal - sbi->s_reserved; in affs_alloc_block() 182 bit = blk % sbi->s_bmap_bits; in affs_alloc_block() 186 blk &= ~31UL; in affs_alloc_block() 194 blk += 32; in affs_alloc_block() 207 blk += bit + sbi->s_reserved; in affs_alloc_block() 231 pr_debug("%d\n", blk); in affs_alloc_block() 232 return blk; in affs_alloc_block() 276 end = blk + 25; in affs_init_bitmap() 300 if (++blk < end || i == 1) in affs_init_bitmap() [all …]
|
| A D | file.c | 871 u32 last_blk, blkcnt, blk; in affs_truncate() local 928 blk = last_blk; in affs_truncate() 931 blk++; in affs_truncate() 936 if (size > blkcnt - blk + i) in affs_truncate() 937 size = blkcnt - blk + i; in affs_truncate() 938 for (; i < size; i++, blk++) { in affs_truncate() 974 if (size > blkcnt - blk) in affs_truncate() 975 size = blkcnt - blk; in affs_truncate() 976 for (i = 0; i < size; i++, blk++) in affs_truncate()
|
| /fs/xfs/libxfs/ |
| A D | xfs_attr.c | 133 for (blk = path->blk, level = 0; level < path->active; blk++, level++) { 134 if (blk->bp) { 135 blk->disk_blkno = xfs_buf_daddr(blk->bp); 148 for (blk = path->blk, level = 0; level < path->active; blk++, level++) { 149 if (blk->bp) { 150 blk->disk_blkno = xfs_buf_daddr(blk->bp); 181 for (blk = path->blk, level = 0; level < path->active; blk++, level++) { 199 for (blk = path->blk, level = 0; level < path->active; blk++, level++) { 1407 blk = &state->path.blk[state->path.active-1]; in xfs_attr_node_try_addname() 1454 blk = &state->path.blk[state->path.active-1]; in xfs_attr_node_removename() [all …]
|
| A D | xfs_da_btree.c | 1332 blk = &state->path.blk[ state->path.active-1 ]; in xfs_da3_node_toosmall() 1472 blk = &path->blk[ level ]; in xfs_da3_fixhashpath() 1490 for (blk--, level--; level >= 0; blk--, level--) { in xfs_da3_fixhashpath() 1676 for (blk = &state->path.blk[0], state->path.active = 1; in xfs_da3_node_lookup_int() 1702 blk->hashval = xfs_attr_leaf_lasthash(blk->bp, NULL); in xfs_da3_node_lookup_int() 2130 blk = &path->blk[level]; in xfs_da3_path_shift() 2135 blk->index++; in xfs_da3_path_shift() 2139 blk->index--; in xfs_da3_path_shift() 2154 for (blk++, level++; level < path->active; blk++, level++) { in xfs_da3_path_shift() 2172 blk->bp = bp; in xfs_da3_path_shift() [all …]
|
| A D | xfs_dir2_node.c | 1517 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_leafn_toosmall() 1518 leaf = blk->bp->b_addr; in xfs_dir2_leafn_toosmall() 1607 if (blkno < blk->blkno) in xfs_dir2_leafn_toosmall() 2049 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_node_addname() 2054 rval = xfs_dir2_leafn_add(blk->bp, args, blk->index); in xfs_dir2_node_addname() 2120 state->path.blk[i].bp = NULL; in xfs_dir2_node_lookup() 2163 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_node_removename() 2170 error = xfs_dir2_leafn_remove(args, blk->bp, blk->index, in xfs_dir2_node_removename() 2241 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_node_replace() 2246 blk->bp->b_addr); in xfs_dir2_node_replace() [all …]
|
| /fs/xfs/ |
| A D | xfs_buf_item_recover.c | 820 void *blk = bp->b_addr; in xlog_recover_get_buf_lsn() local 838 magic32 = be32_to_cpu(*(__be32 *)blk); in xlog_recover_get_buf_lsn() 842 struct xfs_rtbuf_blkinfo *hdr = blk; in xlog_recover_get_buf_lsn() 858 struct xfs_btree_block *btb = blk; in xlog_recover_get_buf_lsn() 868 struct xfs_btree_block *btb = blk; in xlog_recover_get_buf_lsn() 876 uuid = &((struct xfs_agf *)blk)->agf_uuid; in xlog_recover_get_buf_lsn() 880 uuid = &((struct xfs_agfl *)blk)->agfl_uuid; in xlog_recover_get_buf_lsn() 884 uuid = &((struct xfs_agi *)blk)->agi_uuid; in xlog_recover_get_buf_lsn() 917 uuid = &((struct xfs_dsb *)blk)->sb_uuid; in xlog_recover_get_buf_lsn() 936 uuid = &((struct xfs_da3_blkinfo *)blk)->uuid; in xlog_recover_get_buf_lsn() [all …]
|
| /fs/pstore/ |
| A D | Kconfig | 88 The common layer for pstore/blk (and pstore/ram in the future) 101 For more information, see Documentation/admin-guide/pstore-blk.rst 110 Which block device should be used for pstore/blk. 132 pstore/blk, but module parameters have priority over Kconfig. 140 pstore/blk. The size is in KB and must be a multiple of 4. 143 pstore/blk, but module parameters have priority over Kconfig. 155 pstore/blk, but module parameters have priority over Kconfig. 167 pstore/blk, but module parameters have priority over Kconfig. 176 pstore/blk. The size is in KB and must be a multiple of 4. 179 pstore/blk, but module parameters have priority over Kconfig. [all …]
|
| /fs/gfs2/ |
| A D | recovery.h | 14 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 int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk,
|
| A D | dir.c | 1981 u64 blk, nblk; in leaf_dealloc() local 2006 for (blk = leaf_no; blk; blk = nblk) { in leaf_dealloc() 2007 if (blk != leaf_no) { in leaf_dealloc() 2008 error = get_leaf(dip, blk, &bh); in leaf_dealloc() 2014 if (blk != leaf_no) in leaf_dealloc() 2017 gfs2_rlist_add(dip, &rlist, blk); in leaf_dealloc() 2042 for (blk = leaf_no; blk; blk = nblk) { in leaf_dealloc() 2045 if (blk != leaf_no) { in leaf_dealloc() 2046 error = get_leaf(dip, blk, &bh); in leaf_dealloc() 2052 if (blk != leaf_no) in leaf_dealloc() [all …]
|
| A D | recovery.c | 32 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() 166 static int get_log_header(struct gfs2_jdesc *jd, unsigned int blk, in get_log_header() argument 173 error = gfs2_replay_read_block(jd, blk, &bh); in get_log_header() 178 blk, head); in get_log_header()
|
| /fs/ext4/ |
| A D | balloc.c | 353 ext4_fsblk_t blk; in ext4_valid_block_bitmap() local 369 offset = blk - group_first_block; in ext4_valid_block_bitmap() 373 return blk; in ext4_valid_block_bitmap() 381 return blk; in ext4_valid_block_bitmap() 388 return blk; in ext4_valid_block_bitmap() 395 return blk; in ext4_valid_block_bitmap() 404 ext4_fsblk_t blk; in ext4_validate_block_bitmap() local 429 if (unlikely(blk != 0)) { in ext4_validate_block_bitmap() 432 block_group, blk); in ext4_validate_block_bitmap() 438 if (unlikely(blk != 0)) { in ext4_validate_block_bitmap() [all …]
|
| A D | block_validity.c | 353 unsigned int blk; in ext4_check_blockref() local 360 blk = le32_to_cpu(*bref++); in ext4_check_blockref() 361 if (blk && in ext4_check_blockref() 362 unlikely(!ext4_inode_block_valid(inode, blk, 1))) { in ext4_check_blockref() 363 ext4_error_inode(inode, function, line, blk, in ext4_check_blockref()
|
| A D | orphan.c | 196 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()
|
| A D | resize.c | 424 ext4_fsblk_t blk) in bclean() argument 429 bh = sb_getblk(sb, blk); in bclean() 781 const ext4_fsblk_t blk = primary->b_blocknr; in verify_reserved_gdb() local 791 grp * EXT4_BLOCKS_PER_GROUP(sb) + blk){ in verify_reserved_gdb() 794 blk, grp, in verify_reserved_gdb() 797 blk); in verify_reserved_gdb() 1028 ext4_fsblk_t blk; in reserve_backup_gdb() local 1053 if (le32_to_cpu(*data) != blk) { in reserve_backup_gdb() 1056 blk, in reserve_backup_gdb() 1061 primary[res] = ext4_sb_bread(sb, blk, 0); in reserve_backup_gdb() [all …]
|
| A D | migrate.c | 606 ext4_fsblk_t blk; in ext4_ind_migrate() local 647 blk = len = start = end = 0; in ext4_ind_migrate() 650 blk = ext4_ext_pblock(ex); in ext4_ind_migrate() 662 ei->i_data[i] = cpu_to_le32(blk++); in ext4_ind_migrate()
|
| /fs/f2fs/ |
| A D | extent_cache.c | 39 ei.blk, ei.fofs, ei.len); in sanity_check_extent_cache() 47 if (FDEV(devi).start_blk != ei.blk || in sanity_check_extent_cache() 76 block_t blk, bool keep_clen, in __set_extent_info() argument 84 ei->blk = blk; in __set_extent_info() 160 back->blk + back->len == front->blk); in __is_extent_mergeable() 556 next_ex->ei.blk = ei->blk; in __try_merge_extent_node() 669 tei->blk, 0); in __update_extent_tree_range() 773 if (tei->blk) { in __update_extent_tree_range() 943 ei.blk = NULL_ADDR; in __update_extent_cache() 945 ei.blk = dn->data_blkaddr; in __update_extent_cache() [all …]
|
| /fs/squashfs/ |
| A D | namei.c | 194 unsigned int blk, off, ino_num; in squashfs_lookup() local 196 blk = le32_to_cpu(dirh.start_block); in squashfs_lookup() 200 ino = SQUASHFS_MKINODE(blk, off); in squashfs_lookup() 204 blk, off, ino_num); in squashfs_lookup()
|
| A D | export.c | 42 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/freevxfs/ |
| A D | vxfs_super.c | 126 unsigned blk, __fs32 magic) in vxfs_try_sb_magic() argument 134 bp = sb_bread(sbp, blk); in vxfs_try_sb_magic() 140 blk); in vxfs_try_sb_magic() 151 rsbp->vs_magic, blk); in vxfs_try_sb_magic()
|
| /fs/ufs/ |
| A D | util.h | 330 u64 blk) in ubh_get_data_ptr() argument 333 return ubh_get_addr64(ubh, blk); in ubh_get_data_ptr() 335 return ubh_get_addr32(ubh, blk); in ubh_get_data_ptr() 544 unsigned blk) in ufs_get_direct_data_ptr() argument 546 BUG_ON(blk > UFS_TIND_BLOCK); in ufs_get_direct_data_ptr() 548 (void *)&ufsi->i_u1.u2_i_data[blk] : in ufs_get_direct_data_ptr() 549 (void *)&ufsi->i_u1.i_data[blk]; in ufs_get_direct_data_ptr()
|
| /fs/udf/ |
| A D | directory.c | 130 udf_pblk_t blk; in udf_readahead_dir() local 139 blk = udf_get_lb_pblock(iter->dir->i_sb, &iter->eloc, in udf_readahead_dir() 141 tmp = sb_getblk(iter->dir->i_sb, blk); in udf_readahead_dir() 156 udf_pblk_t blk; in udf_fiiter_bread_blk() local 159 blk = udf_get_lb_pblock(iter->dir->i_sb, &iter->eloc, iter->loffset); in udf_fiiter_bread_blk() 160 return sb_bread(iter->dir->i_sb, blk); in udf_fiiter_bread_blk()
|
| /fs/jfs/ |
| A D | super.c | 698 sector_t blk = off >> sb->s_blocksize_bits; in jfs_quota_read() local 717 err = jfs_get_block(inode, blk, &tmp_bh, 0); in jfs_quota_read() 732 blk++; in jfs_quota_read() 742 sector_t blk = off >> sb->s_blocksize_bits; in jfs_quota_write() local 756 err = jfs_get_block(inode, blk, &tmp_bh, 1); in jfs_quota_write() 777 blk++; in jfs_quota_write()
|