Lines Matching refs:prev_bh

198 		struct buffer_head *prev_bh;  in affs_get_extblock_slow()  local
204 prev_bh = affs_get_extblock(inode, ext - 1); in affs_get_extblock_slow()
205 if (IS_ERR(prev_bh)) in affs_get_extblock_slow()
206 return prev_bh; in affs_get_extblock_slow()
207 bh = affs_alloc_extblock(inode, prev_bh, ext); in affs_get_extblock_slow()
208 affs_brelse(prev_bh); in affs_get_extblock_slow()
543 struct buffer_head *bh, *prev_bh; in affs_extent_file_ofs() local
573 prev_bh = bh; in affs_extent_file_ofs()
586 if (prev_bh) { in affs_extent_file_ofs()
587 u32 tmp_next = be32_to_cpu(AFFS_DATA_HEAD(prev_bh)->next); in affs_extent_file_ofs()
593 AFFS_DATA_HEAD(prev_bh)->next = cpu_to_be32(bh->b_blocknr); in affs_extent_file_ofs()
594 affs_adjust_checksum(prev_bh, bh->b_blocknr - tmp_next); in affs_extent_file_ofs()
595 mark_buffer_dirty_inode(prev_bh, inode); in affs_extent_file_ofs()
596 affs_brelse(prev_bh); in affs_extent_file_ofs()
675 struct buffer_head *bh, *prev_bh; in affs_write_end_ofs() local
723 prev_bh = bh; in affs_write_end_ofs()
735 if (prev_bh) { in affs_write_end_ofs()
736 u32 tmp_next = be32_to_cpu(AFFS_DATA_HEAD(prev_bh)->next); in affs_write_end_ofs()
742 AFFS_DATA_HEAD(prev_bh)->next = cpu_to_be32(bh->b_blocknr); in affs_write_end_ofs()
743 affs_adjust_checksum(prev_bh, bh->b_blocknr - tmp_next); in affs_write_end_ofs()
744 mark_buffer_dirty_inode(prev_bh, inode); in affs_write_end_ofs()
747 affs_brelse(prev_bh); in affs_write_end_ofs()
755 prev_bh = bh; in affs_write_end_ofs()
769 if (prev_bh) { in affs_write_end_ofs()
770 u32 tmp_next = be32_to_cpu(AFFS_DATA_HEAD(prev_bh)->next); in affs_write_end_ofs()
776 AFFS_DATA_HEAD(prev_bh)->next = cpu_to_be32(bh->b_blocknr); in affs_write_end_ofs()
777 affs_adjust_checksum(prev_bh, bh->b_blocknr - tmp_next); in affs_write_end_ofs()
778 mark_buffer_dirty_inode(prev_bh, inode); in affs_write_end_ofs()
782 affs_brelse(prev_bh); in affs_write_end_ofs()
804 bh = prev_bh; in affs_write_end_ofs()