Lines Matching refs:nblocks
440 u64 nsegments, nblocks; in nilfs_store_disk_layout() local
500 nblocks = sb_bdev_nr_blocks(nilfs->ns_sb); in nilfs_store_disk_layout()
501 if (nblocks) { in nilfs_store_disk_layout()
509 if (nblocks < min_block_count) { in nilfs_store_disk_layout()
513 (unsigned long long)nblocks); in nilfs_store_disk_layout()
791 sector_t start = 0, nblocks = 0; in nilfs_discard_segments() local
801 if (!nblocks) { in nilfs_discard_segments()
803 nblocks = seg_end - seg_start + 1; in nilfs_discard_segments()
804 } else if (start + nblocks == seg_start) { in nilfs_discard_segments()
805 nblocks += seg_end - seg_start + 1; in nilfs_discard_segments()
809 nblocks * sects_per_block, in nilfs_discard_segments()
813 nblocks = 0; in nilfs_discard_segments()
816 if (nblocks) in nilfs_discard_segments()
819 nblocks * sects_per_block, in nilfs_discard_segments()
824 int nilfs_count_free_blocks(struct the_nilfs *nilfs, sector_t *nblocks) in nilfs_count_free_blocks() argument
829 *nblocks = (sector_t)ncleansegs * nilfs->ns_blocks_per_segment; in nilfs_count_free_blocks()