Searched refs:newnsegs (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/fs/nilfs2/ |
D | sufile.c | 796 int nilfs_sufile_resize(struct inode *sufile, __u64 newnsegs) in nilfs_sufile_resize() argument 809 if (nsegs == newnsegs) in nilfs_sufile_resize() 813 nrsvsegs = nilfs_nrsvsegs(nilfs, newnsegs); in nilfs_sufile_resize() 814 if (newnsegs < nsegs && nsegs - newnsegs + nrsvsegs > sui->ncleansegs) in nilfs_sufile_resize() 821 if (newnsegs > nsegs) { in nilfs_sufile_resize() 822 sui->ncleansegs += newnsegs - nsegs; in nilfs_sufile_resize() 824 ret = nilfs_sufile_truncate_range(sufile, newnsegs, nsegs - 1); in nilfs_sufile_resize() 828 sui->ncleansegs -= nsegs - newnsegs; in nilfs_sufile_resize() 836 sui->allocmax = newnsegs - 1; in nilfs_sufile_resize() 847 nilfs_set_nsegments(nilfs, newnsegs); in nilfs_sufile_resize()
|
D | super.c | 428 __u64 devsize, newnsegs; in nilfs_resize_fs() local 454 newnsegs = sb2off >> nilfs->ns_blocksize_bits; in nilfs_resize_fs() 455 newnsegs = div64_ul(newnsegs, nilfs->ns_blocks_per_segment); in nilfs_resize_fs() 457 ret = nilfs_sufile_resize(nilfs->ns_sufile, newnsegs); in nilfs_resize_fs() 494 nilfs_sufile_set_alloc_range(nilfs->ns_sufile, 0, newnsegs - 1); in nilfs_resize_fs()
|
D | sufile.h | 52 int nilfs_sufile_resize(struct inode *sufile, __u64 newnsegs);
|