Lines Matching refs:ffg

421 static void ocfs2_info_update_ffg(struct ocfs2_info_freefrag *ffg,  in ocfs2_info_update_ffg()  argument
424 o2ffg_update_histogram(&(ffg->iff_ffs.ffs_fc_hist), chunksize); in ocfs2_info_update_ffg()
425 o2ffg_update_stats(&(ffg->iff_ffs), chunksize); in ocfs2_info_update_ffg()
432 struct ocfs2_info_freefrag *ffg, in ocfs2_info_freefrag_scan_chain() argument
459 if (o2info_coherent(&ffg->iff_req)) in ocfs2_info_freefrag_scan_chain()
485 if ((offset + ffg->iff_chunksize) > max_bits) in ocfs2_info_freefrag_scan_chain()
488 num_clusters = ffg->iff_chunksize; in ocfs2_info_freefrag_scan_chain()
505 ocfs2_info_update_ffg(ffg, in ocfs2_info_freefrag_scan_chain()
513 if (chunk_free == ffg->iff_chunksize) in ocfs2_info_freefrag_scan_chain()
514 ffg->iff_ffs.ffs_free_chunks++; in ocfs2_info_freefrag_scan_chain()
521 ocfs2_info_update_ffg(ffg, last_chunksize); in ocfs2_info_freefrag_scan_chain()
533 struct ocfs2_info_freefrag *ffg) in ocfs2_info_freefrag_scan_bitmap() argument
546 if (o2info_coherent(&ffg->iff_req)) { in ocfs2_info_freefrag_scan_bitmap()
568 if (ffg->iff_chunksize > le16_to_cpu(cl->cl_cpg)) { in ocfs2_info_freefrag_scan_bitmap()
573 memset(&ffg->iff_ffs, 0, sizeof(struct ocfs2_info_freefrag_stats)); in ocfs2_info_freefrag_scan_bitmap()
575 ffg->iff_ffs.ffs_min = ~0U; in ocfs2_info_freefrag_scan_bitmap()
576 ffg->iff_ffs.ffs_clusters = in ocfs2_info_freefrag_scan_bitmap()
578 ffg->iff_ffs.ffs_free_clusters = ffg->iff_ffs.ffs_clusters - in ocfs2_info_freefrag_scan_bitmap()
581 chunks_in_group = le16_to_cpu(cl->cl_cpg) / ffg->iff_chunksize + 1; in ocfs2_info_freefrag_scan_bitmap()
587 rec, ffg, in ocfs2_info_freefrag_scan_bitmap()
593 if (ffg->iff_ffs.ffs_free_chunks_real) in ocfs2_info_freefrag_scan_bitmap()
594 ffg->iff_ffs.ffs_avg = (ffg->iff_ffs.ffs_avg / in ocfs2_info_freefrag_scan_bitmap()
595 ffg->iff_ffs.ffs_free_chunks_real); in ocfs2_info_freefrag_scan_bitmap()