Home
last modified time | relevance | path

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

123

/linux-3.4.99/init/
Ddo_mounts_rd.c60 int nblocks = -1; in identify_ramdisk_image() local
89 nblocks = 0; in identify_ramdisk_image()
99 nblocks = (ntohl(romfsb->size)+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS; in identify_ramdisk_image()
107 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image()
116 nblocks = (le64_to_cpu(squashfsb->bytes_used) + BLOCK_SIZE - 1) in identify_ramdisk_image()
131 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image()
147 nblocks = minixsb->s_nzones << minixsb->s_log_zone_size; in identify_ramdisk_image()
157 nblocks = n; in identify_ramdisk_image()
168 return nblocks; in identify_ramdisk_image()
176 int nblocks, i, disk; in rd_load_image() local
[all …]
/linux-3.4.99/fs/jfs/
Djfs_dmap.c76 int nblocks);
83 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results);
85 int nblocks);
87 int nblocks,
90 int nblocks);
91 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
94 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb,
96 static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno,
98 static int dbExtend(struct inode *ip, s64 blkno, s64 nblocks, s64 addnblocks);
103 int nblocks);
[all …]
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()
/linux-3.4.99/kernel/
Dgroups.c17 int nblocks; in groups_alloc() local
20 nblocks = (gidsetsize + NGROUPS_PER_BLOCK - 1) / NGROUPS_PER_BLOCK; in groups_alloc()
22 nblocks = nblocks ? : 1; in groups_alloc()
23 group_info = kmalloc(sizeof(*group_info) + nblocks*sizeof(gid_t *), GFP_USER); in groups_alloc()
27 group_info->nblocks = nblocks; in groups_alloc()
33 for (i = 0; i < nblocks; i++) { in groups_alloc()
57 for (i = 0; i < group_info->nblocks; i++) in groups_free()
72 for (i = 0; i < group_info->nblocks; i++) { in groups_to_user()
92 for (i = 0; i < group_info->nblocks; i++) { in groups_from_user()
/linux-3.4.99/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-3.4.99/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.c397 int nblocks = 0; in reiserfs_cache_default_acl() local
411 nblocks = reiserfs_xattr_jcreate_nblocks(inode); in reiserfs_cache_default_acl()
412 nblocks += JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_cache_default_acl()
417 nblocks += reiserfs_xattr_nblocks(inode, size) * 4; in reiserfs_cache_default_acl()
421 return nblocks; in reiserfs_cache_default_acl()
/linux-3.4.99/fs/ext4/
Dext4_jbd2.h235 handle_t *ext4_journal_start_sb(struct super_block *sb, int nblocks);
276 static inline handle_t *ext4_journal_start(struct inode *inode, int nblocks) in ext4_journal_start() argument
278 return ext4_journal_start_sb(inode->i_sb, nblocks); in ext4_journal_start()
289 static inline int ext4_journal_extend(handle_t *handle, int nblocks) in ext4_journal_extend() argument
292 return jbd2_journal_extend(handle, nblocks); in ext4_journal_extend()
296 static inline int ext4_journal_restart(handle_t *handle, int nblocks) in ext4_journal_restart() argument
299 return jbd2_journal_restart(handle, nblocks); in ext4_journal_restart()
/linux-3.4.99/fs/jbd2/
Dtransaction.c153 int nblocks = handle->h_buffer_credits; in start_this_handle() local
156 if (nblocks > journal->j_max_transaction_buffers) { in start_this_handle()
158 current->comm, nblocks, in start_this_handle()
243 needed = atomic_add_return(nblocks, in start_this_handle()
255 atomic_sub(nblocks, &transaction->t_outstanding_credits); in start_this_handle()
295 atomic_sub(nblocks, &transaction->t_outstanding_credits); in start_this_handle()
312 handle, nblocks, in start_this_handle()
325 static handle_t *new_handle(int nblocks) in new_handle() argument
331 handle->h_buffer_credits = nblocks; in new_handle()
355 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, gfp_t gfp_mask) in jbd2__journal_start() argument
[all …]
Dcheckpoint.c120 int nblocks, space_left; in __jbd2_log_wait_for_space() local
123 nblocks = jbd_space_needed(journal); in __jbd2_log_wait_for_space()
124 while (__jbd2_log_space_left(journal) < nblocks) { in __jbd2_log_wait_for_space()
143 nblocks = jbd_space_needed(journal); in __jbd2_log_wait_for_space()
145 if (space_left < nblocks) { in __jbd2_log_wait_for_space()
163 __func__, nblocks, space_left); in __jbd2_log_wait_for_space()
/linux-3.4.99/fs/freevxfs/
Dvxfs_lookup.c116 u_long npages, page, nblocks, pblocks, block; in vxfs_find_entry() local
122 nblocks = dir_blocks(ip); in vxfs_find_entry()
134 for (block = 0; block <= nblocks && block <= pblocks; block++) { in vxfs_find_entry()
243 u_long page, npages, block, pblocks, nblocks, offset; in vxfs_readdir() local
265 nblocks = dir_blocks(ip); in vxfs_readdir()
281 for (; block <= nblocks && block <= pblocks; block++) { in vxfs_readdir()
/linux-3.4.99/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-3.4.99/fs/nilfs2/
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.c648 sector_t start = 0, nblocks = 0; in nilfs_discard_segments() local
658 if (!nblocks) { in nilfs_discard_segments()
660 nblocks = seg_end - seg_start + 1; in nilfs_discard_segments()
661 } else if (start + nblocks == seg_start) { in nilfs_discard_segments()
662 nblocks += seg_end - seg_start + 1; in nilfs_discard_segments()
666 nblocks * sects_per_block, in nilfs_discard_segments()
670 nblocks = 0; in nilfs_discard_segments()
673 if (nblocks) in nilfs_discard_segments()
676 nblocks * sects_per_block, in nilfs_discard_segments()
681 int nilfs_count_free_blocks(struct the_nilfs *nilfs, sector_t *nblocks) in nilfs_count_free_blocks() argument
[all …]
/linux-3.4.99/fs/jbd/
Dtransaction.c89 int nblocks = handle->h_buffer_credits; in start_this_handle() local
93 if (nblocks > journal->j_max_transaction_buffers) { in start_this_handle()
95 current->comm, nblocks, in start_this_handle()
167 needed = transaction->t_outstanding_credits + nblocks; in start_this_handle()
224 transaction->t_outstanding_credits += nblocks; in start_this_handle()
228 handle, nblocks, transaction->t_outstanding_credits, in start_this_handle()
243 static handle_t *new_handle(int nblocks) in new_handle() argument
249 handle->h_buffer_credits = nblocks; in new_handle()
272 handle_t *journal_start(journal_t *journal, int nblocks) in journal_start() argument
286 handle = new_handle(nblocks); in journal_start()
[all …]
/linux-3.4.99/fs/
Dmpage.c172 unsigned nblocks; in do_mpage_readpage() local
188 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
190 block_in_file < (*first_logical_block + nblocks)) { in do_mpage_readpage()
192 unsigned last = nblocks - map_offset; in do_mpage_readpage()
250 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
252 if (relative_block == nblocks) { in do_mpage_readpage()
303 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
304 if ((buffer_boundary(map_bh) && relative_block == nblocks) || in do_mpage_readpage()
/linux-3.4.99/include/linux/
Djbd2.h1055 extern handle_t *jbd2_journal_start(journal_t *, int nblocks);
1056 extern handle_t *jbd2__journal_start(journal_t *, int nblocks, gfp_t gfp_mask);
1057 extern int jbd2_journal_restart(handle_t *, int nblocks);
1058 extern int jbd2__journal_restart(handle_t *, int nblocks, gfp_t gfp_mask);
1059 extern int jbd2_journal_extend (handle_t *, int nblocks);
1251 int nblocks = journal->j_max_transaction_buffers; in jbd_space_needed() local
1253 nblocks += atomic_read(&journal->j_committing_transaction-> in jbd_space_needed()
1255 return nblocks; in jbd_space_needed()
Djbd.h828 extern handle_t *journal_start(journal_t *, int nblocks);
829 extern int journal_restart (handle_t *, int nblocks);
830 extern int journal_extend (handle_t *, int nblocks);
995 int nblocks = journal->j_max_transaction_buffers; in jbd_space_needed() local
997 nblocks += journal->j_committing_transaction-> in jbd_space_needed()
999 return nblocks; in jbd_space_needed()
/linux-3.4.99/drivers/media/video/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-3.4.99/drivers/s390/char/
Dtape_char.c198 int nblocks; in tapechar_write() local
211 nblocks = count / block_size; in tapechar_write()
214 nblocks = 1; in tapechar_write()
227 DBF_EVENT(6, "TCHAR:nblocks: %x\n", nblocks); in tapechar_write()
234 for (i = 0; i < nblocks; i++) { in tapechar_write()

123