Lines Matching refs:nilfs
577 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_get_stat() local
592 sustat->ss_ctime = nilfs->ns_ctime; in nilfs_sufile_get_stat()
593 sustat->ss_nongc_ctime = nilfs->ns_nongc_ctime; in nilfs_sufile_get_stat()
594 spin_lock(&nilfs->ns_last_segment_lock); in nilfs_sufile_get_stat()
595 sustat->ss_prot_seq = nilfs->ns_prot_seq; in nilfs_sufile_get_stat()
596 spin_unlock(&nilfs->ns_last_segment_lock); in nilfs_sufile_get_stat()
651 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_truncate_range() local
697 nilfs_segment_is_active(nilfs, segnum + j)) { in nilfs_sufile_truncate_range()
754 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_resize() local
769 nrsvsegs = nilfs_nrsvsegs(nilfs, newnsegs); in nilfs_sufile_resize()
803 nilfs_set_nsegments(nilfs, newnsegs); in nilfs_sufile_resize()
836 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_get_suinfo() local
873 if (nilfs_segment_is_active(nilfs, segnum + j)) in nilfs_sufile_get_suinfo()
910 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_set_suinfo() local
924 if (sup->sup_segnum >= nilfs->ns_nsegments in nilfs_sufile_set_suinfo()
929 nilfs->ns_blocks_per_segment)) in nilfs_sufile_set_suinfo()
1036 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_trim_fs() local
1047 sects_per_block = (1 << nilfs->ns_blocksize_bits) / in nilfs_sufile_trim_fs()
1048 bdev_logical_block_size(nilfs->ns_bdev); in nilfs_sufile_trim_fs()
1049 len = range->len >> nilfs->ns_blocksize_bits; in nilfs_sufile_trim_fs()
1050 minlen = range->minlen >> nilfs->ns_blocksize_bits; in nilfs_sufile_trim_fs()
1051 max_blocks = ((u64)nilfs->ns_nsegments * nilfs->ns_blocks_per_segment); in nilfs_sufile_trim_fs()
1053 if (!len || range->start >= max_blocks << nilfs->ns_blocksize_bits) in nilfs_sufile_trim_fs()
1056 start_block = (range->start + nilfs->ns_blocksize - 1) >> in nilfs_sufile_trim_fs()
1057 nilfs->ns_blocksize_bits; in nilfs_sufile_trim_fs()
1069 segnum = nilfs_get_segnum_of_block(nilfs, start_block); in nilfs_sufile_trim_fs()
1070 segnum_end = nilfs_get_segnum_of_block(nilfs, end_block); in nilfs_sufile_trim_fs()
1095 nilfs_get_segment_range(nilfs, segnum, &seg_start, in nilfs_sufile_trim_fs()
1120 ret = blkdev_issue_discard(nilfs->ns_bdev, in nilfs_sufile_trim_fs()
1154 ret = blkdev_issue_discard(nilfs->ns_bdev, in nilfs_sufile_trim_fs()
1166 range->len = ndiscarded << nilfs->ns_blocksize_bits; in nilfs_sufile_trim_fs()