Lines Matching defs:bh

527 				 struct buffer_head *bh,
546 struct buffer_head *bh,
566 struct buffer_head *bh,
582 struct buffer_head *bh)
587 "ocfs2_abort_trigger called by JBD2. bh = 0x%lx, "
588 "bh->b_blocknr = %llu\n",
589 (unsigned long)bh,
590 (unsigned long long)bh->b_blocknr);
657 struct buffer_head *bh,
667 BUG_ON(!bh);
671 (unsigned long long)bh->b_blocknr, type, bh->b_size);
674 if (!buffer_uptodate(bh)) {
677 (unsigned long long)bh->b_blocknr, bh->b_state);
679 lock_buffer(bh);
683 * For current transaction, the bh is just among those error
690 if (buffer_write_io_error(bh) && !buffer_uptodate(bh)) {
691 unlock_buffer(bh);
695 unlock_buffer(bh);
710 status = jbd2_journal_get_write_access(handle, bh);
714 status = jbd2_journal_get_undo_access(handle, bh);
722 jbd2_journal_set_triggers(bh, &triggers->ot_triggers);
733 struct buffer_head *bh, int type)
737 return __ocfs2_journal_access(handle, ci, bh,
743 struct buffer_head *bh, int type)
747 return __ocfs2_journal_access(handle, ci, bh,
753 struct buffer_head *bh, int type)
757 return __ocfs2_journal_access(handle, ci, bh,
763 struct buffer_head *bh, int type)
767 return __ocfs2_journal_access(handle, ci, bh,
773 struct buffer_head *bh, int type)
777 return __ocfs2_journal_access(handle, ci, bh,
783 struct buffer_head *bh, int type)
787 return __ocfs2_journal_access(handle, ci, bh,
793 struct buffer_head *bh, int type)
797 return __ocfs2_journal_access(handle, ci, bh,
803 struct buffer_head *bh, int type)
807 return __ocfs2_journal_access(handle, ci, bh,
813 struct buffer_head *bh, int type)
817 return __ocfs2_journal_access(handle, ci, bh,
823 struct buffer_head *bh, int type)
825 return __ocfs2_journal_access(handle, ci, bh, NULL, type);
828 void ocfs2_journal_dirty(handle_t *handle, struct buffer_head *bh)
832 trace_ocfs2_journal_dirty((unsigned long long)bh->b_blocknr);
834 status = jbd2_journal_dirty_metadata(handle, bh);
923 struct buffer_head *bh = NULL;
949 status = ocfs2_inode_lock_full(inode, &bh, 1, OCFS2_META_LOCK_RECOVERY);
957 di = (struct ocfs2_dinode *)bh->b_data;
989 journal->j_bh = bh;
1000 brelse(bh);
1026 struct buffer_head *bh = journal->j_bh;
1029 fe = (struct ocfs2_dinode *)bh->b_data;
1031 /* The journal bh on the osb always comes from ocfs2_journal_init()
1046 ocfs2_compute_meta_ecc(osb->sb, bh->b_data, &fe->i_check);
1047 status = ocfs2_write_block(osb, bh, INODE_CACHE(journal->j_inode));
1260 struct buffer_head *bh = NULL;
1274 bh = __find_get_block_nonatomic(osb->sb->s_bdev, p_blkno,
1277 if (!bh)
1280 brelse(bh);
1281 bh = NULL;
1285 status = ocfs2_read_blocks_sync(osb, p_blkno, 1, &bh);
1291 brelse(bh);
1292 bh = NULL;
1648 struct buffer_head **bh,
1664 status = ocfs2_read_inode_block_full(inode, bh, OCFS2_BH_IGNORE_CACHE);
1694 struct buffer_head *bh = NULL;
1697 status = ocfs2_read_journal_inode(osb, slot_num, &bh, &inode);
1703 fe = (struct ocfs2_dinode *)bh->b_data;
1705 brelse(bh);
1706 bh = NULL;
1726 status = ocfs2_inode_lock_full(inode, &bh, 1, OCFS2_META_LOCK_RECOVERY);
1735 fe = (struct ocfs2_dinode *) bh->b_data;
1796 ocfs2_compute_meta_ecc(osb->sb, bh->b_data, &fe->i_check);
1797 status = ocfs2_write_block(osb, bh, INODE_CACHE(inode));
1814 brelse(bh);
1932 struct buffer_head *bh = NULL;
1940 status = ocfs2_read_journal_inode(osb, i, &bh, NULL);
1945 di = (struct ocfs2_dinode *)bh->b_data;
1947 brelse(bh);
1948 bh = NULL;