Lines Matching refs:sui

275 	struct nilfs_sufile_info *sui = NILFS_SUI(sufile);  in nilfs_sufile_set_alloc_range()  local
283 sui->allocmin = start; in nilfs_sufile_set_alloc_range()
284 sui->allocmax = end; in nilfs_sufile_set_alloc_range()
313 struct nilfs_sufile_info *sui = NILFS_SUI(sufile); in nilfs_sufile_alloc() local
331 maxsegnum = sui->allocmax; in nilfs_sufile_alloc()
333 if (segnum < sui->allocmin || segnum > sui->allocmax) in nilfs_sufile_alloc()
334 segnum = sui->allocmin; in nilfs_sufile_alloc()
338 if (cnt < sui->allocmax - sui->allocmin + 1) { in nilfs_sufile_alloc()
344 segnum = sui->allocmin; in nilfs_sufile_alloc()
346 } else if (segnum > sui->allocmin && in nilfs_sufile_alloc()
347 sui->allocmax + 1 < nsegments) { in nilfs_sufile_alloc()
348 segnum = sui->allocmax + 1; in nilfs_sufile_alloc()
350 } else if (sui->allocmin > 0) { in nilfs_sufile_alloc()
352 maxsegnum = sui->allocmin - 1; in nilfs_sufile_alloc()
382 sui->ncleansegs--; in nilfs_sufile_alloc()
801 struct nilfs_sufile_info *sui = NILFS_SUI(sufile); in nilfs_sufile_resize() local
814 if (newnsegs < nsegs && nsegs - newnsegs + nrsvsegs > sui->ncleansegs) in nilfs_sufile_resize()
822 sui->ncleansegs += newnsegs - nsegs; in nilfs_sufile_resize()
828 sui->ncleansegs -= nsegs - newnsegs; in nilfs_sufile_resize()
836 sui->allocmax = newnsegs - 1; in nilfs_sufile_resize()
837 sui->allocmin = 0; in nilfs_sufile_resize()
842 header->sh_ncleansegs = cpu_to_le64(sui->ncleansegs); in nilfs_sufile_resize()
1221 struct nilfs_sufile_info *sui; in nilfs_sufile_read() local
1243 err = nilfs_mdt_init(sufile, NILFS_MDT_GFP, sizeof(*sui)); in nilfs_sufile_read()
1264 sui = NILFS_SUI(sufile); in nilfs_sufile_read()
1267 sui->ncleansegs = le64_to_cpu(header->sh_ncleansegs); in nilfs_sufile_read()
1271 sui->allocmax = nilfs_sufile_get_nsegments(sufile) - 1; in nilfs_sufile_read()
1272 sui->allocmin = 0; in nilfs_sufile_read()