Home
last modified time | relevance | path

Searched refs:nblocks (Results 1 – 64 of 64) sorted by relevance

/linux-4.4.14/init/
Ddo_mounts_rd.c74 int nblocks = -1; in identify_ramdisk_image() local
103 nblocks = 0; in identify_ramdisk_image()
113 nblocks = (ntohl(romfsb->size)+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS; in identify_ramdisk_image()
121 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image()
130 nblocks = (le64_to_cpu(squashfsb->bytes_used) + BLOCK_SIZE - 1) in identify_ramdisk_image()
145 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image()
161 nblocks = minixsb->s_nzones << minixsb->s_log_zone_size; in identify_ramdisk_image()
171 nblocks = n; in identify_ramdisk_image()
182 return nblocks; in identify_ramdisk_image()
190 int nblocks, i, disk; in rd_load_image() local
[all …]
/linux-4.4.14/fs/jfs/
Djfs_dmap.c78 int nblocks);
85 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results);
87 int nblocks);
89 int nblocks,
92 int nblocks);
93 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
96 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb,
98 static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno,
100 static int dbExtend(struct inode *ip, s64 blkno, s64 nblocks, s64 addnblocks);
105 int nblocks);
[all …]
Djfs_discard.c45 void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks) in jfs_issue_discard() argument
50 r = sb_issue_discard(sb, blkno, nblocks, GFP_NOFS, 0); in jfs_issue_discard()
55 (unsigned long long)nblocks, r); in jfs_issue_discard()
61 (unsigned long long)nblocks, r); in jfs_issue_discard()
Djfs_dmap.h161 __le32 nblocks; /* 4: num blks covered by this dmap */ member
297 extern int dbFree(struct inode *ipbmap, s64 blkno, s64 nblocks);
300 int free, s64 blkno, s64 nblocks, struct tblock * tblk);
304 extern int dbAlloc(struct inode *ipbmap, s64 hint, s64 nblocks, s64 * results);
307 s64 blkno, s64 nblocks, s64 addnblocks, s64 * results);
310 extern int dbAllocBottomUp(struct inode *ip, s64 blkno, s64 nblocks);
311 extern int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks);
Dresize.c74 s64 XAddress, XSize, nblocks, xoff, xaddr, t64; in jfs_extendfs() local
326 nblocks = min(t64 - mapSize, XSize); in jfs_extendfs()
335 if ((rc = dbExtendFS(ipbmap, XAddress, nblocks))) in jfs_extendfs()
345 XSize -= nblocks; in jfs_extendfs()
389 xlen = min(xlen, (int) nblocks) & ~(sbi->nbperpage - 1); in jfs_extendfs()
394 if ((rc = xtAppend(tid, ipbmap, 0, xoff, nblocks, &xlen, &xaddr, 0))) { in jfs_extendfs()
Dxattr.c222 int nblocks; in ea_write() local
240 nblocks = (size + (sb->s_blocksize - 1)) >> sb->s_blocksize_bits; in ea_write()
243 rc = dquot_alloc_block(ip, nblocks); in ea_write()
247 rc = dbAlloc(ip, INOHINT(ip), nblocks, &blkno); in ea_write()
250 dquot_free_block(ip, nblocks); in ea_write()
261 for (i = 0; i < nblocks; i += sbi->nbperpage) { in ea_write()
304 DXDlength(ea, nblocks); in ea_write()
315 dquot_free_block(ip, nblocks); in ea_write()
317 dbFree(ip, blkno, nblocks); in ea_write()
371 int nblocks; in ea_read() local
[all …]
Djfs_extent.c509 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument
525 if (*nblocks >= max && *nblocks > nbperpage) in extBalloc()
528 nb = nblks = *nblocks; in extBalloc()
546 *nblocks = nb; in extBalloc()
Djfs_discard.h23 extern void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks);
Djfs_xtree.c2186 int nsplit, nblocks, xlen; in xtAppend() local
2240 nblocks = JFS_SBI(ip->i_sb)->nbperpage; in xtAppend()
2241 for (; nsplit > 0; nsplit--, pxd++, xaddr += nblocks, maxblocks -= nblocks) { in xtAppend()
2242 if ((rc = dbAllocBottomUp(ip, xaddr, (s64) nblocks)) == 0) { in xtAppend()
2244 PXDlength(pxd, nblocks); in xtAppend()
/linux-4.4.14/kernel/
Dgroups.c15 int nblocks; in groups_alloc() local
18 nblocks = (gidsetsize + NGROUPS_PER_BLOCK - 1) / NGROUPS_PER_BLOCK; in groups_alloc()
20 nblocks = nblocks ? : 1; in groups_alloc()
21 group_info = kmalloc(sizeof(*group_info) + nblocks*sizeof(gid_t *), GFP_USER); in groups_alloc()
25 group_info->nblocks = nblocks; in groups_alloc()
31 for (i = 0; i < nblocks; i++) { in groups_alloc()
55 for (i = 0; i < group_info->nblocks; i++) in groups_free()
/linux-4.4.14/crypto/
Dxts.c176 unsigned int nblocks; in xts_crypt() local
190 nblocks = min(nbytes / bsize, max_blks); in xts_crypt()
202 for (i = 0; i < nblocks; i++) { in xts_crypt()
213 nblocks * bsize); in xts_crypt()
216 for (i = 0; i < nblocks; i++) in xts_crypt()
219 src += nblocks; in xts_crypt()
220 dst += nblocks; in xts_crypt()
221 nbytes -= nblocks * bsize; in xts_crypt()
222 nblocks = min(nbytes / bsize, max_blks); in xts_crypt()
223 } while (nblocks > 0); in xts_crypt()
[all …]
Dlrw.c225 unsigned int nblocks; in lrw_crypt() local
239 nblocks = min(walk.nbytes / bsize, max_blks); in lrw_crypt()
255 for (i = 0; i < nblocks; i++) { in lrw_crypt()
270 nblocks * bsize); in lrw_crypt()
273 for (i = 0; i < nblocks; i++) in lrw_crypt()
276 src += nblocks; in lrw_crypt()
277 dst += nblocks; in lrw_crypt()
278 nbytes -= nblocks * bsize; in lrw_crypt()
279 nblocks = min(nbytes / bsize, max_blks); in lrw_crypt()
280 } while (nblocks > 0); in lrw_crypt()
[all …]
Dtgr192.c41 u32 nblocks; member
505 tctx->nblocks = 0; in tgr192_init()
522 tctx->nblocks++; in tgr192_update()
541 tctx->nblocks++; in tgr192_update()
566 t = tctx->nblocks; in tgr192_final()
/linux-4.4.14/fs/ext4/
Dext4_jbd2.h297 #define ext4_journal_start_sb(sb, type, nblocks) \ argument
298 __ext4_journal_start_sb((sb), __LINE__, (type), (nblocks), 0)
300 #define ext4_journal_start(inode, type, nblocks) \ argument
301 __ext4_journal_start((inode), __LINE__, (type), (nblocks), 0)
334 static inline int ext4_journal_extend(handle_t *handle, int nblocks) in ext4_journal_extend() argument
337 return jbd2_journal_extend(handle, nblocks); in ext4_journal_extend()
341 static inline int ext4_journal_restart(handle_t *handle, int nblocks) in ext4_journal_restart() argument
344 return jbd2_journal_restart(handle, nblocks); in ext4_journal_restart()
Dialloc.c745 unsigned int line_no, int nblocks) in __ext4_new_inode() argument
776 nblocks += EXT4_DATA_TRANS_BLOCKS(dir->i_sb); in __ext4_new_inode()
886 BUG_ON(nblocks <= 0); in __ext4_new_inode()
888 handle_type, nblocks, in __ext4_new_inode()
Dnamei.c1359 ext4_lblk_t nblocks; in ext4_find_entry() local
1391 nblocks = 1; in ext4_find_entry()
1406 nblocks = dir->i_size >> EXT4_BLOCK_SIZE_BITS(sb); in ext4_find_entry()
1408 if (start >= nblocks) in ext4_find_entry()
1426 if (b >= nblocks || (num && block == start)) { in ext4_find_entry()
1478 if (++block >= nblocks) in ext4_find_entry()
1486 block = nblocks; in ext4_find_entry()
1487 nblocks = dir->i_size >> EXT4_BLOCK_SIZE_BITS(sb); in ext4_find_entry()
1488 if (block < nblocks) { in ext4_find_entry()
Dext4.h2425 unsigned int line_no, int nblocks);
2431 type, nblocks) \ argument
2433 (type), __LINE__, (nblocks))
2509 extern int ext4_truncate_restart_trans(handle_t *, struct inode *, int nblocks);
Dinode.c159 int nblocks) in ext4_truncate_restart_trans() argument
172 ret = ext4_journal_restart(handle, nblocks); in ext4_truncate_restart_trans()
/linux-4.4.14/fs/reiserfs/
Dxattr.h77 size_t nblocks = JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_xattr_jcreate_nblocks() local
80 nblocks += JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_xattr_jcreate_nblocks()
82 nblocks += JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_xattr_jcreate_nblocks()
85 return nblocks; in reiserfs_xattr_jcreate_nblocks()
Dxattr_acl.c368 int nblocks = 0; in reiserfs_cache_default_acl() local
382 nblocks = reiserfs_xattr_jcreate_nblocks(inode); in reiserfs_cache_default_acl()
383 nblocks += JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_cache_default_acl()
388 nblocks += reiserfs_xattr_nblocks(inode, size) * 4; in reiserfs_cache_default_acl()
392 return nblocks; in reiserfs_cache_default_acl()
Djournal.c112 unsigned long nblocks, int join);
3021 struct super_block *sb, unsigned long nblocks, in do_journal_begin_r() argument
3033 BUG_ON(nblocks > journal->j_trans_max); in do_journal_begin_r()
3068 && (journal->j_len_alloc + nblocks + 2) >= journal->j_max_batch) in do_journal_begin_r()
3080 if (!join && (journal->j_len_alloc + nblocks + 2) >= in do_journal_begin_r()
3082 ((journal->j_len + nblocks + 2) * 100) < in do_journal_begin_r()
3123 journal->j_len_alloc += nblocks; in do_journal_begin_r()
3125 th->t_blocks_allocated = nblocks; in do_journal_begin_r()
3145 int nblocks) in reiserfs_persistent_transaction() argument
3164 ret = journal_begin(th, s, nblocks); in reiserfs_persistent_transaction()
[all …]
/linux-4.4.14/fs/freevxfs/
Dvxfs_lookup.c109 u_long npages, page, nblocks, pblocks, block; in vxfs_find_entry() local
115 nblocks = dir_blocks(ip); in vxfs_find_entry()
127 for (block = 0; block <= nblocks && block <= pblocks; block++) { in vxfs_find_entry()
236 u_long page, npages, block, pblocks, nblocks, offset; in vxfs_readdir() local
255 nblocks = dir_blocks(ip); in vxfs_readdir()
271 for (; block <= nblocks && block <= pblocks; block++) { in vxfs_readdir()
/linux-4.4.14/fs/nilfs2/
Dsufile.c529 unsigned long nblocks, time_t modtime) in nilfs_sufile_set_segment_usage() argument
546 su->su_nblocks = cpu_to_le32(nblocks); in nilfs_sufile_set_segment_usage()
1034 sector_t start = 0, nblocks = 0; in nilfs_sufile_trim_fs() local
1090 if (!nblocks) { in nilfs_sufile_trim_fs()
1093 nblocks = seg_end - seg_start + 1; in nilfs_sufile_trim_fs()
1097 if (start + nblocks == seg_start) { in nilfs_sufile_trim_fs()
1099 nblocks += seg_end - seg_start + 1; in nilfs_sufile_trim_fs()
1105 nblocks -= start_block - start; in nilfs_sufile_trim_fs()
1109 if (nblocks >= minlen) { in nilfs_sufile_trim_fs()
1114 nblocks * sects_per_block, in nilfs_sufile_trim_fs()
[all …]
Dsegbuf.h47 unsigned long nblocks; member
143 return segbuf->sb_sum.nblocks == segbuf->sb_sum.nsumblk; in nilfs_segbuf_empty()
151 segbuf->sb_sum.nblocks++; in nilfs_segbuf_add_segsum_buffer()
160 segbuf->sb_sum.nblocks++; in nilfs_segbuf_add_payload_buffer()
Dthe_nilfs.c664 sector_t start = 0, nblocks = 0; in nilfs_discard_segments() local
674 if (!nblocks) { in nilfs_discard_segments()
676 nblocks = seg_end - seg_start + 1; in nilfs_discard_segments()
677 } else if (start + nblocks == seg_start) { in nilfs_discard_segments()
678 nblocks += seg_end - seg_start + 1; in nilfs_discard_segments()
682 nblocks * sects_per_block, in nilfs_discard_segments()
686 nblocks = 0; in nilfs_discard_segments()
689 if (nblocks) in nilfs_discard_segments()
692 nblocks * sects_per_block, in nilfs_discard_segments()
697 int nilfs_count_free_blocks(struct the_nilfs *nilfs, sector_t *nblocks) in nilfs_count_free_blocks() argument
[all …]
Drecovery.c339 unsigned long nblocks, ndatablk, nnodeblk; in nilfs_scan_dsync_log() local
348 nblocks = le32_to_cpu(finfo->fi_nblocks); in nilfs_scan_dsync_log()
350 nnodeblk = nblocks - ndatablk; in nilfs_scan_dsync_log()
821 unsigned long nblocks; in nilfs_search_super_root() local
857 nblocks = le32_to_cpu(sum->ss_nblocks); in nilfs_search_super_root()
858 pseg_end = pseg_start + nblocks - 1; in nilfs_search_super_root()
905 nilfs->ns_pseg_offset = pseg_start + nblocks - seg_start; in nilfs_search_super_root()
922 pseg_start += nblocks; in nilfs_search_super_root()
Dsegbuf.c96 segbuf->sb_pseg_start = prev->sb_pseg_start + prev->sb_sum.nblocks; in nilfs_segbuf_map_cont()
127 segbuf->sb_pseg_start + segbuf->sb_sum.nblocks); in nilfs_segbuf_extend_payload()
141 segbuf->sb_sum.nblocks = segbuf->sb_sum.nsumblk = 0; in nilfs_segbuf_reset()
172 raw_sum->ss_nblocks = cpu_to_le32(segbuf->sb_sum.nblocks); in nilfs_segbuf_fill_in_segsum()
416 wi->rest_blocks = segbuf->sb_sum.nblocks; in nilfs_segbuf_prepare_write()
Dsufile.h43 unsigned long nblocks, time_t modtime);
Dsegment.c445 sci->sc_nblk_this_inc += sci->sc_curseg->sb_sum.nblocks; in nilfs_segctor_feed_segment()
458 if (segbuf->sb_sum.nblocks >= segbuf->sb_rest_blocks) { in nilfs_segctor_add_super_root()
545 if (segbuf->sb_sum.nblocks + required + 1 > segbuf->sb_rest_blocks) { in nilfs_segctor_add_file_block()
1041 (sci->sc_nblk_this_inc + sci->sc_curseg->sb_sum.nblocks); in nilfs_segctor_buffer_rest()
1439 live_blocks = segbuf->sb_sum.nblocks + in nilfs_segctor_update_segusage()
1498 sci->sc_nblk_this_inc += sci->sc_curseg->sb_sum.nblocks; in nilfs_segctor_collect()
1552 unsigned long nblocks = 0, ndatablk = 0; in nilfs_segctor_update_payload_blocknr() local
1575 nblocks = le32_to_cpu(finfo->fi_nblocks); in nilfs_segctor_update_payload_blocknr()
1603 if (--nblocks == 0) { in nilfs_segctor_update_payload_blocknr()
1813 + segbuf->sb_sum.nblocks; in nilfs_set_next_segment()
/linux-4.4.14/block/partitions/
Dsysv68.c44 __be32 nblocks; /* slice size (in blocks) */ member
83 if (be32_to_cpu(slice->nblocks)) { in sysv68_partition()
86 be32_to_cpu(slice->nblocks)); in sysv68_partition()
/linux-4.4.14/net/ipv4/
Dinet_hashtables.c641 unsigned int i, nblocks = 1; in inet_ehash_locks_alloc() local
645 nblocks = max(2U * L1_CACHE_BYTES / locksz, 1U); in inet_ehash_locks_alloc()
646 nblocks = roundup_pow_of_two(nblocks * num_possible_cpus()); in inet_ehash_locks_alloc()
649 nblocks = min(nblocks, hashinfo->ehash_mask + 1); in inet_ehash_locks_alloc()
651 hashinfo->ehash_locks = kmalloc_array(nblocks, locksz, in inet_ehash_locks_alloc()
654 hashinfo->ehash_locks = vmalloc(nblocks * locksz); in inet_ehash_locks_alloc()
659 for (i = 0; i < nblocks; i++) in inet_ehash_locks_alloc()
662 hashinfo->ehash_locks_mask = nblocks - 1; in inet_ehash_locks_alloc()
Dping.c272 for (i = 0; i < group_info->nblocks; i++) { in ping_init_sock()
/linux-4.4.14/fs/jbd2/
Dtransaction.c393 static handle_t *new_handle(int nblocks) in new_handle() argument
398 handle->h_buffer_credits = nblocks; in new_handle()
426 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int rsv_blocks, in jbd2__journal_start() argument
442 handle = new_handle(nblocks); in jbd2__journal_start()
469 line_no, nblocks); in jbd2__journal_start()
475 handle_t *jbd2_journal_start(journal_t *journal, int nblocks) in jbd2_journal_start() argument
477 return jbd2__journal_start(journal, nblocks, 0, GFP_NOFS, 0, 0); in jbd2_journal_start()
559 int jbd2_journal_extend(handle_t *handle, int nblocks) in jbd2_journal_extend() argument
577 "transaction not running\n", handle, nblocks); in jbd2_journal_extend()
582 wanted = atomic_add_return(nblocks, in jbd2_journal_extend()
[all …]
Dcheckpoint.c113 int nblocks, space_left; in __jbd2_log_wait_for_space() local
116 nblocks = jbd2_space_needed(journal); in __jbd2_log_wait_for_space()
117 while (jbd2_log_space_left(journal) < nblocks) { in __jbd2_log_wait_for_space()
138 nblocks = jbd2_space_needed(journal); in __jbd2_log_wait_for_space()
140 if (space_left < nblocks) { in __jbd2_log_wait_for_space()
166 __func__, nblocks, space_left); in __jbd2_log_wait_for_space()
/linux-4.4.14/fs/
Dmpage.c158 unsigned nblocks; in do_mpage_readpage() local
174 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
176 block_in_file < (*first_logical_block + nblocks)) { in do_mpage_readpage()
178 unsigned last = nblocks - map_offset; in do_mpage_readpage()
236 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
238 if (relative_block == nblocks) { in do_mpage_readpage()
293 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
294 if ((buffer_boundary(map_bh) && relative_block == nblocks) || in do_mpage_readpage()
Ddirect-io.c841 unsigned nblocks; in clean_blockdev_aliases() local
843 nblocks = map_bh->b_size >> dio->inode->i_blkbits; in clean_blockdev_aliases()
845 for (i = 0; i < nblocks; i++) { in clean_blockdev_aliases()
/linux-4.4.14/drivers/misc/
Dsram.c184 unsigned int nblocks, exports = 0; in sram_reserve_regions() local
196 nblocks = (np) ? of_get_available_child_count(np) + 1 : 1; in sram_reserve_regions()
197 rblocks = kzalloc((nblocks) * sizeof(*rblocks), GFP_KERNEL); in sram_reserve_regions()
263 rblocks[nblocks - 1].start = size; in sram_reserve_regions()
264 rblocks[nblocks - 1].size = 0; in sram_reserve_regions()
265 list_add_tail(&rblocks[nblocks - 1].list, &reserve_list); in sram_reserve_regions()
/linux-4.4.14/drivers/media/usb/pwc/
Dpwc-dec23.c606 int compression_index, nblocks; in DecompressBand23() local
617 nblocks = compressed_image_width / 4; in DecompressBand23()
623 while (nblocks) { in DecompressBand23()
627 nblocks--; in DecompressBand23()
631 nblocks = compressed_image_width / 8; in DecompressBand23()
637 while (nblocks) { in DecompressBand23()
646 nblocks -= 2; in DecompressBand23()
/linux-4.4.14/drivers/s390/char/
Dtape_char.c192 int nblocks; in tapechar_write() local
205 nblocks = count / block_size; in tapechar_write()
208 nblocks = 1; in tapechar_write()
216 DBF_EVENT(6, "TCHAR:nblocks: %x\n", nblocks); in tapechar_write()
223 for (i = 0; i < nblocks; i++) { in tapechar_write()
/linux-4.4.14/include/linux/
Djbd2.h1222 extern handle_t *jbd2_journal_start(journal_t *, int nblocks);
1226 extern int jbd2_journal_restart(handle_t *, int nblocks);
1227 extern int jbd2__journal_restart(handle_t *, int nblocks, gfp_t gfp_mask);
1231 extern int jbd2_journal_extend (handle_t *, int nblocks);
1433 int nblocks = journal->j_max_transaction_buffers; in jbd2_space_needed() local
1434 return nblocks + (nblocks >> JBD2_CONTROL_BLOCKS_SHIFT); in jbd2_space_needed()
Dcred.h35 int nblocks; member
Dnilfs2_fs.h760 NILFS_SUINFO_UPDATE_FNS(NBLOCKS, nblocks)
/linux-4.4.14/sound/synth/
Dutil_mem.c128 hdr->nblocks++; in __snd_util_memblk_new()
156 hdr->nblocks--; in __snd_util_mem_free()
/linux-4.4.14/net/sunrpc/auth_gss/
Dgss_krb5_crypto.c653 int nblocks, nbytes; in gss_krb5_aes_encrypt() local
714 nblocks = (nbytes + blocksize - 1) / blocksize; in gss_krb5_aes_encrypt()
716 if (nblocks > 2) in gss_krb5_aes_encrypt()
717 cbcbytes = (nblocks - 2) * blocksize; in gss_krb5_aes_encrypt()
770 int nblocks, blocksize, cbcbytes; in gss_krb5_aes_decrypt() local
793 nblocks = (subbuf.len + blocksize - 1) / blocksize; in gss_krb5_aes_decrypt()
796 if (nblocks > 2) in gss_krb5_aes_decrypt()
797 cbcbytes = (nblocks - 2) * blocksize; in gss_krb5_aes_decrypt()
/linux-4.4.14/include/sound/
Dutil_mem.h42 int nblocks; /* # of allocated blocks */ member
/linux-4.4.14/drivers/mtd/
Dftl.c788 u_long sector, u_long nblocks) in ftl_read() argument
796 part, sector, nblocks); in ftl_read()
803 for (i = 0; i < nblocks; i++) { in ftl_read()
902 u_long sector, u_long nblocks) in ftl_write() argument
910 part, sector, nblocks); in ftl_write()
916 while (part->FreeTotal < nblocks) { in ftl_write()
925 for (i = 0; i < nblocks; i++) { in ftl_write()
/linux-4.4.14/include/uapi/linux/
Dnvme_ioctl.h24 __u16 nblocks; member
/linux-4.4.14/fs/btrfs/
Dfile-item.c176 int nblocks; in __btrfs_lookup_bio_sums() local
185 nblocks = bio->bi_iter.bi_size >> inode->i_sb->s_blocksize_bits; in __btrfs_lookup_bio_sums()
187 if (nblocks * csum_size > BTRFS_BIO_INLINE_CSUM_SIZE) { in __btrfs_lookup_bio_sums()
188 btrfs_bio->csum_allocated = kmalloc_array(nblocks, in __btrfs_lookup_bio_sums()
227 (u32 *)csum, nblocks); in __btrfs_lookup_bio_sums()
276 count = min_t(int, nblocks, (item_last_offset - disk_bytenr) >> in __btrfs_lookup_bio_sums()
283 nblocks -= count; in __btrfs_lookup_bio_sums()
/linux-4.4.14/fs/minix/
Ditree_v1.c66 return nblocks(size, sb); in V1_minix_blocks()
Ditree_v2.c75 return nblocks(size, sb); in V2_minix_blocks()
Ditree_common.c350 static inline unsigned nblocks(loff_t size, struct super_block *sb) in nblocks() function
/linux-4.4.14/fs/gfs2/
Drgrp.c2337 int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *nblocks, in gfs2_alloc_blocks() argument
2359 (unsigned long long)ip->i_no_addr, error, *nblocks, in gfs2_alloc_blocks()
2365 gfs2_alloc_extent(&rbm, dinode, nblocks); in gfs2_alloc_blocks()
2369 gfs2_adjust_reservation(ip, &rbm, *nblocks); in gfs2_alloc_blocks()
2370 ndata = *nblocks; in gfs2_alloc_blocks()
2386 if (rbm.rgd->rd_free < *nblocks) { in gfs2_alloc_blocks()
2387 pr_warn("nblocks=%u\n", *nblocks); in gfs2_alloc_blocks()
2391 rbm.rgd->rd_free -= *nblocks; in gfs2_alloc_blocks()
2403 gfs2_statfs_change(sdp, 0, -(s64)*nblocks, dinode ? 1 : 0); in gfs2_alloc_blocks()
2405 gfs2_trans_add_unrevoke(sdp, block, *nblocks); in gfs2_alloc_blocks()
[all …]
/linux-4.4.14/fs/cramfs/
DREADME41 nblocks * <block_pointer>
42 (where nblocks = (st_size - 1) / blksize + 1)
43 nblocks * <block>
/linux-4.4.14/fs/ocfs2/
Djournal.c426 int ocfs2_extend_trans(handle_t *handle, int nblocks) in ocfs2_extend_trans() argument
431 BUG_ON(nblocks < 0); in ocfs2_extend_trans()
433 if (!nblocks) in ocfs2_extend_trans()
438 trace_ocfs2_extend_trans(old_nblocks, nblocks); in ocfs2_extend_trans()
443 status = jbd2_journal_extend(handle, nblocks); in ocfs2_extend_trans()
451 trace_ocfs2_extend_trans_restart(old_nblocks + nblocks); in ocfs2_extend_trans()
453 old_nblocks + nblocks); in ocfs2_extend_trans()
Djournal.h260 int ocfs2_extend_trans(handle_t *handle, int nblocks);
Ddir.c696 int nblocks, i, err; in ocfs2_find_entry_el() local
700 nblocks = i_size_read(dir) >> sb->s_blocksize_bits; in ocfs2_find_entry_el()
702 if (start >= nblocks) in ocfs2_find_entry_el()
721 if (b >= nblocks || (num && block == start)) { in ocfs2_find_entry_el()
758 if (++block >= nblocks) in ocfs2_find_entry_el()
766 block = nblocks; in ocfs2_find_entry_el()
767 nblocks = i_size_read(dir) >> sb->s_blocksize_bits; in ocfs2_find_entry_el()
768 if (block < nblocks) { in ocfs2_find_entry_el()
/linux-4.4.14/fs/xfs/
Dxfs_rtalloc.c764 xfs_extlen_t nblocks, /* new count of blocks */ in xfs_growfs_rt_alloc() argument
783 while (oblocks < nblocks) { in xfs_growfs_rt_alloc()
785 resblks = XFS_GROWFSRT_SPACE_RES(mp, nblocks - oblocks); in xfs_growfs_rt_alloc()
804 error = xfs_bmapi_write(tp, ip, oblocks, nblocks - oblocks, in xfs_growfs_rt_alloc()
Dxfs_mount.c168 __uint64_t nblocks) in xfs_sb_validate_fsb_count() argument
174 if (nblocks >> (PAGE_CACHE_SHIFT - sbp->sb_blocklog) > ULONG_MAX) in xfs_sb_validate_fsb_count()
/linux-4.4.14/sound/synth/emux/
Demux_proc.c49 snd_iprintf(buf, "Allocated Blocks: %d\n", emu->memhdr->nblocks); in snd_emux_proc_info_read()
/linux-4.4.14/drivers/cdrom/
Dcdrom.c2064 int blocksize, int nblocks) in cdrom_read_cd() argument
2074 cgc->cmd[6] = (nblocks >> 16) & 0xff; in cdrom_read_cd()
2075 cgc->cmd[7] = (nblocks >> 8) & 0xff; in cdrom_read_cd()
2076 cgc->cmd[8] = nblocks & 0xff; in cdrom_read_cd()
2077 cgc->buflen = blocksize * nblocks; in cdrom_read_cd()
2084 int lba, int nblocks, int format, int blksize) in cdrom_read_block() argument
2098 cgc->cmd[6] = (nblocks >> 16) & 0xff; in cdrom_read_block()
2099 cgc->cmd[7] = (nblocks >> 8) & 0xff; in cdrom_read_block()
2100 cgc->cmd[8] = nblocks & 0xff; in cdrom_read_block()
2101 cgc->buflen = blksize * nblocks; in cdrom_read_block()
/linux-4.4.14/fs/isofs/
Dinode.c992 struct buffer_head **bh, unsigned long nblocks) in isofs_get_blocks() argument
1016 while (nblocks) { in isofs_get_blocks()
1070 nblocks--; in isofs_get_blocks()
/linux-4.4.14/drivers/net/ethernet/neterion/vxge/
Dvxge-config.c1319 u32 nblocks = 0; in vxge_hw_device_initialize() local
1357 nblocks++; in vxge_hw_device_initialize()
1365 nblocks += device_config->vp_config[i].ring.ring_blocks; in vxge_hw_device_initialize()
1369 nblocks += device_config->vp_config[i].fifo.fifo_blocks; in vxge_hw_device_initialize()
1370 nblocks++; in vxge_hw_device_initialize()
1375 device_config->dma_blockpool_initial + nblocks, in vxge_hw_device_initialize()
1376 device_config->dma_blockpool_max + nblocks) != VXGE_HW_OK) { in vxge_hw_device_initialize()
/linux-4.4.14/drivers/nvme/host/
Dpci.c1828 length = (io.nblocks + 1) << ns->lba_shift; in nvme_submit_io()
1829 meta_len = (io.nblocks + 1) * ns->ms; in nvme_submit_io()
1861 c.rw.length = cpu_to_le16(io.nblocks); in nvme_submit_io()
/linux-4.4.14/fs/nfs/
Dnfs4xdr.c4988 uint32_t limit_type, nblocks, blocksize; in decode_space_limit() local
5000 nblocks = be32_to_cpup(p++); in decode_space_limit()
5002 maxsize = (uint64_t)nblocks * (uint64_t)blocksize; in decode_space_limit()