Home
last modified time | relevance | path

Searched refs:start_bit (Results 1 – 10 of 10) sorted by relevance

/fs/xfs/libxfs/
Dxfs_bit.c36 xfs_contig_bits(uint *map, uint size, uint start_bit) in xfs_contig_bits() argument
38 uint * p = ((unsigned int *) map) + (start_bit >> BIT_TO_WORD_SHIFT); in xfs_contig_bits()
44 ASSERT(start_bit < size); in xfs_contig_bits()
45 size -= start_bit & ~(NBWORD - 1); in xfs_contig_bits()
46 start_bit &= (NBWORD - 1); in xfs_contig_bits()
47 if (start_bit) { in xfs_contig_bits()
50 tmp |= (~0U >> (NBWORD-start_bit)); in xfs_contig_bits()
62 return result - start_bit; in xfs_contig_bits()
64 return result + ffz(tmp) - start_bit; in xfs_contig_bits()
75 int xfs_next_bit(uint *map, uint size, uint start_bit) in xfs_next_bit() argument
[all …]
Dxfs_bit.h70 extern int xfs_contig_bits(uint *map, uint size, uint start_bit);
73 extern int xfs_next_bit(uint *map, uint size, uint start_bit);
/fs/ntfs/
Dbitmap.h18 extern int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit,
34 const s64 start_bit, const s64 count, const u8 value) in ntfs_bitmap_set_bits_in_run() argument
36 return __ntfs_bitmap_set_bits_in_run(vi, start_bit, count, value, in ntfs_bitmap_set_bits_in_run()
51 static inline int ntfs_bitmap_set_run(struct inode *vi, const s64 start_bit, in ntfs_bitmap_set_run() argument
54 return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 1); in ntfs_bitmap_set_run()
68 static inline int ntfs_bitmap_clear_run(struct inode *vi, const s64 start_bit, in ntfs_bitmap_clear_run() argument
71 return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 0); in ntfs_bitmap_clear_run()
Dbitmap.c33 int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, in __ntfs_bitmap_set_bits_in_run() argument
46 "value %u.%s", vi->i_ino, (unsigned long long)start_bit, in __ntfs_bitmap_set_bits_in_run()
49 BUG_ON(start_bit < 0); in __ntfs_bitmap_set_bits_in_run()
56 index = start_bit >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run()
57 end_index = (start_bit + cnt - 1) >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run()
71 pos = (start_bit >> 3) & ~PAGE_MASK; in __ntfs_bitmap_set_bits_in_run()
74 bit = start_bit & 7; in __ntfs_bitmap_set_bits_in_run()
160 pos = __ntfs_bitmap_set_bits_in_run(vi, start_bit, count - cnt, in __ntfs_bitmap_set_bits_in_run()
/fs/btrfs/
Dfree-space-tree.c334 unsigned long nrbits, start_bit, end_bit; in convert_free_space_to_extents() local
417 start_bit = find_next_bit_le(bitmap, nrbits, 0); in convert_free_space_to_extents()
419 while (start_bit < nrbits) { in convert_free_space_to_extents()
420 end_bit = find_next_zero_bit_le(bitmap, nrbits, start_bit); in convert_free_space_to_extents()
421 ASSERT(start_bit < end_bit); in convert_free_space_to_extents()
423 key.objectid = start + start_bit * block_group->fs_info->sectorsize; in convert_free_space_to_extents()
425 key.offset = (end_bit - start_bit) * block_group->fs_info->sectorsize; in convert_free_space_to_extents()
434 start_bit = find_next_bit_le(bitmap, nrbits, end_bit); in convert_free_space_to_extents()
/fs/ocfs2/
Docfs2_trace.h838 unsigned int start_bit, unsigned int count),
839 TP_ARGS(inode, group, start_bit, count),
843 __field(unsigned int, start_bit)
849 __entry->start_bit = start_bit;
853 __entry->start_bit, __entry->count)
858 unsigned int start_bit, unsigned int count),
859 TP_ARGS(bg_blkno, start_blk, start_bit, count),
863 __field(unsigned int, start_bit)
869 __entry->start_bit = start_bit;
873 __entry->start_bit, __entry->count)
Dsuballoc.c2448 unsigned int start_bit, in _ocfs2_free_suballoc_bits() argument
2467 BUG_ON((count + start_bit) > ocfs2_bits_per_group(cl)); in _ocfs2_free_suballoc_bits()
2472 start_bit, count); in _ocfs2_free_suballoc_bits()
2482 BUG_ON((count + start_bit) > le16_to_cpu(group->bg_bits)); in _ocfs2_free_suballoc_bits()
2486 start_bit, count, undo_fn); in _ocfs2_free_suballoc_bits()
2497 start_bit, count); in _ocfs2_free_suballoc_bits()
2518 unsigned int start_bit, in ocfs2_free_suballoc_bits() argument
2523 start_bit, bg_blkno, count, NULL); in ocfs2_free_suballoc_bits()
Dsuballoc.h124 unsigned int start_bit,
/fs/ext4/
Dialloc.c55 void ext4_mark_bitmap_end(int start_bit, int end_bit, char *bitmap) in ext4_mark_bitmap_end() argument
59 if (start_bit >= end_bit) in ext4_mark_bitmap_end()
62 ext4_debug("mark end bits +%d through +%d used\n", start_bit, end_bit); in ext4_mark_bitmap_end()
63 for (i = start_bit; i < ((start_bit + 7) & ~7UL); i++) in ext4_mark_bitmap_end()
Dext4.h2527 extern void ext4_mark_bitmap_end(int start_bit, int end_bit, char *bitmap);