Lines Matching refs:bh
472 struct buffer_head *bh, *head; in ntfs_sync_mft_mirror() local
509 bh = head = alloc_page_buffers(page, blocksize, 1); in ntfs_sync_mft_mirror()
511 set_buffer_uptodate(bh); in ntfs_sync_mft_mirror()
512 tail = bh; in ntfs_sync_mft_mirror()
513 bh = bh->b_this_page; in ntfs_sync_mft_mirror()
514 } while (bh); in ntfs_sync_mft_mirror()
518 bh = head = page_buffers(page); in ntfs_sync_mft_mirror()
519 BUG_ON(!bh); in ntfs_sync_mft_mirror()
533 if (unlikely(!buffer_mapped(bh))) { in ntfs_sync_mft_mirror()
538 bh->b_bdev = vol->sb->s_bdev; in ntfs_sync_mft_mirror()
561 bh->b_blocknr = ((lcn << in ntfs_sync_mft_mirror()
564 set_buffer_mapped(bh); in ntfs_sync_mft_mirror()
566 bh->b_blocknr = -1; in ntfs_sync_mft_mirror()
576 BUG_ON(!buffer_uptodate(bh)); in ntfs_sync_mft_mirror()
579 bhs[nr_bhs++] = bh; in ntfs_sync_mft_mirror()
581 } while (block_start = block_end, (bh = bh->b_this_page) != head); in ntfs_sync_mft_mirror()
677 struct buffer_head *bh, *head; in write_mft_record_nolock() local
694 bh = head = page_buffers(page); in write_mft_record_nolock()
695 BUG_ON(!bh); in write_mft_record_nolock()
715 if (!buffer_dirty(bh)) { in write_mft_record_nolock()
722 if (unlikely(!buffer_mapped(bh))) { in write_mft_record_nolock()
727 bh->b_bdev = vol->sb->s_bdev; in write_mft_record_nolock()
745 bh->b_blocknr = ((lcn << in write_mft_record_nolock()
748 set_buffer_mapped(bh); in write_mft_record_nolock()
750 bh->b_blocknr = -1; in write_mft_record_nolock()
759 BUG_ON(!buffer_uptodate(bh)); in write_mft_record_nolock()
762 bhs[nr_bhs++] = bh; in write_mft_record_nolock()
764 } while (block_start = block_end, (bh = bh->b_this_page) != head); in write_mft_record_nolock()