Lines Matching refs:nsegs
156 int nilfs_sufile_updatev(struct inode *sufile, __u64 *segnumv, size_t nsegs, in nilfs_sufile_updatev() argument
168 if (unlikely(nsegs == 0)) in nilfs_sufile_updatev()
172 for (seg = segnumv; seg < segnumv + nsegs; seg++) { in nilfs_sufile_updatev()
198 if (++seg >= segnumv + nsegs) in nilfs_sufile_updatev()
269 __u64 nsegs; in nilfs_sufile_set_alloc_range() local
273 nsegs = nilfs_sufile_get_nsegments(sufile); in nilfs_sufile_set_alloc_range()
275 if (start <= end && end < nsegs) { in nilfs_sufile_set_alloc_range()
654 unsigned long nsegs, ncleaned; in nilfs_sufile_truncate_range() local
661 nsegs = nilfs_sufile_get_nsegments(sufile); in nilfs_sufile_truncate_range()
664 if (start > end || start >= nsegs) in nilfs_sufile_truncate_range()
756 unsigned long nsegs, nrsvsegs; in nilfs_sufile_resize() local
761 nsegs = nilfs_sufile_get_nsegments(sufile); in nilfs_sufile_resize()
762 if (nsegs == newnsegs) in nilfs_sufile_resize()
767 if (newnsegs < nsegs && nsegs - newnsegs + nrsvsegs > sui->ncleansegs) in nilfs_sufile_resize()
774 if (newnsegs > nsegs) { in nilfs_sufile_resize()
775 sui->ncleansegs += newnsegs - nsegs; in nilfs_sufile_resize()
777 ret = nilfs_sufile_truncate_range(sufile, newnsegs, nsegs - 1); in nilfs_sufile_resize()
781 sui->ncleansegs -= nsegs - newnsegs; in nilfs_sufile_resize()
826 unsigned long nsegs, segusages_per_block; in nilfs_sufile_get_suinfo() local
833 nsegs = min_t(unsigned long, in nilfs_sufile_get_suinfo()
836 for (i = 0; i < nsegs; i += n, segnum += n) { in nilfs_sufile_get_suinfo()
840 nsegs - i); in nilfs_sufile_get_suinfo()
868 ret = nsegs; in nilfs_sufile_get_suinfo()