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
240 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_update()
246 dofunc(sufile, segnum, header_bh, bh); in nilfs_sufile_update()
249 brelse(header_bh); in nilfs_sufile_update()
304 struct buffer_head *header_bh, *su_bh; in nilfs_sufile_alloc() local
316 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_alloc()
319 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_alloc()
320 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc()
369 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_alloc()
370 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc()
377 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
422 nilfs_sufile_mod_counter(header_bh, -1, 1); in nilfs_sufile_do_cancel_free()
430 struct buffer_head *header_bh, in nilfs_sufile_do_scrap() argument
453 nilfs_sufile_mod_counter(header_bh, clean ? (u64)-1 : 0, dirty ? 0 : 1); in nilfs_sufile_do_scrap()
461 struct buffer_head *header_bh, in nilfs_sufile_do_free() argument
485 nilfs_sufile_mod_counter(header_bh, 1, sudirty ? (u64)-1 : 0); in nilfs_sufile_do_free()
567 struct buffer_head *header_bh; in nilfs_sufile_get_stat() local
575 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_get_stat()
579 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_get_stat()
580 header = kaddr + bh_offset(header_bh); in nilfs_sufile_get_stat()
590 brelse(header_bh); in nilfs_sufile_get_stat()
598 struct buffer_head *header_bh, in nilfs_sufile_do_set_error() argument
616 nilfs_sufile_mod_counter(header_bh, -1, 0); in nilfs_sufile_do_set_error()
644 struct buffer_head *header_bh; in nilfs_sufile_truncate_range() local
662 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_truncate_range()
720 nilfs_sufile_mod_counter(header_bh, ncleaned, 0); in nilfs_sufile_truncate_range()
723 brelse(header_bh); in nilfs_sufile_truncate_range()
747 struct buffer_head *header_bh; in nilfs_sufile_resize() local
765 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_resize()
779 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_resize()
780 header = kaddr + bh_offset(header_bh); in nilfs_sufile_resize()
784 mark_buffer_dirty(header_bh); in nilfs_sufile_resize()
789 brelse(header_bh); in nilfs_sufile_resize()
894 struct buffer_head *header_bh, *bh; in nilfs_sufile_set_suinfo() local
918 ret = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_set_suinfo()
989 nilfs_sufile_mod_counter(header_bh, (u64)ncleaned, in nilfs_sufile_set_suinfo()
995 put_bh(header_bh); in nilfs_sufile_set_suinfo()
1165 struct buffer_head *header_bh; in nilfs_sufile_read() local
1197 err = nilfs_sufile_get_header_block(sufile, &header_bh); in nilfs_sufile_read()
1202 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_read()
1203 header = kaddr + bh_offset(header_bh); in nilfs_sufile_read()
1206 brelse(header_bh); in nilfs_sufile_read()