Lines Matching refs:header_bh

104 static void nilfs_sufile_mod_counter(struct buffer_head *header_bh,  in nilfs_sufile_mod_counter()  argument
110 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_mod_counter()
111 header = kaddr + bh_offset(header_bh); in nilfs_sufile_mod_counter()
116 mark_buffer_dirty(header_bh); in nilfs_sufile_mod_counter()
162 struct buffer_head *header_bh, *bh; in nilfs_sufile_updatev() local
185 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_updatev()
196 dofunc(sufile, *seg, header_bh, bh); in nilfs_sufile_updatev()
215 brelse(header_bh); in nilfs_sufile_updatev()
229 struct buffer_head *header_bh, *bh; in nilfs_sufile_update() local
239 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_update()
245 dofunc(sufile, segnum, header_bh, bh); in nilfs_sufile_update()
248 brelse(header_bh); in nilfs_sufile_update()
303 struct buffer_head *header_bh, *su_bh; in nilfs_sufile_alloc() local
315 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_alloc()
318 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_alloc()
319 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc()
368 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_alloc()
369 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc()
376 mark_buffer_dirty(header_bh); in nilfs_sufile_alloc()
395 brelse(header_bh); in nilfs_sufile_alloc()
403 struct buffer_head *header_bh, in nilfs_sufile_do_cancel_free() argument
420 nilfs_sufile_mod_counter(header_bh, -1, 1); in nilfs_sufile_do_cancel_free()
428 struct buffer_head *header_bh, in nilfs_sufile_do_scrap() argument
451 nilfs_sufile_mod_counter(header_bh, clean ? (u64)-1 : 0, dirty ? 0 : 1); in nilfs_sufile_do_scrap()
459 struct buffer_head *header_bh, in nilfs_sufile_do_free() argument
482 nilfs_sufile_mod_counter(header_bh, 1, sudirty ? (u64)-1 : 0); in nilfs_sufile_do_free()
564 struct buffer_head *header_bh; in nilfs_sufile_get_stat() local
572 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_get_stat()
576 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_get_stat()
577 header = kaddr + bh_offset(header_bh); in nilfs_sufile_get_stat()
587 brelse(header_bh); in nilfs_sufile_get_stat()
595 struct buffer_head *header_bh, in nilfs_sufile_do_set_error() argument
613 nilfs_sufile_mod_counter(header_bh, -1, 0); in nilfs_sufile_do_set_error()
641 struct buffer_head *header_bh; in nilfs_sufile_truncate_range() local
659 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_truncate_range()
717 nilfs_sufile_mod_counter(header_bh, ncleaned, 0); in nilfs_sufile_truncate_range()
720 brelse(header_bh); in nilfs_sufile_truncate_range()
744 struct buffer_head *header_bh; in nilfs_sufile_resize() local
762 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_resize()
776 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_resize()
777 header = kaddr + bh_offset(header_bh); in nilfs_sufile_resize()
781 mark_buffer_dirty(header_bh); in nilfs_sufile_resize()
786 brelse(header_bh); in nilfs_sufile_resize()
891 struct buffer_head *header_bh, *bh; in nilfs_sufile_set_suinfo() local
915 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_set_suinfo()
986 nilfs_sufile_mod_counter(header_bh, (u64)ncleaned, in nilfs_sufile_set_suinfo()
992 put_bh(header_bh); in nilfs_sufile_set_suinfo()
1162 struct buffer_head *header_bh; in nilfs_sufile_read() local
1194 err = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_read()
1199 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_read()
1200 header = kaddr + bh_offset(header_bh); in nilfs_sufile_read()
1203 brelse(header_bh); in nilfs_sufile_read()