Home
last modified time | relevance | path

Searched refs:segnum (Results 1 – 2 of 2) sorted by relevance

/linux/fs/nilfs2/
H A Dthe_nilfs.h300 nilfs_get_segment_range(struct the_nilfs *nilfs, __u64 segnum, in nilfs_get_segment_range() argument
303 *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() argument
312 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() local
321 sector_div(segnum, nilfs->ns_blocks_per_segment); in nilfs_get_segnum_of_block()
322 return segnum; in nilfs_get_segnum_of_block()
H A Dsysfs.c506 __u64 segnum; in nilfs_segctor_current_last_full_seg_show() local
509 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()