Lines Matching refs:head
90 struct buffer_head *head, *bh; in buffer_check_dirty_writeback() local
96 head = folio_buffers(folio); in buffer_check_dirty_writeback()
97 if (!head) in buffer_check_dirty_writeback()
103 bh = head; in buffer_check_dirty_writeback()
112 } while (bh != head); in buffer_check_dirty_writeback()
197 struct buffer_head *head; in __find_get_block_slow() local
210 head = page_buffers(page); in __find_get_block_slow()
211 bh = head; in __find_get_block_slow()
221 } while (bh != head); in __find_get_block_slow()
661 struct buffer_head *head; in block_dirty_folio() local
665 head = folio_buffers(folio); in block_dirty_folio()
666 if (head) { in block_dirty_folio()
667 struct buffer_head *bh = head; in block_dirty_folio()
672 } while (bh != head); in block_dirty_folio()
857 struct buffer_head *bh, *head; in alloc_page_buffers() local
869 head = NULL; in alloc_page_buffers()
876 bh->b_this_page = head; in alloc_page_buffers()
878 head = bh; in alloc_page_buffers()
887 return head; in alloc_page_buffers()
892 if (head) { in alloc_page_buffers()
894 bh = head; in alloc_page_buffers()
895 head = head->b_this_page; in alloc_page_buffers()
897 } while (head); in alloc_page_buffers()
905 link_dev_buffers(struct page *page, struct buffer_head *head) in link_dev_buffers() argument
909 bh = head; in link_dev_buffers()
914 tail->b_this_page = head; in link_dev_buffers()
915 attach_page_private(page, head); in link_dev_buffers()
937 struct buffer_head *head = page_buffers(page); in init_page_buffers() local
938 struct buffer_head *bh = head; in init_page_buffers()
955 } while (bh != head); in init_page_buffers()
1528 struct buffer_head *head, *bh, *next; in block_invalidate_folio() local
1539 head = folio_buffers(folio); in block_invalidate_folio()
1540 if (!head) in block_invalidate_folio()
1543 bh = head; in block_invalidate_folio()
1561 } while (bh != head); in block_invalidate_folio()
1584 struct buffer_head *bh, *head, *tail; in create_empty_buffers() local
1586 head = alloc_page_buffers(page, blocksize, true); in create_empty_buffers()
1587 bh = head; in create_empty_buffers()
1593 tail->b_this_page = head; in create_empty_buffers()
1597 bh = head; in create_empty_buffers()
1604 } while (bh != head); in create_empty_buffers()
1606 attach_page_private(page, head); in create_empty_buffers()
1640 struct buffer_head *head; in clean_bdev_aliases() local
1658 head = folio_buffers(folio); in clean_bdev_aliases()
1659 if (!head) in clean_bdev_aliases()
1661 bh = head; in clean_bdev_aliases()
1672 } while (bh != head); in clean_bdev_aliases()
1744 struct buffer_head *bh, *head; in __block_write_full_page() local
1749 head = create_page_buffers(page, inode, in __block_write_full_page()
1762 bh = head; in __block_write_full_page()
1800 } while (bh != head); in __block_write_full_page()
1823 } while ((bh = bh->b_this_page) != head); in __block_write_full_page()
1839 } while (bh != head); in __block_write_full_page()
1866 bh = head; in __block_write_full_page()
1880 } while ((bh = bh->b_this_page) != head); in __block_write_full_page()
1893 } while (bh != head); in __block_write_full_page()
1907 struct buffer_head *head, *bh; in page_zero_new_buffers() local
1913 bh = head = page_buffers(page); in page_zero_new_buffers()
1937 } while (bh != head); in page_zero_new_buffers()
2006 struct buffer_head *bh, *head, *wait[2], **wait_bh=wait; in __block_write_begin_int() local
2013 head = create_page_buffers(&folio->page, inode, 0); in __block_write_begin_int()
2014 blocksize = head->b_size; in __block_write_begin_int()
2019 for(bh = head, block_start = 0; bh != head || !block_start; in __block_write_begin_int()
2095 struct buffer_head *bh, *head; in __block_commit_write() local
2097 bh = head = page_buffers(page); in __block_commit_write()
2115 } while (bh != head); in __block_commit_write()
2243 struct buffer_head *bh, *head; in block_is_partially_uptodate() local
2246 head = folio_buffers(folio); in block_is_partially_uptodate()
2247 if (!head) in block_is_partially_uptodate()
2249 blocksize = head->b_size; in block_is_partially_uptodate()
2255 bh = head; in block_is_partially_uptodate()
2269 } while (bh != head); in block_is_partially_uptodate()
2286 struct buffer_head *bh, *head, *arr[MAX_BUF_PER_PAGE]; in block_read_full_folio() local
2299 head = create_page_buffers(&folio->page, inode, 0); in block_read_full_folio()
2300 blocksize = head->b_size; in block_read_full_folio()
2305 bh = head; in block_read_full_folio()
2340 } while (i++, iblock++, (bh = bh->b_this_page) != head); in block_read_full_folio()
2839 struct buffer_head *head = folio_buffers(folio); in drop_buffers() local
2842 bh = head; in drop_buffers()
2847 } while (bh != head); in drop_buffers()
2855 } while (bh != head); in drop_buffers()
2856 *buffers_to_free = head; in drop_buffers()