Lines Matching refs:prev_bh
224 struct buffer_head *prev_bh; in affs_get_extblock_slow() local
231 prev_bh = affs_get_extblock(inode, ext - 1); in affs_get_extblock_slow()
232 if (IS_ERR(prev_bh)) in affs_get_extblock_slow()
233 return prev_bh; in affs_get_extblock_slow()
234 bh = affs_alloc_extblock(inode, prev_bh, ext); in affs_get_extblock_slow()
235 affs_brelse(prev_bh); in affs_get_extblock_slow()
534 struct buffer_head *bh, *prev_bh; in affs_extent_file_ofs() local
564 prev_bh = bh; in affs_extent_file_ofs()
577 if (prev_bh) { in affs_extent_file_ofs()
578 u32 tmp = be32_to_cpu(AFFS_DATA_HEAD(prev_bh)->next); in affs_extent_file_ofs()
581 AFFS_DATA_HEAD(prev_bh)->next = cpu_to_be32(bh->b_blocknr); in affs_extent_file_ofs()
582 affs_adjust_checksum(prev_bh, bh->b_blocknr - tmp); in affs_extent_file_ofs()
583 mark_buffer_dirty_inode(prev_bh, inode); in affs_extent_file_ofs()
584 affs_brelse(prev_bh); in affs_extent_file_ofs()
662 struct buffer_head *bh, *prev_bh; in affs_write_end_ofs() local
705 prev_bh = bh; in affs_write_end_ofs()
717 if (prev_bh) { in affs_write_end_ofs()
718 u32 tmp = be32_to_cpu(AFFS_DATA_HEAD(prev_bh)->next); in affs_write_end_ofs()
721 AFFS_DATA_HEAD(prev_bh)->next = cpu_to_be32(bh->b_blocknr); in affs_write_end_ofs()
722 affs_adjust_checksum(prev_bh, bh->b_blocknr - tmp); in affs_write_end_ofs()
723 mark_buffer_dirty_inode(prev_bh, inode); in affs_write_end_ofs()
726 affs_brelse(prev_bh); in affs_write_end_ofs()
734 prev_bh = bh; in affs_write_end_ofs()
748 if (prev_bh) { in affs_write_end_ofs()
749 u32 tmp = be32_to_cpu(AFFS_DATA_HEAD(prev_bh)->next); in affs_write_end_ofs()
752 AFFS_DATA_HEAD(prev_bh)->next = cpu_to_be32(bh->b_blocknr); in affs_write_end_ofs()
753 affs_adjust_checksum(prev_bh, bh->b_blocknr - tmp); in affs_write_end_ofs()
754 mark_buffer_dirty_inode(prev_bh, inode); in affs_write_end_ofs()
758 affs_brelse(prev_bh); in affs_write_end_ofs()
779 bh = prev_bh; in affs_write_end_ofs()