/fs/xfs/scrub/ |
D | btree.c | 127 struct xchk_btree *bs) in xchk_btree_rec() argument 129 struct xfs_btree_cur *cur = bs->cur; in xchk_btree_rec() 141 trace_xchk_btree_rec(bs->sc, cur, 0); in xchk_btree_rec() 144 if (!bs->firstrec && !cur->bc_ops->recs_inorder(cur, &bs->lastrec, rec)) in xchk_btree_rec() 145 xchk_btree_set_corrupt(bs->sc, cur, 0); in xchk_btree_rec() 146 bs->firstrec = false; in xchk_btree_rec() 147 memcpy(&bs->lastrec, rec, cur->bc_ops->rec_len); in xchk_btree_rec() 157 xchk_btree_set_corrupt(bs->sc, cur, 1); in xchk_btree_rec() 166 xchk_btree_set_corrupt(bs->sc, cur, 1); in xchk_btree_rec() 175 struct xchk_btree *bs, in xchk_btree_key() argument [all …]
|
D | ialloc.c | 101 struct xchk_btree *bs, in xchk_iallocbt_chunk() argument 106 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_chunk() 107 xfs_agnumber_t agno = bs->cur->bc_ag.pag->pag_agno; in xchk_iallocbt_chunk() 114 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_chunk() 116 xchk_iallocbt_chunk_xref(bs->sc, irec, agino, bno, len); in xchk_iallocbt_chunk() 146 struct xchk_btree *bs, in xchk_iallocbt_check_cluster_ifree() argument 151 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_check_cluster_ifree() 159 if (xchk_should_terminate(bs->sc, &error)) in xchk_iallocbt_check_cluster_ifree() 167 fsino = XFS_AGINO_TO_INO(mp, bs->cur->bc_ag.pag->pag_agno, agino); in xchk_iallocbt_check_cluster_ifree() 172 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster_ifree() [all …]
|
D | rmap.c | 90 struct xchk_btree *bs, in xchk_rmapbt_rec() argument 93 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_rmapbt_rec() 95 xfs_agnumber_t agno = bs->cur->bc_ag.pag->pag_agno; in xchk_rmapbt_rec() 103 if (!xchk_btree_process_error(bs->sc, bs->cur, 0, &error)) in xchk_rmapbt_rec() 108 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec() 118 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec() 127 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec() 137 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec() 140 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec() 143 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec() [all …]
|
D | refcount.c | 332 struct xchk_btree *bs, in xchk_refcountbt_rec() argument 335 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_refcountbt_rec() 336 xfs_agblock_t *cow_blocks = bs->private; in xchk_refcountbt_rec() 337 xfs_agnumber_t agno = bs->cur->bc_ag.pag->pag_agno; in xchk_refcountbt_rec() 350 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_refcountbt_rec() 359 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_refcountbt_rec() 362 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_refcountbt_rec() 364 xchk_refcountbt_xref(bs->sc, bno, len, refcount); in xchk_refcountbt_rec()
|
D | alloc.c | 93 struct xchk_btree *bs, in xchk_allocbt_rec() argument 96 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_allocbt_rec() 97 xfs_agnumber_t agno = bs->cur->bc_ag.pag->pag_agno; in xchk_allocbt_rec() 107 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_allocbt_rec() 109 xchk_allocbt_xref(bs->sc, bno, len); in xchk_allocbt_rec()
|
D | bmap.c | 386 struct xchk_btree *bs, in xchk_bmapbt_rec() argument 392 struct xchk_bmap_info *info = bs->private; in xchk_bmapbt_rec() 393 struct xfs_inode *ip = bs->cur->bc_ino.ip; in xchk_bmapbt_rec() 404 if (xfs_has_crc(bs->cur->bc_mp) && in xchk_bmapbt_rec() 405 bs->cur->bc_ptrs[0] == 1) { in xchk_bmapbt_rec() 406 for (i = 0; i < bs->cur->bc_nlevels - 1; i++) { in xchk_bmapbt_rec() 407 block = xfs_btree_get_block(bs->cur, i, &bp); in xchk_bmapbt_rec() 410 xchk_fblock_set_corrupt(bs->sc, in xchk_bmapbt_rec() 432 xchk_fblock_set_corrupt(bs->sc, info->whichfork, in xchk_bmapbt_rec()
|
D | btree.h | 29 struct xchk_btree *bs,
|
/fs/afs/ |
D | vl_list.c | 155 struct dns_server_list_v1_server bs; in afs_extract_vlserver_list() local 192 while (end - b >= sizeof(bs)) { in afs_extract_vlserver_list() 193 bs.name_len = afs_extract_le16(&b); in afs_extract_vlserver_list() 194 bs.priority = afs_extract_le16(&b); in afs_extract_vlserver_list() 195 bs.weight = afs_extract_le16(&b); in afs_extract_vlserver_list() 196 bs.port = afs_extract_le16(&b); in afs_extract_vlserver_list() 197 bs.source = *b++; in afs_extract_vlserver_list() 198 bs.status = *b++; in afs_extract_vlserver_list() 199 bs.protocol = *b++; in afs_extract_vlserver_list() 200 bs.nr_addrs = *b++; in afs_extract_vlserver_list() [all …]
|
/fs/ext4/ |
D | xattr.c | 1832 struct ext4_xattr_block_find *bs) in ext4_xattr_block_find() argument 1842 bs->bh = ext4_sb_bread(sb, EXT4_I(inode)->i_file_acl, REQ_PRIO); in ext4_xattr_block_find() 1843 if (IS_ERR(bs->bh)) { in ext4_xattr_block_find() 1844 error = PTR_ERR(bs->bh); in ext4_xattr_block_find() 1845 bs->bh = NULL; in ext4_xattr_block_find() 1848 ea_bdebug(bs->bh, "b_count=%d, refcount=%d", in ext4_xattr_block_find() 1849 atomic_read(&(bs->bh->b_count)), in ext4_xattr_block_find() 1850 le32_to_cpu(BHDR(bs->bh)->h_refcount)); in ext4_xattr_block_find() 1851 error = ext4_xattr_check_block(inode, bs->bh); in ext4_xattr_block_find() 1855 bs->s.base = BHDR(bs->bh); in ext4_xattr_block_find() [all …]
|
/fs/adfs/ |
D | dir_fplus.c | 74 unsigned int end, bs, bi, i; in adfs_fplus_checkbyte() local 84 bs = dir->bhs[bi]->b_size; in adfs_fplus_checkbyte() 85 if (bs > end) in adfs_fplus_checkbyte() 86 bs = end; in adfs_fplus_checkbyte() 88 for (i = 0; i < bs; i += sizeof(u32)) in adfs_fplus_checkbyte() 91 end -= bs; in adfs_fplus_checkbyte()
|
/fs/btrfs/ |
D | reflink.c | 638 const u64 bs = BTRFS_I(src)->root->fs_info->sb->s_blocksize; in btrfs_extent_same_range() local 646 ret = btrfs_clone(src, dst, loff, len, ALIGN(len, bs), dst_loff, 1); in btrfs_extent_same_range() 703 u64 bs = fs_info->sb->s_blocksize; in btrfs_clone_files() local 712 len = ALIGN(src->i_size, bs) - off; in btrfs_clone_files() 715 const u64 wb_start = ALIGN_DOWN(inode->i_size, bs); in btrfs_clone_files() 767 u64 bs = BTRFS_I(inode_out)->root->fs_info->sb->s_blocksize; in btrfs_remap_file_range_prep() local 804 wb_len = ALIGN(inode_in->i_size, bs) - ALIGN_DOWN(pos_in, bs); in btrfs_remap_file_range_prep() 806 wb_len = ALIGN(*len, bs); in btrfs_remap_file_range_prep() 838 ret = btrfs_wait_ordered_range(inode_in, ALIGN_DOWN(pos_in, bs), in btrfs_remap_file_range_prep() 842 ret = btrfs_wait_ordered_range(inode_out, ALIGN_DOWN(pos_out, bs), in btrfs_remap_file_range_prep()
|
D | send.c | 5589 u64 bs = sctx->send_root->fs_info->sb->s_blocksize; in send_write_or_clone() local 5595 if (clone_root && IS_ALIGNED(end, bs)) { in send_write_or_clone()
|
/fs/xfs/ |
D | xfs_health.c | 379 struct xfs_bulkstat *bs) in xfs_bulkstat_health() argument 385 bs->bs_sick = 0; in xfs_bulkstat_health() 386 bs->bs_checked = 0; in xfs_bulkstat_health() 391 bs->bs_checked |= m->ioctl_mask; in xfs_bulkstat_health() 393 bs->bs_sick |= m->ioctl_mask; in xfs_bulkstat_health()
|
/fs/ |
D | remap_range.c | 38 loff_t bs = inode_out->i_sb->s_blocksize; in generic_remap_checks() local 42 if (!IS_ALIGNED(pos_in, bs) || !IS_ALIGNED(pos_out, bs)) in generic_remap_checks() 76 bcount = ALIGN(size_in, bs) - pos_in; in generic_remap_checks() 78 if (!IS_ALIGNED(count, bs)) in generic_remap_checks() 79 count = ALIGN_DOWN(count, bs); in generic_remap_checks()
|
/fs/nfs/ |
D | nfs4file.c | 249 unsigned int bs = server->clone_blksize; in nfs42_remap_file_range() local 265 if (bs) { in nfs42_remap_file_range() 266 if (!IS_ALIGNED(src_off, bs) || !IS_ALIGNED(dst_off, bs)) in nfs42_remap_file_range() 268 if (!IS_ALIGNED(count, bs) && i_size_read(src_inode) != (src_off + count)) in nfs42_remap_file_range()
|
/fs/hpfs/ |
D | alloc.c | 119 unsigned bs = near & ~0x3fff; in alloc_in_bmp() local 129 if (bs != ~0x3fff) { in alloc_in_bmp() 135 ret = bs + nr; in alloc_in_bmp() 150 ret = bs + q; in alloc_in_bmp() 173 ret = bs + q; in alloc_in_bmp() 181 …if (hpfs_sb(s)->sb_chk && ((ret >> 14) != (bs >> 14) || (le32_to_cpu(bmp[(ret & 0x3fff) >> 5]) | ~… in alloc_in_bmp()
|
/fs/xfs/libxfs/ |
D | xfs_fs.h | 425 bstat_get_projid(const struct xfs_bstat *bs) in bstat_get_projid() argument 427 return (uint32_t)bs->bs_projid_hi << 16 | bs->bs_projid_lo; in bstat_get_projid()
|
D | xfs_health.h | 188 void xfs_bulkstat_health(struct xfs_inode *ip, struct xfs_bulkstat *bs);
|
/fs/udf/ |
D | inode.c | 1305 int bs = inode->i_sb->s_blocksize; in udf_read_inode() local 1406 ret = udf_alloc_i_data(inode, bs - in udf_read_inode() 1412 bs - sizeof(struct extendedFileEntry)); in udf_read_inode() 1416 ret = udf_alloc_i_data(inode, bs - sizeof(struct fileEntry)); in udf_read_inode() 1421 bs - sizeof(struct fileEntry)); in udf_read_inode() 1428 ret = udf_alloc_i_data(inode, bs - in udf_read_inode() 1434 bs - sizeof(struct unallocSpaceEntry)); in udf_read_inode() 1524 if (iinfo->i_lenEAttr > bs || iinfo->i_lenAlloc > bs) in udf_read_inode() 1527 if (udf_file_entry_alloc_offset(inode) + iinfo->i_lenAlloc > bs) in udf_read_inode() 1538 if (inode->i_size > bs - udf_file_entry_alloc_offset(inode)) in udf_read_inode()
|
/fs/gfs2/ |
D | meta_io.c | 385 struct gfs2_bufdata *bd, *bs; in gfs2_ail1_wipe() local 392 list_for_each_entry_safe(bd, bs, &tr->tr_ail1_list, in gfs2_ail1_wipe()
|
/fs/nfsd/ |
D | nfs3xdr.c | 1275 u64 bs = s->f_bsize; in svcxdr_encode_fsstat3resok() local 1281 p = xdr_encode_hyper(p, bs * s->f_blocks); /* total bytes */ in svcxdr_encode_fsstat3resok() 1282 p = xdr_encode_hyper(p, bs * s->f_bfree); /* free bytes */ in svcxdr_encode_fsstat3resok() 1283 p = xdr_encode_hyper(p, bs * s->f_bavail); /* user available bytes */ in svcxdr_encode_fsstat3resok()
|