Home
last modified time | relevance | path

Searched refs:newnsegs (Results 1 – 3 of 3) sorted by relevance

/linux/fs/nilfs2/
A Dsufile.c741 int nilfs_sufile_resize(struct inode *sufile, __u64 newnsegs) in nilfs_sufile_resize() argument
754 if (nsegs == newnsegs) in nilfs_sufile_resize()
758 nrsvsegs = nilfs_nrsvsegs(nilfs, newnsegs); in nilfs_sufile_resize()
759 if (newnsegs < nsegs && nsegs - newnsegs + nrsvsegs > sui->ncleansegs) in nilfs_sufile_resize()
766 if (newnsegs > nsegs) { in nilfs_sufile_resize()
767 sui->ncleansegs += newnsegs - nsegs; in nilfs_sufile_resize()
769 ret = nilfs_sufile_truncate_range(sufile, newnsegs, nsegs - 1); in nilfs_sufile_resize()
773 sui->ncleansegs -= nsegs - newnsegs; in nilfs_sufile_resize()
783 nilfs_set_nsegments(nilfs, newnsegs); in nilfs_sufile_resize()
A Dsufile.h52 int nilfs_sufile_resize(struct inode *sufile, __u64 newnsegs);
A Dsuper.c401 __u64 devsize, newnsegs; in nilfs_resize_fs() local
418 newnsegs = sb2off >> nilfs->ns_blocksize_bits; in nilfs_resize_fs()
419 do_div(newnsegs, nilfs->ns_blocks_per_segment); in nilfs_resize_fs()
421 ret = nilfs_sufile_resize(nilfs->ns_sufile, newnsegs); in nilfs_resize_fs()
458 nilfs_sufile_set_alloc_range(nilfs->ns_sufile, 0, newnsegs - 1); in nilfs_resize_fs()

Completed in 9 milliseconds