Lines Matching refs:header_bh
108 static void nilfs_sufile_mod_counter(struct buffer_head *header_bh, in nilfs_sufile_mod_counter() argument
114 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_mod_counter()
115 header = kaddr + bh_offset(header_bh); in nilfs_sufile_mod_counter()
120 mark_buffer_dirty(header_bh); in nilfs_sufile_mod_counter()
166 struct buffer_head *header_bh, *bh; in nilfs_sufile_updatev() local
189 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_updatev()
200 dofunc(sufile, *seg, header_bh, bh); in nilfs_sufile_updatev()
219 brelse(header_bh); in nilfs_sufile_updatev()
233 struct buffer_head *header_bh, *bh; in nilfs_sufile_update() local
243 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_update()
249 dofunc(sufile, segnum, header_bh, bh); in nilfs_sufile_update()
252 brelse(header_bh); in nilfs_sufile_update()
307 struct buffer_head *header_bh, *su_bh; in nilfs_sufile_alloc() local
319 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_alloc()
322 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_alloc()
323 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc()
372 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_alloc()
373 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc()
380 mark_buffer_dirty(header_bh); in nilfs_sufile_alloc()
396 brelse(header_bh); in nilfs_sufile_alloc()
404 struct buffer_head *header_bh, in nilfs_sufile_do_cancel_free() argument
421 nilfs_sufile_mod_counter(header_bh, -1, 1); in nilfs_sufile_do_cancel_free()
429 struct buffer_head *header_bh, in nilfs_sufile_do_scrap() argument
452 nilfs_sufile_mod_counter(header_bh, clean ? (u64)-1 : 0, dirty ? 0 : 1); in nilfs_sufile_do_scrap()
460 struct buffer_head *header_bh, in nilfs_sufile_do_free() argument
483 nilfs_sufile_mod_counter(header_bh, 1, sudirty ? (u64)-1 : 0); in nilfs_sufile_do_free()
563 struct buffer_head *header_bh; in nilfs_sufile_get_stat() local
571 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_get_stat()
575 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_get_stat()
576 header = kaddr + bh_offset(header_bh); in nilfs_sufile_get_stat()
586 brelse(header_bh); in nilfs_sufile_get_stat()
594 struct buffer_head *header_bh, in nilfs_sufile_do_set_error() argument
612 nilfs_sufile_mod_counter(header_bh, -1, 0); in nilfs_sufile_do_set_error()
640 struct buffer_head *header_bh; in nilfs_sufile_truncate_range() local
658 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_truncate_range()
716 nilfs_sufile_mod_counter(header_bh, ncleaned, 0); in nilfs_sufile_truncate_range()
719 brelse(header_bh); in nilfs_sufile_truncate_range()
743 struct buffer_head *header_bh; in nilfs_sufile_resize() local
761 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_resize()
775 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_resize()
776 header = kaddr + bh_offset(header_bh); in nilfs_sufile_resize()
780 mark_buffer_dirty(header_bh); in nilfs_sufile_resize()
785 brelse(header_bh); in nilfs_sufile_resize()
878 struct buffer_head *header_bh; in nilfs_sufile_read() local
900 err = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_read()
905 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_read()
906 header = kaddr + bh_offset(header_bh); in nilfs_sufile_read()
909 brelse(header_bh); in nilfs_sufile_read()