Lines Matching refs:nilfs

566 	struct the_nilfs *nilfs = sufile->i_sb->s_fs_info;  in nilfs_sufile_get_stat()  local
581 sustat->ss_ctime = nilfs->ns_ctime; in nilfs_sufile_get_stat()
582 sustat->ss_nongc_ctime = nilfs->ns_nongc_ctime; in nilfs_sufile_get_stat()
583 spin_lock(&nilfs->ns_last_segment_lock); in nilfs_sufile_get_stat()
584 sustat->ss_prot_seq = nilfs->ns_prot_seq; in nilfs_sufile_get_stat()
585 spin_unlock(&nilfs->ns_last_segment_lock); in nilfs_sufile_get_stat()
640 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_truncate_range() local
686 nilfs_segment_is_active(nilfs, segnum + j)) { in nilfs_sufile_truncate_range()
743 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_resize() local
758 nrsvsegs = nilfs_nrsvsegs(nilfs, newnsegs); in nilfs_sufile_resize()
783 nilfs_set_nsegments(nilfs, newnsegs); in nilfs_sufile_resize()
816 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_get_suinfo() local
853 if (nilfs_segment_is_active(nilfs, segnum + j)) in nilfs_sufile_get_suinfo()
890 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_set_suinfo() local
904 if (sup->sup_segnum >= nilfs->ns_nsegments in nilfs_sufile_set_suinfo()
909 nilfs->ns_blocks_per_segment)) in nilfs_sufile_set_suinfo()
1016 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_trim_fs() local
1027 sects_per_block = (1 << nilfs->ns_blocksize_bits) / in nilfs_sufile_trim_fs()
1028 bdev_logical_block_size(nilfs->ns_bdev); in nilfs_sufile_trim_fs()
1029 len = range->len >> nilfs->ns_blocksize_bits; in nilfs_sufile_trim_fs()
1030 minlen = range->minlen >> nilfs->ns_blocksize_bits; in nilfs_sufile_trim_fs()
1031 max_blocks = ((u64)nilfs->ns_nsegments * nilfs->ns_blocks_per_segment); in nilfs_sufile_trim_fs()
1033 if (!len || range->start >= max_blocks << nilfs->ns_blocksize_bits) in nilfs_sufile_trim_fs()
1036 start_block = (range->start + nilfs->ns_blocksize - 1) >> in nilfs_sufile_trim_fs()
1037 nilfs->ns_blocksize_bits; in nilfs_sufile_trim_fs()
1049 segnum = nilfs_get_segnum_of_block(nilfs, start_block); in nilfs_sufile_trim_fs()
1050 segnum_end = nilfs_get_segnum_of_block(nilfs, end_block); in nilfs_sufile_trim_fs()
1075 nilfs_get_segment_range(nilfs, segnum, &seg_start, in nilfs_sufile_trim_fs()
1100 ret = blkdev_issue_discard(nilfs->ns_bdev, in nilfs_sufile_trim_fs()
1134 ret = blkdev_issue_discard(nilfs->ns_bdev, in nilfs_sufile_trim_fs()
1146 range->len = ndiscarded << nilfs->ns_blocksize_bits; in nilfs_sufile_trim_fs()