Lines Matching refs:nr_bhs

47 	if (fatent->nr_bhs == 1) {  in fat12_ent_set_ptr()
83 fatent->nr_bhs = 1; in fat12_ent_bread()
90 fatent->nr_bhs = 2; in fat12_ent_bread()
115 fatent->nr_bhs = 1; in fat_ent_bread()
174 if (fatent->nr_bhs == 2) in fat12_ent_put()
205 if (fatent->nr_bhs == 1) { in fat12_ent_next()
220 fatent->nr_bhs = 1; in fat12_ent_next()
320 if (!fatent->nr_bhs || bhs[0]->b_blocknr != blocknr) in fat_ent_update_ptr()
325 if (fatent->nr_bhs == 2) { in fat_ent_update_ptr()
327 fatent->nr_bhs = 1; in fat_ent_update_ptr()
331 if (fatent->nr_bhs != 2) in fat_ent_update_ptr()
369 int nr_bhs) in fat_mirror_bhs() argument
379 for (n = 0; n < nr_bhs; n++) { in fat_mirror_bhs()
408 err = fat_sync_bhs(fatent->bhs, fatent->nr_bhs); in fat_ent_write()
412 return fat_mirror_bhs(sb, fatent->bhs, fatent->nr_bhs); in fat_ent_write()
437 static void fat_collect_bhs(struct buffer_head **bhs, int *nr_bhs, in fat_collect_bhs() argument
442 for (n = 0; n < fatent->nr_bhs; n++) { in fat_collect_bhs()
443 for (i = 0; i < *nr_bhs; i++) { in fat_collect_bhs()
447 if (i == *nr_bhs) { in fat_collect_bhs()
450 (*nr_bhs)++; in fat_collect_bhs()
462 int i, count, err, nr_bhs, idx_clus; in fat_alloc_clusters() local
473 err = nr_bhs = idx_clus = 0; in fat_alloc_clusters()
493 if (prev_ent.nr_bhs) in fat_alloc_clusters()
496 fat_collect_bhs(bhs, &nr_bhs, &fatent); in fat_alloc_clusters()
531 err = fat_sync_bhs(bhs, nr_bhs); in fat_alloc_clusters()
533 err = fat_mirror_bhs(sb, bhs, nr_bhs); in fat_alloc_clusters()
535 for (i = 0; i < nr_bhs; i++) in fat_alloc_clusters()
551 int i, err, nr_bhs; in fat_free_clusters() local
554 nr_bhs = 0; in fat_free_clusters()
593 if (nr_bhs + fatent.nr_bhs > MAX_BUF_PER_PAGE) { in fat_free_clusters()
595 err = fat_sync_bhs(bhs, nr_bhs); in fat_free_clusters()
599 err = fat_mirror_bhs(sb, bhs, nr_bhs); in fat_free_clusters()
602 for (i = 0; i < nr_bhs; i++) in fat_free_clusters()
604 nr_bhs = 0; in fat_free_clusters()
606 fat_collect_bhs(bhs, &nr_bhs, &fatent); in fat_free_clusters()
610 err = fat_sync_bhs(bhs, nr_bhs); in fat_free_clusters()
614 err = fat_mirror_bhs(sb, bhs, nr_bhs); in fat_free_clusters()
617 for (i = 0; i < nr_bhs; i++) in fat_free_clusters()