Home
last modified time | relevance | path

Searched refs:nbits (Results 1 – 7 of 7) sorted by relevance

/fs/omfs/
Dbitmap.c12 int nbits = sb->s_blocksize * 8; in omfs_count_free() local
15 sum += nbits - bitmap_weight(sbi->s_imap[i], nbits); in omfs_count_free()
25 static int count_run(unsigned long **addr, int nbits, in count_run() argument
32 x = find_next_bit(*addr, nbits, bit); in count_run()
35 if (x < nbits || count > max) in count_run()
48 int nbits, int bit, int count, int set) in set_run() argument
61 if (bit >= nbits) { in set_run()
/fs/xfs/
Dxfs_buf_item.c192 uint nbits) in xfs_buf_item_copy_iovec() argument
197 nbits * XFS_BLF_CHUNK); in xfs_buf_item_copy_iovec()
225 uint nbits; in xfs_buf_item_format_segment() local
265 nbits = 1; in xfs_buf_item_format_segment()
284 first_bit, nbits); in xfs_buf_item_format_segment()
290 first_bit, nbits); in xfs_buf_item_format_segment()
294 nbits = 1; in xfs_buf_item_format_segment()
297 nbits++; in xfs_buf_item_format_segment()
Dxfs_log_recover.c1713 int nbits = 0; in xlog_recover_do_inode_buffer() local
1743 bit += nbits; in xlog_recover_do_inode_buffer()
1754 nbits = xfs_contig_bits(buf_f->blf_data_map, in xlog_recover_do_inode_buffer()
1756 ASSERT(nbits > 0); in xlog_recover_do_inode_buffer()
1758 reg_buf_bytes = nbits << XFS_BLF_SHIFT; in xlog_recover_do_inode_buffer()
2181 int nbits; in xlog_recover_do_reg_buffer() local
2193 nbits = xfs_contig_bits(buf_f->blf_data_map, in xlog_recover_do_reg_buffer()
2195 ASSERT(nbits > 0); in xlog_recover_do_reg_buffer()
2199 ((uint)bit << XFS_BLF_SHIFT) + (nbits << XFS_BLF_SHIFT)); in xlog_recover_do_reg_buffer()
2209 if (item->ri_buf[i].i_len < (nbits << XFS_BLF_SHIFT)) in xlog_recover_do_reg_buffer()
[all …]
/fs/jfs/
Djfs_dmap.c428 int word, nbits, nwords; in dbUpdatePMap() local
489 rbits -= nbits, dbitno += nbits) { in dbUpdatePMap()
494 nbits = min(rbits, DBWORD - wbitno); in dbUpdatePMap()
497 if (nbits < DBWORD) { in dbUpdatePMap()
502 (ONES << (DBWORD - nbits) >> wbitno); in dbUpdatePMap()
517 nbits = nwords << L2DBWORD; in dbUpdatePMap()
/fs/xfs/libxfs/
Dxfs_btree.h327 int nbits, /* number of bits to inspect */
Dxfs_btree.c682 int nbits, /* number of bits to inspect */ in xfs_btree_offsets() argument
702 for (i = nbits - 1, imask = 1LL << i; ; i--, imask >>= 1) { in xfs_btree_offsets()
1412 int nbits; in xfs_btree_log_block() local
1424 nbits = XFS_BB_NUM_BITS_CRC; in xfs_btree_log_block()
1426 nbits = XFS_BB_NUM_BITS; in xfs_btree_log_block()
1431 nbits, &first, &last); in xfs_btree_log_block()
/fs/btrfs/
Dscrub.c2717 int nbits; in scrub_free_parity() local
2719 nbits = bitmap_weight(sparity->ebitmap, sparity->nsectors); in scrub_free_parity()
2720 if (nbits) { in scrub_free_parity()
2722 sctx->stat.read_errors += nbits; in scrub_free_parity()
2723 sctx->stat.uncorrectable_errors += nbits; in scrub_free_parity()