Searched refs:newnsegs (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/fs/nilfs2/ |
D | sufile.c | 777 int nilfs_sufile_resize(struct inode *sufile, __u64 newnsegs) in nilfs_sufile_resize() argument 790 if (nsegs == newnsegs) in nilfs_sufile_resize() 794 nrsvsegs = nilfs_nrsvsegs(nilfs, newnsegs); in nilfs_sufile_resize() 795 if (newnsegs < nsegs && nsegs - newnsegs + nrsvsegs > sui->ncleansegs) in nilfs_sufile_resize() 802 if (newnsegs > nsegs) { in nilfs_sufile_resize() 803 sui->ncleansegs += newnsegs - nsegs; in nilfs_sufile_resize() 805 ret = nilfs_sufile_truncate_range(sufile, newnsegs, nsegs - 1); in nilfs_sufile_resize() 809 sui->ncleansegs -= nsegs - newnsegs; in nilfs_sufile_resize() 817 sui->allocmax = newnsegs - 1; in nilfs_sufile_resize() 828 nilfs_set_nsegments(nilfs, newnsegs); in nilfs_sufile_resize()
|
D | sufile.h | 52 int nilfs_sufile_resize(struct inode *sufile, __u64 newnsegs);
|
D | super.c | 424 __u64 devsize, newnsegs; in nilfs_resize_fs() local 450 newnsegs = sb2off >> nilfs->ns_blocksize_bits; in nilfs_resize_fs() 451 do_div(newnsegs, nilfs->ns_blocks_per_segment); in nilfs_resize_fs() 453 ret = nilfs_sufile_resize(nilfs->ns_sufile, newnsegs); in nilfs_resize_fs() 490 nilfs_sufile_set_alloc_range(nilfs->ns_sufile, 0, newnsegs - 1); in nilfs_resize_fs()
|