• Home
  • Raw
  • Download

Lines Matching refs:bh

34 	struct buffer_head *bh;  in __nilfs_get_page_block()  local
40 bh = nilfs_page_get_nth_block(page, block - first_block); in __nilfs_get_page_block()
42 touch_buffer(bh); in __nilfs_get_page_block()
43 wait_on_buffer(bh); in __nilfs_get_page_block()
44 return bh; in __nilfs_get_page_block()
55 struct buffer_head *bh; in nilfs_grab_buffer() local
61 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer()
62 if (unlikely(!bh)) { in nilfs_grab_buffer()
67 return bh; in nilfs_grab_buffer()
75 void nilfs_forget_buffer(struct buffer_head *bh) in nilfs_forget_buffer() argument
77 struct page *page = bh->b_page; in nilfs_forget_buffer()
83 lock_buffer(bh); in nilfs_forget_buffer()
84 set_mask_bits(&bh->b_state, clear_bits, 0); in nilfs_forget_buffer()
88 bh->b_blocknr = -1; in nilfs_forget_buffer()
91 unlock_buffer(bh); in nilfs_forget_buffer()
92 brelse(bh); in nilfs_forget_buffer()
105 struct buffer_head *bh; in nilfs_copy_buffer() local
117 bh = dbh; in nilfs_copy_buffer()
119 while ((bh = bh->b_this_page) != dbh) { in nilfs_copy_buffer()
120 lock_buffer(bh); in nilfs_copy_buffer()
121 bits &= bh->b_state; in nilfs_copy_buffer()
122 unlock_buffer(bh); in nilfs_copy_buffer()
143 struct buffer_head *bh, *head; in nilfs_page_buffers_clean() local
145 bh = head = page_buffers(page); in nilfs_page_buffers_clean()
147 if (buffer_dirty(bh)) in nilfs_page_buffers_clean()
149 bh = bh->b_this_page; in nilfs_page_buffers_clean()
150 } while (bh != head); in nilfs_page_buffers_clean()
173 struct buffer_head *bh, *head; in nilfs_page_bug() local
176 bh = head = page_buffers(page); in nilfs_page_bug()
180 i++, bh, atomic_read(&bh->b_count), in nilfs_page_bug()
181 (unsigned long long)bh->b_blocknr, bh->b_state); in nilfs_page_bug()
182 bh = bh->b_this_page; in nilfs_page_bug()
183 } while (bh != head); in nilfs_page_bug()
402 struct buffer_head *bh, *head; in nilfs_clear_dirty_page() local
408 bh = head = page_buffers(page); in nilfs_clear_dirty_page()
410 lock_buffer(bh); in nilfs_clear_dirty_page()
414 (u64)bh->b_blocknr, bh->b_size); in nilfs_clear_dirty_page()
416 set_mask_bits(&bh->b_state, clear_bits, 0); in nilfs_clear_dirty_page()
417 unlock_buffer(bh); in nilfs_clear_dirty_page()
418 } while (bh = bh->b_this_page, bh != head); in nilfs_clear_dirty_page()
428 struct buffer_head *bh, *head; in nilfs_page_count_clean_buffers() local
431 for (bh = head = page_buffers(page), block_start = 0; in nilfs_page_count_clean_buffers()
432 bh != head || !block_start; in nilfs_page_count_clean_buffers()
433 block_start = block_end, bh = bh->b_this_page) { in nilfs_page_count_clean_buffers()
434 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers()
435 if (block_end > from && block_start < to && !buffer_dirty(bh)) in nilfs_page_count_clean_buffers()
527 struct buffer_head *bh, *head; in nilfs_find_uncommitted_extent() local
529 bh = head = page_buffers(page); in nilfs_find_uncommitted_extent()
533 if (buffer_delay(bh)) { in nilfs_find_uncommitted_extent()
540 } while (++b, bh = bh->b_this_page, bh != head); in nilfs_find_uncommitted_extent()