• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/ext4/

Lines Matching refs:bh

63  * @bh:			pointer to the buffer head to store the block
68 struct buffer_head ** bh)
98 if (bh)
99 *bh = sbi->s_group_desc[group_desc];
117 struct buffer_head * bh = NULL;
122 bh = sb_bread(sb, ext4_block_bitmap(sb, desc));
123 if (!bh)
130 return bh;
637 * @bh: bufferhead contains the bitmap of the given block group
654 static int ext4_test_allocatable(ext4_grpblk_t nr, struct buffer_head *bh)
657 struct journal_head *jh = bh2jh(bh);
659 if (ext4_test_bit(nr, bh->b_data))
662 jbd_lock_bh_state(bh);
667 jbd_unlock_bh_state(bh);
674 * @bh: bufferhead contains the block group bitmap
682 bitmap_search_next_usable_block(ext4_grpblk_t start, struct buffer_head *bh,
686 struct journal_head *jh = bh2jh(bh);
689 next = ext4_find_next_zero_bit(bh->b_data, maxblocks, start);
692 if (ext4_test_allocatable(next, bh))
694 jbd_lock_bh_state(bh);
698 jbd_unlock_bh_state(bh);
707 * @bh: bufferhead contains the block group bitmap
717 find_next_usable_block(ext4_grpblk_t start, struct buffer_head *bh,
735 here = ext4_find_next_zero_bit(bh->b_data, end_goal, start);
736 if (here < end_goal && ext4_test_allocatable(here, bh))
745 p = ((char *)bh->b_data) + (here >> 3);
747 next = (r - ((char *)bh->b_data)) << 3;
749 if (next < maxblocks && next >= start && ext4_test_allocatable(next, bh))
757 here = bitmap_search_next_usable_block(here, bh, maxblocks);
764 * @bh: the bufferhead containts the block group bitmap
773 claim_block(spinlock_t *lock, ext4_grpblk_t block, struct buffer_head *bh)
775 struct journal_head *jh = bh2jh(bh);
778 if (ext4_set_bit_atomic(lock, block, bh->b_data))
780 jbd_lock_bh_state(bh);
782 ext4_clear_bit_atomic(lock, block, bh->b_data);
787 jbd_unlock_bh_state(bh);