Lines Matching refs:cp_bh

248 	struct buffer_head *cp_bh;
257 ret = nilfs_cpfile_get_checkpoint_block(cpfile, cno, 0, &cp_bh);
264 offset = nilfs_cpfile_checkpoint_offset(cpfile, cno, cp_bh);
265 cp = kmap_local_folio(cp_bh->b_folio, offset);
291 brelse(cp_bh);
316 struct buffer_head *header_bh, *cp_bh;
330 ret = nilfs_cpfile_get_checkpoint_block(cpfile, cno, 1, &cp_bh);
334 offset = nilfs_cpfile_checkpoint_offset(cpfile, cno, cp_bh);
335 cp = kmap_local_folio(cp_bh->b_folio, offset);
341 nilfs_cpfile_block_add_valid_checkpoints(cpfile, cp_bh,
353 mark_buffer_dirty(cp_bh);
354 brelse(cp_bh);
387 struct buffer_head *cp_bh;
396 ret = nilfs_cpfile_get_checkpoint_block(cpfile, cno, 0, &cp_bh);
403 offset = nilfs_cpfile_checkpoint_offset(cpfile, cno, cp_bh);
404 cp = kmap_local_folio(cp_bh->b_folio, offset);
407 brelse(cp_bh);
428 brelse(cp_bh);
460 struct buffer_head *header_bh, *cp_bh;
487 ret = nilfs_cpfile_get_checkpoint_block(cpfile, cno, 0, &cp_bh);
496 offset = nilfs_cpfile_checkpoint_offset(cpfile, cno, cp_bh);
497 cp = kaddr = kmap_local_folio(cp_bh->b_folio, offset);
510 brelse(cp_bh);
515 mark_buffer_dirty(cp_bh);
518 brelse(cp_bh);
522 count = nilfs_cpfile_block_sub_valid_checkpoints(cpfile, cp_bh,
524 brelse(cp_bh);
769 struct buffer_head *header_bh, *curr_bh, *prev_bh, *cp_bh;
786 ret = nilfs_cpfile_get_checkpoint_block(cpfile, cno, 0, &cp_bh);
790 offset = nilfs_cpfile_checkpoint_offset(cpfile, cno, cp_bh);
791 cp = kmap_local_folio(cp_bh->b_folio, offset);
856 offset = nilfs_cpfile_checkpoint_offset(cpfile, cno, cp_bh);
857 cp = kmap_local_folio(cp_bh->b_folio, offset);
875 mark_buffer_dirty(cp_bh);
885 brelse(cp_bh);
897 struct buffer_head *header_bh, *next_bh, *prev_bh, *cp_bh;
913 ret = nilfs_cpfile_get_checkpoint_block(cpfile, cno, 0, &cp_bh);
917 offset = nilfs_cpfile_checkpoint_offset(cpfile, cno, cp_bh);
918 cp = kmap_local_folio(cp_bh->b_folio, offset);
973 cp = kmap_local_folio(cp_bh->b_folio, offset);
986 mark_buffer_dirty(cp_bh);
996 brelse(cp_bh);