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()
74 void nilfs_forget_buffer(struct buffer_head *bh) in nilfs_forget_buffer() argument
76 struct page *page = bh->b_page; in nilfs_forget_buffer()
82 lock_buffer(bh); in nilfs_forget_buffer()
83 set_mask_bits(&bh->b_state, clear_bits, 0); in nilfs_forget_buffer()
87 bh->b_blocknr = -1; in nilfs_forget_buffer()
90 unlock_buffer(bh); in nilfs_forget_buffer()
91 brelse(bh); in nilfs_forget_buffer()
104 struct buffer_head *bh; in nilfs_copy_buffer() local
116 bh = dbh; in nilfs_copy_buffer()
118 while ((bh = bh->b_this_page) != dbh) { in nilfs_copy_buffer()
119 lock_buffer(bh); in nilfs_copy_buffer()
120 bits &= bh->b_state; in nilfs_copy_buffer()
121 unlock_buffer(bh); in nilfs_copy_buffer()
142 struct buffer_head *bh, *head; in nilfs_page_buffers_clean() local
144 bh = head = page_buffers(page); in nilfs_page_buffers_clean()
146 if (buffer_dirty(bh)) in nilfs_page_buffers_clean()
148 bh = bh->b_this_page; in nilfs_page_buffers_clean()
149 } while (bh != head); in nilfs_page_buffers_clean()
172 struct buffer_head *bh, *head; in nilfs_page_bug() local
175 bh = head = page_buffers(page); in nilfs_page_bug()
179 i++, bh, atomic_read(&bh->b_count), in nilfs_page_bug()
180 (unsigned long long)bh->b_blocknr, bh->b_state); in nilfs_page_bug()
181 bh = bh->b_this_page; in nilfs_page_bug()
182 } while (bh != head); in nilfs_page_bug()
401 struct buffer_head *bh, *head; in nilfs_clear_dirty_page() local
407 bh = head = page_buffers(page); in nilfs_clear_dirty_page()
409 lock_buffer(bh); in nilfs_clear_dirty_page()
413 (u64)bh->b_blocknr, bh->b_size); in nilfs_clear_dirty_page()
415 set_mask_bits(&bh->b_state, clear_bits, 0); in nilfs_clear_dirty_page()
416 unlock_buffer(bh); in nilfs_clear_dirty_page()
417 } while (bh = bh->b_this_page, bh != head); in nilfs_clear_dirty_page()
427 struct buffer_head *bh, *head; in nilfs_page_count_clean_buffers() local
430 for (bh = head = page_buffers(page), block_start = 0; in nilfs_page_count_clean_buffers()
431 bh != head || !block_start; in nilfs_page_count_clean_buffers()
432 block_start = block_end, bh = bh->b_this_page) { in nilfs_page_count_clean_buffers()
433 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers()
434 if (block_end > from && block_start < to && !buffer_dirty(bh)) in nilfs_page_count_clean_buffers()
509 struct buffer_head *bh, *head; in nilfs_find_uncommitted_extent() local
513 bh = head = folio_buffers(folio); in nilfs_find_uncommitted_extent()
517 if (buffer_delay(bh)) { in nilfs_find_uncommitted_extent()
524 } while (++b, bh = bh->b_this_page, bh != head); in nilfs_find_uncommitted_extent()