Searched refs:segnum (Results 1 – 2 of 2) sorted by relevance
300 nilfs_get_segment_range(struct the_nilfs *nilfs, __u64 segnum, in nilfs_get_segment_range() argument303 *seg_start = (sector_t)nilfs->ns_blocks_per_segment * segnum; in nilfs_get_segment_range()305 if (segnum == 0) in nilfs_get_segment_range()310 nilfs_get_segment_start_blocknr(struct the_nilfs *nilfs, __u64 segnum) in nilfs_get_segment_start_blocknr() argument312 return (segnum == 0) ? nilfs->ns_first_data_block : in nilfs_get_segment_start_blocknr()313 (sector_t)nilfs->ns_blocks_per_segment * segnum; in nilfs_get_segment_start_blocknr()319 sector_t segnum = blocknr; in nilfs_get_segnum_of_block() local321 sector_div(segnum, nilfs->ns_blocks_per_segment); in nilfs_get_segnum_of_block()322 return segnum; in nilfs_get_segnum_of_block()
506 __u64 segnum; in nilfs_segctor_current_last_full_seg_show() local509 segnum = nilfs->ns_segnum; in nilfs_segctor_current_last_full_seg_show()512 return sysfs_emit(buf, "%llu\n", segnum); in nilfs_segctor_current_last_full_seg_show()