Lines Matching defs:prev_bh
224 struct buffer_head *prev_bh;
231 prev_bh = affs_get_extblock(inode, ext - 1);
232 if (IS_ERR(prev_bh))
233 return prev_bh;
234 bh = affs_alloc_extblock(inode, prev_bh, ext);
235 affs_brelse(prev_bh);
535 struct buffer_head *bh, *prev_bh;
565 prev_bh = bh;
578 if (prev_bh) {
579 u32 tmp = be32_to_cpu(AFFS_DATA_HEAD(prev_bh)->next);
582 AFFS_DATA_HEAD(prev_bh)->next = cpu_to_be32(bh->b_blocknr);
583 affs_adjust_checksum(prev_bh, bh->b_blocknr - tmp);
584 mark_buffer_dirty_inode(prev_bh, inode);
585 affs_brelse(prev_bh);
659 struct buffer_head *bh, *prev_bh;
697 prev_bh = bh;
709 if (prev_bh) {
710 u32 tmp = be32_to_cpu(AFFS_DATA_HEAD(prev_bh)->next);
713 AFFS_DATA_HEAD(prev_bh)->next = cpu_to_be32(bh->b_blocknr);
714 affs_adjust_checksum(prev_bh, bh->b_blocknr - tmp);
715 mark_buffer_dirty_inode(prev_bh, inode);
718 affs_brelse(prev_bh);
726 prev_bh = bh;
740 if (prev_bh) {
741 u32 tmp = be32_to_cpu(AFFS_DATA_HEAD(prev_bh)->next);
744 AFFS_DATA_HEAD(prev_bh)->next = cpu_to_be32(bh->b_blocknr);
745 affs_adjust_checksum(prev_bh, bh->b_blocknr - tmp);
746 mark_buffer_dirty_inode(prev_bh, inode);
750 affs_brelse(prev_bh);
771 bh = prev_bh;