Lines Matching refs:sui
268 struct nilfs_sufile_info *sui = NILFS_SUI(sufile); in nilfs_sufile_set_alloc_range() local
276 sui->allocmin = start; in nilfs_sufile_set_alloc_range()
277 sui->allocmax = end; in nilfs_sufile_set_alloc_range()
306 struct nilfs_sufile_info *sui = NILFS_SUI(sufile); in nilfs_sufile_alloc() local
324 maxsegnum = sui->allocmax; in nilfs_sufile_alloc()
326 if (segnum < sui->allocmin || segnum > sui->allocmax) in nilfs_sufile_alloc()
327 segnum = sui->allocmin; in nilfs_sufile_alloc()
331 if (cnt < sui->allocmax - sui->allocmin + 1) { in nilfs_sufile_alloc()
337 segnum = sui->allocmin; in nilfs_sufile_alloc()
339 } else if (segnum > sui->allocmin && in nilfs_sufile_alloc()
340 sui->allocmax + 1 < nsegments) { in nilfs_sufile_alloc()
341 segnum = sui->allocmax + 1; in nilfs_sufile_alloc()
343 } else if (sui->allocmin > 0) { in nilfs_sufile_alloc()
345 maxsegnum = sui->allocmin - 1; in nilfs_sufile_alloc()
375 sui->ncleansegs--; in nilfs_sufile_alloc()
782 struct nilfs_sufile_info *sui = NILFS_SUI(sufile); in nilfs_sufile_resize() local
795 if (newnsegs < nsegs && nsegs - newnsegs + nrsvsegs > sui->ncleansegs) in nilfs_sufile_resize()
803 sui->ncleansegs += newnsegs - nsegs; in nilfs_sufile_resize()
809 sui->ncleansegs -= nsegs - newnsegs; in nilfs_sufile_resize()
817 sui->allocmax = newnsegs - 1; in nilfs_sufile_resize()
818 sui->allocmin = 0; in nilfs_sufile_resize()
823 header->sh_ncleansegs = cpu_to_le64(sui->ncleansegs); in nilfs_sufile_resize()
1206 struct nilfs_sufile_info *sui; in nilfs_sufile_read() local
1228 err = nilfs_mdt_init(sufile, NILFS_MDT_GFP, sizeof(*sui)); in nilfs_sufile_read()
1243 sui = NILFS_SUI(sufile); in nilfs_sufile_read()
1246 sui->ncleansegs = le64_to_cpu(header->sh_ncleansegs); in nilfs_sufile_read()
1250 sui->allocmax = nilfs_sufile_get_nsegments(sufile) - 1; in nilfs_sufile_read()
1251 sui->allocmin = 0; in nilfs_sufile_read()