Lines Matching refs:header
123 struct nilfs_sufile_header *header; in nilfs_sufile_mod_counter() local
125 header = kmap_local_folio(header_bh->b_folio, 0); in nilfs_sufile_mod_counter()
126 le64_add_cpu(&header->sh_ncleansegs, ncleanadd); in nilfs_sufile_mod_counter()
127 le64_add_cpu(&header->sh_ndirtysegs, ndirtyadd); in nilfs_sufile_mod_counter()
128 kunmap_local(header); in nilfs_sufile_mod_counter()
310 struct nilfs_sufile_header *header; in nilfs_sufile_alloc() local
325 header = kmap_local_folio(header_bh->b_folio, 0); in nilfs_sufile_alloc()
326 last_alloc = le64_to_cpu(header->sh_last_alloc); in nilfs_sufile_alloc()
327 kunmap_local(header); in nilfs_sufile_alloc()
375 header = kmap_local_folio(header_bh->b_folio, 0); in nilfs_sufile_alloc()
376 le64_add_cpu(&header->sh_ncleansegs, -1); in nilfs_sufile_alloc()
377 le64_add_cpu(&header->sh_ndirtysegs, 1); in nilfs_sufile_alloc()
378 header->sh_last_alloc = cpu_to_le64(segnum); in nilfs_sufile_alloc()
379 kunmap_local(header); in nilfs_sufile_alloc()
620 struct nilfs_sufile_header *header; in nilfs_sufile_get_stat() local
630 header = kmap_local_folio(header_bh->b_folio, 0); in nilfs_sufile_get_stat()
632 sustat->ss_ncleansegs = le64_to_cpu(header->sh_ncleansegs); in nilfs_sufile_get_stat()
633 sustat->ss_ndirtysegs = le64_to_cpu(header->sh_ndirtysegs); in nilfs_sufile_get_stat()
639 kunmap_local(header); in nilfs_sufile_get_stat()
790 struct nilfs_sufile_header *header; in nilfs_sufile_resize() local
829 header = kmap_local_folio(header_bh->b_folio, 0); in nilfs_sufile_resize()
830 header->sh_ncleansegs = cpu_to_le64(sui->ncleansegs); in nilfs_sufile_resize()
831 kunmap_local(header); in nilfs_sufile_resize()
1213 struct nilfs_sufile_header *header; in nilfs_sufile_read() local
1254 header = kmap_local_folio(header_bh->b_folio, 0); in nilfs_sufile_read()
1255 sui->ncleansegs = le64_to_cpu(header->sh_ncleansegs); in nilfs_sufile_read()
1256 kunmap_local(header); in nilfs_sufile_read()