Home
last modified time | relevance | path

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

123

/linux-4.19.296/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()
54 (unsigned long long)nblocks, r); in jfs_issue_discard()
59 (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()
395 xlen = min(xlen, (int) nblocks) & ~(sbi->nbperpage - 1); in jfs_extendfs()
400 if ((rc = xtAppend(tid, ipbmap, 0, xoff, nblocks, &xlen, &xaddr, 0))) { in jfs_extendfs()
Dxattr.c220 int nblocks; in ea_write() local
238 nblocks = (size + (sb->s_blocksize - 1)) >> sb->s_blocksize_bits; in ea_write()
241 rc = dquot_alloc_block(ip, nblocks); in ea_write()
245 rc = dbAlloc(ip, INOHINT(ip), nblocks, &blkno); in ea_write()
248 dquot_free_block(ip, nblocks); in ea_write()
259 for (i = 0; i < nblocks; i += sbi->nbperpage) { in ea_write()
302 DXDlength(ea, nblocks); in ea_write()
313 dquot_free_block(ip, nblocks); in ea_write()
315 dbFree(ip, blkno, nblocks); in ea_write()
369 int nblocks; in ea_read() local
[all …]
Djfs_extent.c509 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument
530 if (*nblocks >= max && *nblocks > nbperpage) in extBalloc()
533 nb = nblks = *nblocks; in extBalloc()
551 *nblocks = nb; in extBalloc()
Djfs_discard.h23 extern void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks);
/linux-4.19.296/lib/crypto/
Dblake2s.c37 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in blake2s_update() local
39 blake2s_compress_generic(state, in, nblocks - 1, in blake2s_update()
41 in += BLAKE2S_BLOCK_SIZE * (nblocks - 1); in blake2s_update()
42 inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1); in blake2s_update()
Dblake2s-generic.c41 size_t nblocks, const u32 inc) in blake2s_compress_generic() argument
48 (nblocks > 1 && inc != BLAKE2S_BLOCK_SIZE)); in blake2s_compress_generic()
50 while (nblocks > 0) { in blake2s_compress_generic()
103 --nblocks; in blake2s_compress_generic()
/linux-4.19.296/fs/reiserfs/
Dxattr.h74 size_t nblocks = JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_xattr_jcreate_nblocks() local
77 nblocks += JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_xattr_jcreate_nblocks()
79 nblocks += JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_xattr_jcreate_nblocks()
82 return nblocks; in reiserfs_xattr_jcreate_nblocks()
Dxattr_acl.c364 int nblocks = 0; in reiserfs_cache_default_acl() local
378 nblocks = reiserfs_xattr_jcreate_nblocks(inode); in reiserfs_cache_default_acl()
379 nblocks += JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_cache_default_acl()
384 nblocks += reiserfs_xattr_nblocks(inode, size) * 4; in reiserfs_cache_default_acl()
388 return nblocks; in reiserfs_cache_default_acl()
/linux-4.19.296/fs/ext4/
Dext4_jbd2.h298 #define ext4_journal_start_sb(sb, type, nblocks) \ argument
299 __ext4_journal_start_sb((sb), __LINE__, (type), (nblocks), 0)
301 #define ext4_journal_start(inode, type, nblocks) \ argument
302 __ext4_journal_start((inode), __LINE__, (type), (nblocks), 0)
335 static inline int ext4_journal_extend(handle_t *handle, int nblocks) in ext4_journal_extend() argument
338 return jbd2_journal_extend(handle, nblocks); in ext4_journal_extend()
342 static inline int ext4_journal_restart(handle_t *handle, int nblocks) in ext4_journal_restart() argument
345 return jbd2_journal_restart(handle, nblocks); in ext4_journal_restart()
/linux-4.19.296/fs/nilfs2/
Dthe_nilfs.c399 u64 nsegments, nblocks; in nilfs_store_disk_layout() local
456 nblocks = (u64)i_size_read(nilfs->ns_sb->s_bdev->bd_inode) >> in nilfs_store_disk_layout()
458 if (nblocks) { in nilfs_store_disk_layout()
466 if (nblocks < min_block_count) { in nilfs_store_disk_layout()
470 (unsigned long long)nblocks); in nilfs_store_disk_layout()
734 sector_t start = 0, nblocks = 0; in nilfs_discard_segments() local
744 if (!nblocks) { in nilfs_discard_segments()
746 nblocks = seg_end - seg_start + 1; in nilfs_discard_segments()
747 } else if (start + nblocks == seg_start) { in nilfs_discard_segments()
748 nblocks += seg_end - seg_start + 1; in nilfs_discard_segments()
[all …]
Dsegbuf.h34 unsigned long nblocks; member
131 return segbuf->sb_sum.nblocks == segbuf->sb_sum.nsumblk; in nilfs_segbuf_empty()
139 segbuf->sb_sum.nblocks++; in nilfs_segbuf_add_segsum_buffer()
148 segbuf->sb_sum.nblocks++; in nilfs_segbuf_add_payload_buffer()
Dsufile.c528 unsigned long nblocks, time64_t modtime) in nilfs_sufile_set_segment_usage() argument
545 su->su_nblocks = cpu_to_le32(nblocks); in nilfs_sufile_set_segment_usage()
1042 sector_t start = 0, nblocks = 0; in nilfs_sufile_trim_fs() local
1098 if (!nblocks) { in nilfs_sufile_trim_fs()
1101 nblocks = seg_end - seg_start + 1; in nilfs_sufile_trim_fs()
1105 if (start + nblocks == seg_start) { in nilfs_sufile_trim_fs()
1107 nblocks += seg_end - seg_start + 1; in nilfs_sufile_trim_fs()
1113 nblocks -= start_block - start; in nilfs_sufile_trim_fs()
1117 if (nblocks >= minlen) { in nilfs_sufile_trim_fs()
1122 nblocks * sects_per_block, in nilfs_sufile_trim_fs()
[all …]
Dsegbuf.c83 segbuf->sb_pseg_start = prev->sb_pseg_start + prev->sb_sum.nblocks; in nilfs_segbuf_map_cont()
120 segbuf->sb_pseg_start + segbuf->sb_sum.nblocks); in nilfs_segbuf_extend_payload()
134 segbuf->sb_sum.nblocks = segbuf->sb_sum.nsumblk = 0; in nilfs_segbuf_reset()
165 raw_sum->ss_nblocks = cpu_to_le32(segbuf->sb_sum.nblocks); in nilfs_segbuf_fill_in_segsum()
411 wi->rest_blocks = segbuf->sb_sum.nblocks; in nilfs_segbuf_prepare_write()
517 segbuf->sb_sum.nblocks, in nilfs_segbuf_wait()
Drecovery.c327 unsigned long nblocks, ndatablk, nnodeblk; in nilfs_scan_dsync_log() local
336 nblocks = le32_to_cpu(finfo->fi_nblocks); in nilfs_scan_dsync_log()
338 nnodeblk = nblocks - ndatablk; in nilfs_scan_dsync_log()
809 unsigned long nblocks; in nilfs_search_super_root() local
845 nblocks = le32_to_cpu(sum->ss_nblocks); in nilfs_search_super_root()
846 pseg_end = pseg_start + nblocks - 1; in nilfs_search_super_root()
895 nilfs->ns_pseg_offset = pseg_start + nblocks - seg_start; in nilfs_search_super_root()
912 pseg_start += nblocks; in nilfs_search_super_root()
/linux-4.19.296/block/partitions/
Dsysv68.c45 __be32 nblocks; /* slice size (in blocks) */ member
84 if (be32_to_cpu(slice->nblocks)) { in sysv68_partition()
87 be32_to_cpu(slice->nblocks)); in sysv68_partition()
/linux-4.19.296/include/crypto/internal/
Dblake2s.h9 size_t nblocks, const u32 inc);
12 size_t nblocks, const u32 inc);
/linux-4.19.296/fs/jbd2/
Dtransaction.c398 static handle_t *new_handle(int nblocks) in new_handle() argument
403 handle->h_buffer_credits = nblocks; in new_handle()
409 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int rsv_blocks, in jbd2__journal_start() argument
425 handle = new_handle(nblocks); in jbd2__journal_start()
452 line_no, nblocks); in jbd2__journal_start()
478 handle_t *jbd2_journal_start(journal_t *journal, int nblocks) in jbd2_journal_start() argument
480 return jbd2__journal_start(journal, nblocks, 0, GFP_NOFS, 0, 0); in jbd2_journal_start()
565 int jbd2_journal_extend(handle_t *handle, int nblocks) in jbd2_journal_extend() argument
583 "transaction not running\n", handle, nblocks); in jbd2_journal_extend()
588 wanted = atomic_add_return(nblocks, in jbd2_journal_extend()
[all …]
Dcheckpoint.c110 int nblocks, space_left; in __jbd2_log_wait_for_space() local
113 nblocks = jbd2_space_needed(journal); in __jbd2_log_wait_for_space()
114 while (jbd2_log_space_left(journal) < nblocks) { in __jbd2_log_wait_for_space()
135 nblocks = jbd2_space_needed(journal); in __jbd2_log_wait_for_space()
137 if (space_left < nblocks) { in __jbd2_log_wait_for_space()
163 __func__, nblocks, space_left); in __jbd2_log_wait_for_space()
/linux-4.19.296/crypto/
Dtgr192.c42 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.19.296/fs/
Dmpage.c174 unsigned nblocks; in do_mpage_readpage() local
199 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
202 block_in_file < (args->first_logical_block + nblocks)) { in do_mpage_readpage()
204 unsigned last = nblocks - map_offset; in do_mpage_readpage()
262 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
264 if (relative_block == nblocks) { in do_mpage_readpage()
321 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
322 if ((buffer_boundary(map_bh) && relative_block == nblocks) || in do_mpage_readpage()
/linux-4.19.296/drivers/misc/
Dsram.c175 unsigned int nblocks, exports = 0; in sram_reserve_regions() local
187 nblocks = (np) ? of_get_available_child_count(np) + 1 : 1; in sram_reserve_regions()
188 rblocks = kcalloc(nblocks, sizeof(*rblocks), GFP_KERNEL); in sram_reserve_regions()
260 rblocks[nblocks - 1].start = size; in sram_reserve_regions()
261 rblocks[nblocks - 1].size = 0; in sram_reserve_regions()
262 list_add_tail(&rblocks[nblocks - 1].list, &reserve_list); in sram_reserve_regions()
/linux-4.19.296/drivers/s390/char/
Dtape_char.c193 int nblocks; in tapechar_write() local
206 nblocks = count / block_size; in tapechar_write()
209 nblocks = 1; in tapechar_write()
217 DBF_EVENT(6, "TCHAR:nblocks: %x\n", nblocks); in tapechar_write()
224 for (i = 0; i < nblocks; i++) { in tapechar_write()

123