Lines Matching refs:nblocks
429 u64 nsegments, nblocks; in nilfs_store_disk_layout() local
483 nblocks = sb_bdev_nr_blocks(nilfs->ns_sb); in nilfs_store_disk_layout()
484 if (nblocks) { in nilfs_store_disk_layout()
492 if (nblocks < min_block_count) { in nilfs_store_disk_layout()
496 (unsigned long long)nblocks); in nilfs_store_disk_layout()
762 sector_t start = 0, nblocks = 0; in nilfs_discard_segments() local
772 if (!nblocks) { in nilfs_discard_segments()
774 nblocks = seg_end - seg_start + 1; in nilfs_discard_segments()
775 } else if (start + nblocks == seg_start) { in nilfs_discard_segments()
776 nblocks += seg_end - seg_start + 1; in nilfs_discard_segments()
780 nblocks * sects_per_block, in nilfs_discard_segments()
784 nblocks = 0; in nilfs_discard_segments()
787 if (nblocks) in nilfs_discard_segments()
790 nblocks * sects_per_block, in nilfs_discard_segments()
795 int nilfs_count_free_blocks(struct the_nilfs *nilfs, sector_t *nblocks) in nilfs_count_free_blocks() argument
800 *nblocks = (sector_t)ncleansegs * nilfs->ns_blocks_per_segment; in nilfs_count_free_blocks()