Lines Matching refs:bh

48 	struct buffer_head *bh;  in __nilfs_get_page_block()  local
54 bh = nilfs_page_get_nth_block(page, block - first_block); in __nilfs_get_page_block()
56 touch_buffer(bh); in __nilfs_get_page_block()
57 wait_on_buffer(bh); in __nilfs_get_page_block()
58 return bh; in __nilfs_get_page_block()
69 struct buffer_head *bh; in nilfs_grab_buffer() local
75 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer()
76 if (unlikely(!bh)) { in nilfs_grab_buffer()
81 return bh; in nilfs_grab_buffer()
89 void nilfs_forget_buffer(struct buffer_head *bh) in nilfs_forget_buffer() argument
91 struct page *page = bh->b_page; in nilfs_forget_buffer()
97 lock_buffer(bh); in nilfs_forget_buffer()
98 set_mask_bits(&bh->b_state, clear_bits, 0); in nilfs_forget_buffer()
102 bh->b_blocknr = -1; in nilfs_forget_buffer()
105 unlock_buffer(bh); in nilfs_forget_buffer()
106 brelse(bh); in nilfs_forget_buffer()
119 struct buffer_head *bh; in nilfs_copy_buffer() local
131 bh = dbh; in nilfs_copy_buffer()
133 while ((bh = bh->b_this_page) != dbh) { in nilfs_copy_buffer()
134 lock_buffer(bh); in nilfs_copy_buffer()
135 bits &= bh->b_state; in nilfs_copy_buffer()
136 unlock_buffer(bh); in nilfs_copy_buffer()
157 struct buffer_head *bh, *head; in nilfs_page_buffers_clean() local
159 bh = head = page_buffers(page); in nilfs_page_buffers_clean()
161 if (buffer_dirty(bh)) in nilfs_page_buffers_clean()
163 bh = bh->b_this_page; in nilfs_page_buffers_clean()
164 } while (bh != head); in nilfs_page_buffers_clean()
187 struct buffer_head *bh, *head; in nilfs_page_bug() local
190 bh = head = page_buffers(page); in nilfs_page_bug()
194 i++, bh, atomic_read(&bh->b_count), in nilfs_page_bug()
195 (unsigned long long)bh->b_blocknr, bh->b_state); in nilfs_page_bug()
196 bh = bh->b_this_page; in nilfs_page_bug()
197 } while (bh != head); in nilfs_page_bug()
421 struct buffer_head *bh, *head; in nilfs_clear_dirty_page() local
427 bh = head = page_buffers(page); in nilfs_clear_dirty_page()
429 lock_buffer(bh); in nilfs_clear_dirty_page()
433 (u64)bh->b_blocknr, bh->b_size); in nilfs_clear_dirty_page()
435 set_mask_bits(&bh->b_state, clear_bits, 0); in nilfs_clear_dirty_page()
436 unlock_buffer(bh); in nilfs_clear_dirty_page()
437 } while (bh = bh->b_this_page, bh != head); in nilfs_clear_dirty_page()
447 struct buffer_head *bh, *head; in nilfs_page_count_clean_buffers() local
450 for (bh = head = page_buffers(page), block_start = 0; in nilfs_page_count_clean_buffers()
451 bh != head || !block_start; in nilfs_page_count_clean_buffers()
452 block_start = block_end, bh = bh->b_this_page) { in nilfs_page_count_clean_buffers()
453 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers()
454 if (block_end > from && block_start < to && !buffer_dirty(bh)) in nilfs_page_count_clean_buffers()
547 struct buffer_head *bh, *head; in nilfs_find_uncommitted_extent() local
549 bh = head = page_buffers(page); in nilfs_find_uncommitted_extent()
553 if (buffer_delay(bh)) { in nilfs_find_uncommitted_extent()
560 } while (++b, bh = bh->b_this_page, bh != head); in nilfs_find_uncommitted_extent()