Lines Matching refs:header_bh

99 static void nilfs_sufile_mod_counter(struct buffer_head *header_bh,  in nilfs_sufile_mod_counter()  argument
105 kaddr = kmap_atomic(header_bh->b_page, KM_USER0); in nilfs_sufile_mod_counter()
106 header = kaddr + bh_offset(header_bh); in nilfs_sufile_mod_counter()
111 nilfs_mdt_mark_buffer_dirty(header_bh); in nilfs_sufile_mod_counter()
157 struct buffer_head *header_bh, *bh; in nilfs_sufile_updatev() local
180 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_updatev()
191 dofunc(sufile, *seg, header_bh, bh); in nilfs_sufile_updatev()
210 brelse(header_bh); in nilfs_sufile_updatev()
224 struct buffer_head *header_bh, *bh; in nilfs_sufile_update() local
234 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_update()
240 dofunc(sufile, segnum, header_bh, bh); in nilfs_sufile_update()
243 brelse(header_bh); in nilfs_sufile_update()
269 struct buffer_head *header_bh, *su_bh; in nilfs_sufile_alloc() local
280 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_alloc()
283 kaddr = kmap_atomic(header_bh->b_page, KM_USER0); in nilfs_sufile_alloc()
284 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc()
315 kaddr = kmap_atomic(header_bh->b_page, KM_USER0); in nilfs_sufile_alloc()
316 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc()
323 nilfs_mdt_mark_buffer_dirty(header_bh); in nilfs_sufile_alloc()
339 brelse(header_bh); in nilfs_sufile_alloc()
347 struct buffer_head *header_bh, in nilfs_sufile_do_cancel_free() argument
364 nilfs_sufile_mod_counter(header_bh, -1, 1); in nilfs_sufile_do_cancel_free()
372 struct buffer_head *header_bh, in nilfs_sufile_do_scrap() argument
395 nilfs_sufile_mod_counter(header_bh, clean ? (u64)-1 : 0, dirty ? 0 : 1); in nilfs_sufile_do_scrap()
403 struct buffer_head *header_bh, in nilfs_sufile_do_free() argument
426 nilfs_sufile_mod_counter(header_bh, 1, sudirty ? (u64)-1 : 0); in nilfs_sufile_do_free()
506 struct buffer_head *header_bh; in nilfs_sufile_get_stat() local
514 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_get_stat()
518 kaddr = kmap_atomic(header_bh->b_page, KM_USER0); in nilfs_sufile_get_stat()
519 header = kaddr + bh_offset(header_bh); in nilfs_sufile_get_stat()
529 brelse(header_bh); in nilfs_sufile_get_stat()
537 struct buffer_head *header_bh, in nilfs_sufile_do_set_error() argument
555 nilfs_sufile_mod_counter(header_bh, -1, 0); in nilfs_sufile_do_set_error()
649 struct buffer_head *header_bh; in nilfs_sufile_read() local
671 err = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_read()
676 kaddr = kmap_atomic(header_bh->b_page, KM_USER0); in nilfs_sufile_read()
677 header = kaddr + bh_offset(header_bh); in nilfs_sufile_read()
680 brelse(header_bh); in nilfs_sufile_read()