Lines Matching refs:bh
802 struct buffer_head *bh; in ntfs_empty_logfile() local
805 bh = sb_getblk(sb, block); in ntfs_empty_logfile()
806 BUG_ON(!bh); in ntfs_empty_logfile()
808 lock_buffer(bh); in ntfs_empty_logfile()
809 bh->b_end_io = end_buffer_write_sync; in ntfs_empty_logfile()
810 get_bh(bh); in ntfs_empty_logfile()
812 memset(bh->b_data, -1, block_size); in ntfs_empty_logfile()
813 if (!buffer_uptodate(bh)) in ntfs_empty_logfile()
814 set_buffer_uptodate(bh); in ntfs_empty_logfile()
815 if (buffer_dirty(bh)) in ntfs_empty_logfile()
816 clear_buffer_dirty(bh); in ntfs_empty_logfile()
824 submit_bh(WRITE, bh); in ntfs_empty_logfile()
827 wait_on_buffer(bh); in ntfs_empty_logfile()
828 if (unlikely(!buffer_uptodate(bh))) in ntfs_empty_logfile()
831 brelse(bh); in ntfs_empty_logfile()