/fs/afs/ |
D | dir_edit.c | 213 unsigned int need_slots, nr_blocks, b; in afs_edit_dir_add() local 239 nr_blocks = i_size / AFS_DIR_BLOCK_SIZE; in afs_edit_dir_add() 244 for (b = 0; b < nr_blocks + 1; b++) { in afs_edit_dir_add() 249 if (nr_blocks >= AFS_DIR_MAX_BLOCKS) in afs_edit_dir_add() 272 if (b == nr_blocks) { in afs_edit_dir_add() 312 nr_blocks = 1; in afs_edit_dir_add() 380 unsigned int need_slots, nr_blocks, b; in afs_edit_dir_remove() local 394 nr_blocks = i_size / AFS_DIR_BLOCK_SIZE; in afs_edit_dir_remove() 410 for (b = 0; b < nr_blocks; b++) { in afs_edit_dir_remove()
|
/fs/crypto/ |
D | inline_crypt.c | 506 u64 fscrypt_limit_io_blocks(const struct inode *inode, u64 lblk, u64 nr_blocks) in fscrypt_limit_io_blocks() argument 512 return nr_blocks; in fscrypt_limit_io_blocks() 514 if (nr_blocks <= 1) in fscrypt_limit_io_blocks() 515 return nr_blocks; in fscrypt_limit_io_blocks() 520 return nr_blocks; in fscrypt_limit_io_blocks() 526 return min_t(u64, nr_blocks, (u64)U32_MAX + 1 - dun); in fscrypt_limit_io_blocks()
|
/fs/xfs/libxfs/ |
D | xfs_btree_staging.c | 646 uint64_t nr_blocks = 0; in xfs_btree_bload_compute_geometry() local 681 nr_blocks++; in xfs_btree_bload_compute_geometry() 714 nr_blocks++; in xfs_btree_bload_compute_geometry() 723 nr_blocks += level_blocks; in xfs_btree_bload_compute_geometry() 732 bbl->nr_blocks = nr_blocks - 1; in xfs_btree_bload_compute_geometry() 734 bbl->nr_blocks = nr_blocks; in xfs_btree_bload_compute_geometry()
|
D | xfs_btree_staging.h | 103 uint64_t nr_blocks; member
|
/fs/jffs2/ |
D | build.c | 326 size += c->nr_blocks * 100; /* And 100 bytes per eraseblock */ in jffs2_calc_trigger_levels() 356 c->flash_size / 1024, c->sector_size / 1024, c->nr_blocks); in jffs2_calc_trigger_levels() 380 c->nr_blocks = c->flash_size / c->sector_size; in jffs2_do_mount_fs() 381 size = sizeof(struct jffs2_eraseblock) * c->nr_blocks; in jffs2_do_mount_fs() 391 for (i=0; i<c->nr_blocks; i++) { in jffs2_do_mount_fs()
|
D | jffs2_fs_sb.h | 91 uint32_t nr_blocks; member
|
D | scan.c | 143 for (i=0; i<c->nr_blocks; i++) { in jffs2_scan_medium() 265 ((c->nr_free_blocks+empty_blocks+bad_blocks) != c->nr_blocks || bad_blocks == c->nr_blocks)) { in jffs2_scan_medium() 268 empty_blocks, bad_blocks, c->nr_blocks); in jffs2_scan_medium()
|
D | debug.c | 285 if (nr_counted != c->nr_blocks) { in __jffs2_dbg_superblock_counts() 287 __func__, nr_counted, c->nr_blocks); in __jffs2_dbg_superblock_counts()
|
D | nodelist.c | 509 for (i=0; i<c->nr_blocks; i++) { in jffs2_free_raw_node_refs()
|
D | nodemgmt.c | 598 if (blocknr >= c->nr_blocks) { in jffs2_mark_node_obsolete()
|
/fs/gfs2/ |
D | inode.c | 544 return da->nr_blocks + gfs2_rg_blocks(dip, da->nr_blocks) + in gfs2_trans_da_blks() 552 struct gfs2_alloc_parms ap = { .target = da->nr_blocks, }; in link_dinode() 555 if (da->nr_blocks) { in link_dinode() 1010 if (da.nr_blocks) { in gfs2_link() 1011 struct gfs2_alloc_parms ap = { .target = da.nr_blocks, }; in gfs2_link() 1049 if (da.nr_blocks) in gfs2_link() 1052 if (da.nr_blocks) in gfs2_link() 1409 struct gfs2_diradd da = { .nr_blocks = 0, .save_loc = 0, }; in gfs2_rename() 1568 if (da.nr_blocks) { in gfs2_rename() 1569 struct gfs2_alloc_parms ap = { .target = da.nr_blocks, }; in gfs2_rename() [all …]
|
D | dir.h | 20 unsigned nr_blocks; member
|
D | dir.c | 2165 da->nr_blocks = 0; in gfs2_diradd_alloc_required() 2171 da->nr_blocks = sdp->sd_max_dirres; in gfs2_diradd_alloc_required() 2174 da->nr_blocks = 1; in gfs2_diradd_alloc_required()
|
/fs/iomap/ |
D | buffered-io.c | 146 unsigned int nr_blocks = i_blocks_per_folio(inode, folio); in ifs_alloc() local 149 if (ifs || nr_blocks <= 1) in ifs_alloc() 164 BITS_TO_LONGS(2 * nr_blocks)), gfp); in ifs_alloc() 170 bitmap_set(ifs->state, 0, nr_blocks); in ifs_alloc() 172 bitmap_set(ifs->state, nr_blocks, nr_blocks); in ifs_alloc() 639 unsigned int nr_blocks = i_blocks_per_folio(iter->inode, folio); in __iomap_write_begin() local 655 if ((iter->flags & IOMAP_NOWAIT) && !ifs && nr_blocks > 1) in __iomap_write_begin()
|
/fs/xfs/scrub/ |
D | repair.h | 34 bool xrep_ag_has_space(struct xfs_perag *pag, xfs_extlen_t nr_blocks,
|
D | repair.c | 237 xfs_extlen_t nr_blocks, in xrep_ag_has_space() argument 242 pag->pagf_freeblks > xfs_ag_resv_needed(pag, type) + nr_blocks; in xrep_ag_has_space()
|
/fs/ntfs/ |
D | volume.h | 32 LCN nr_blocks; /* Number of sb->s_blocksize bytes member
|
D | super.c | 675 sector_t nr_blocks = NTFS_SB(sb)->nr_blocks; in read_ntfs_boot_sector() local 695 if ((bh_backup = sb_bread(sb, nr_blocks - 1))) { in read_ntfs_boot_sector() 703 if ((bh_backup = sb_bread(sb, nr_blocks >> 1))) { in read_ntfs_boot_sector() 2784 vol->nr_blocks = sb_bdev_nr_blocks(sb); in ntfs_fill_super() 2785 if (!vol->nr_blocks) { in ntfs_fill_super() 2827 vol->nr_blocks = sb_bdev_nr_blocks(sb); in ntfs_fill_super()
|
D | inode.c | 1758 unsigned int i, nr_blocks; in ntfs_read_inode_mount() local 1803 nr_blocks = vol->mft_record_size >> sb->s_blocksize_bits; in ntfs_read_inode_mount() 1804 if (!nr_blocks) in ntfs_read_inode_mount() 1805 nr_blocks = 1; in ntfs_read_inode_mount() 1808 for (i = 0; i < nr_blocks; i++) { in ntfs_read_inode_mount()
|
/fs/zonefs/ |
D | super.c | 158 loff_t nr_blocks; in zonefs_update_stats() local 170 nr_blocks = (old_isize - new_isize) >> sb->s_blocksize_bits; in zonefs_update_stats() 171 if (sbi->s_used_blocks > nr_blocks) in zonefs_update_stats() 172 sbi->s_used_blocks -= nr_blocks; in zonefs_update_stats()
|
/fs/ocfs2/ |
D | file.c | 1543 u64 start_block, end_block, nr_blocks; in ocfs2_zeroout_partial_cluster() local 1554 nr_blocks = end_block - start_block; in ocfs2_zeroout_partial_cluster() 1555 if (!nr_blocks) in ocfs2_zeroout_partial_cluster() 1568 return sb_issue_zeroout(sb, p_block, nr_blocks, GFP_NOFS); in ocfs2_zeroout_partial_cluster()
|
/fs/xfs/ |
D | xfs_trace.h | 4181 uint64_t block_idx, uint64_t nr_blocks, 4183 TP_ARGS(cur, level, block_idx, nr_blocks, ptr, nr_records), 4189 __field(unsigned long long, nr_blocks) 4199 __entry->nr_blocks = nr_blocks; 4216 __entry->nr_blocks,
|