Searched refs:newnsegs (Results 1 – 3 of 3) sorted by relevance
/linux-5.19.10/fs/nilfs2/ |
D | sufile.c | 741 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()
|
D | sufile.h | 52 int nilfs_sufile_resize(struct inode *sufile, __u64 newnsegs);
|
D | super.c | 402 __u64 devsize, newnsegs; in nilfs_resize_fs() local 419 newnsegs = sb2off >> nilfs->ns_blocksize_bits; in nilfs_resize_fs() 420 do_div(newnsegs, nilfs->ns_blocks_per_segment); in nilfs_resize_fs() 422 ret = nilfs_sufile_resize(nilfs->ns_sufile, newnsegs); in nilfs_resize_fs() 459 nilfs_sufile_set_alloc_range(nilfs->ns_sufile, 0, newnsegs - 1); in nilfs_resize_fs()
|