Home
last modified time | relevance | path

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

12

/fs/jfs/
Djfs_dmap.c75 int nblocks);
82 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results);
84 int nblocks);
86 int nblocks,
89 int nblocks);
90 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
93 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb,
95 static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno,
97 static int dbExtend(struct inode *ip, s64 blkno, s64 nblocks, s64 addnblocks);
102 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
325 nblocks = min(t64 - mapSize, XSize); in jfs_extendfs()
334 if ((rc = dbExtendFS(ipbmap, XAddress, nblocks))) in jfs_extendfs()
341 XSize -= nblocks; in jfs_extendfs()
385 xlen = min(xlen, (int) nblocks) & ~(sbi->nbperpage - 1); in jfs_extendfs()
390 if ((rc = xtAppend(tid, ipbmap, 0, xoff, nblocks, &xlen, &xaddr, 0))) { in jfs_extendfs()
Dxattr.c242 int nblocks; in ea_write() local
260 nblocks = (size + (sb->s_blocksize - 1)) >> sb->s_blocksize_bits; in ea_write()
263 if (DQUOT_ALLOC_BLOCK(ip, nblocks)) { in ea_write()
267 rc = dbAlloc(ip, INOHINT(ip), nblocks, &blkno); in ea_write()
270 DQUOT_FREE_BLOCK(ip, nblocks); in ea_write()
281 for (i = 0; i < nblocks; i += sbi->nbperpage) { in ea_write()
324 DXDlength(ea, nblocks); in ea_write()
335 DQUOT_FREE_BLOCK(ip, nblocks); in ea_write()
337 dbFree(ip, blkno, nblocks); in ea_write()
391 int nblocks; in ea_read() local
[all …]
Djfs_extent.c521 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument
537 if (*nblocks >= max && *nblocks > nbperpage) in extBalloc()
540 nb = nblks = *nblocks; in extBalloc()
558 *nblocks = nb; in extBalloc()
/fs/ext4/
Dext4_jbd2.h159 handle_t *ext4_journal_start_sb(struct super_block *sb, int nblocks);
205 static inline handle_t *ext4_journal_start(struct inode *inode, int nblocks) in ext4_journal_start() argument
207 return ext4_journal_start_sb(inode->i_sb, nblocks); in ext4_journal_start()
218 static inline int ext4_journal_extend(handle_t *handle, int nblocks) in ext4_journal_extend() argument
221 return jbd2_journal_extend(handle, nblocks); in ext4_journal_extend()
225 static inline int ext4_journal_restart(handle_t *handle, int nblocks) in ext4_journal_restart() argument
228 return jbd2_journal_restart(handle, nblocks); in ext4_journal_restart()
Dballoc.c551 int ext4_has_free_blocks(struct ext4_sb_info *sbi, s64 nblocks) in ext4_has_free_blocks() argument
561 if (free_blocks - (nblocks + root_blocks + dirty_blocks) < in ext4_has_free_blocks()
574 if (free_blocks >= ((root_blocks + nblocks) + dirty_blocks)) in ext4_has_free_blocks()
581 if (free_blocks >= (nblocks + dirty_blocks)) in ext4_has_free_blocks()
589 s64 nblocks) in ext4_claim_free_blocks() argument
591 if (ext4_has_free_blocks(sbi, nblocks)) { in ext4_claim_free_blocks()
592 percpu_counter_add(&sbi->s_dirtyblocks_counter, nblocks); in ext4_claim_free_blocks()
Dnamei.c869 ext4_lblk_t nblocks; in ext4_find_entry() local
890 nblocks = dir->i_size >> EXT4_BLOCK_SIZE_BITS(sb); in ext4_find_entry()
892 if (start >= nblocks) in ext4_find_entry()
910 if (b >= nblocks || (num && block == start)) { in ext4_find_entry()
944 if (++block >= nblocks) in ext4_find_entry()
952 block = nblocks; in ext4_find_entry()
953 nblocks = dir->i_size >> EXT4_BLOCK_SIZE_BITS(sb); in ext4_find_entry()
954 if (block < nblocks) { in ext4_find_entry()
/fs/freevxfs/
Dvxfs_lookup.c115 u_long npages, page, nblocks, pblocks, block; in vxfs_find_entry() local
121 nblocks = dir_blocks(ip); in vxfs_find_entry()
133 for (block = 0; block <= nblocks && block <= pblocks; block++) { in vxfs_find_entry()
246 u_long page, npages, block, pblocks, nblocks, offset; in vxfs_readdir() local
272 nblocks = dir_blocks(ip); in vxfs_readdir()
288 for (; block <= nblocks && block <= pblocks; block++) { in vxfs_readdir()
/fs/jbd/
Dtransaction.c87 int nblocks = handle->h_buffer_credits; in start_this_handle() local
91 if (nblocks > journal->j_max_transaction_buffers) { in start_this_handle()
93 current->comm, nblocks, in start_this_handle()
166 needed = transaction->t_outstanding_credits + nblocks; in start_this_handle()
223 transaction->t_outstanding_credits += nblocks; in start_this_handle()
227 handle, nblocks, transaction->t_outstanding_credits, in start_this_handle()
240 static handle_t *new_handle(int nblocks) in new_handle() argument
246 handle->h_buffer_credits = nblocks; in new_handle()
268 handle_t *journal_start(journal_t *journal, int nblocks) in journal_start() argument
282 handle = new_handle(nblocks); in journal_start()
[all …]
Dcheckpoint.c118 int nblocks, space_left; in __log_wait_for_space() local
121 nblocks = jbd_space_needed(journal); in __log_wait_for_space()
122 while (__log_space_left(journal) < nblocks) { in __log_wait_for_space()
141 nblocks = jbd_space_needed(journal); in __log_wait_for_space()
143 if (space_left < nblocks) { in __log_wait_for_space()
161 __func__, nblocks, space_left); in __log_wait_for_space()
/fs/jbd2/
Dtransaction.c90 int nblocks = handle->h_buffer_credits; in start_this_handle() local
95 if (nblocks > journal->j_max_transaction_buffers) { in start_this_handle()
97 current->comm, nblocks, in start_this_handle()
170 needed = transaction->t_outstanding_credits + nblocks; in start_this_handle()
233 transaction->t_outstanding_credits += nblocks; in start_this_handle()
237 handle, nblocks, transaction->t_outstanding_credits, in start_this_handle()
250 static handle_t *new_handle(int nblocks) in new_handle() argument
256 handle->h_buffer_credits = nblocks; in new_handle()
279 handle_t *jbd2_journal_start(journal_t *journal, int nblocks) in jbd2_journal_start() argument
293 handle = new_handle(nblocks); in jbd2_journal_start()
[all …]
Dcheckpoint.c119 int nblocks, space_left; in __jbd2_log_wait_for_space() local
122 nblocks = jbd_space_needed(journal); in __jbd2_log_wait_for_space()
123 while (__jbd2_log_space_left(journal) < nblocks) { in __jbd2_log_wait_for_space()
142 nblocks = jbd_space_needed(journal); in __jbd2_log_wait_for_space()
144 if (space_left < nblocks) { in __jbd2_log_wait_for_space()
162 __func__, nblocks, space_left); in __jbd2_log_wait_for_space()
/fs/partitions/
Dsysv68.c44 __be32 nblocks; /* slice size (in blocks) */ member
81 if (be32_to_cpu(slice->nblocks)) { in sysv68_partition()
84 be32_to_cpu(slice->nblocks)); in sysv68_partition()
/fs/
Dmpage.c186 unsigned nblocks; in do_mpage_readpage() local
202 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
204 block_in_file < (*first_logical_block + nblocks)) { in do_mpage_readpage()
206 unsigned last = nblocks - map_offset; in do_mpage_readpage()
264 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
266 if (relative_block == nblocks) { in do_mpage_readpage()
311 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
312 if ((buffer_boundary(map_bh) && relative_block == nblocks) || in do_mpage_readpage()
Ddirect-io.c715 unsigned nblocks; in clean_blockdev_aliases() local
717 nblocks = dio->map_bh.b_size >> dio->inode->i_blkbits; in clean_blockdev_aliases()
719 for (i = 0; i < nblocks; i++) { in clean_blockdev_aliases()
/fs/reiserfs/
Djournal.c92 struct super_block *, unsigned long nblocks,
100 struct super_block *p_s_sb, unsigned long nblocks);
117 unsigned long nblocks, int join);
3000 struct super_block *p_s_sb, unsigned long nblocks, in do_journal_begin_r() argument
3011 BUG_ON(nblocks > journal->j_trans_max); in do_journal_begin_r()
3042 && (journal->j_len_alloc + nblocks + 2) >= journal->j_max_batch) in do_journal_begin_r()
3053 if (!join && (journal->j_len_alloc + nblocks + 2) >= in do_journal_begin_r()
3055 ((journal->j_len + nblocks + 2) * 100) < in do_journal_begin_r()
3095 journal->j_len_alloc += nblocks; in do_journal_begin_r()
3097 th->t_blocks_allocated = nblocks; in do_journal_begin_r()
[all …]
/fs/minix/
Ditree_v1.c65 return nblocks(size, sb); in V1_minix_blocks()
Ditree_v2.c71 return nblocks(size, sb); in V2_minix_blocks()
/fs/ocfs2/
Ddir.c395 int nblocks, i, err; in ocfs2_find_entry_el() local
401 nblocks = i_size_read(dir) >> sb->s_blocksize_bits; in ocfs2_find_entry_el()
403 if (start >= nblocks) in ocfs2_find_entry_el()
422 if (b >= nblocks || (num && block == start)) { in ocfs2_find_entry_el()
459 if (++block >= nblocks) in ocfs2_find_entry_el()
467 block = nblocks; in ocfs2_find_entry_el()
468 nblocks = i_size_read(dir) >> sb->s_blocksize_bits; in ocfs2_find_entry_el()
469 if (block < nblocks) { in ocfs2_find_entry_el()
Djournal.c334 int ocfs2_extend_trans(handle_t *handle, int nblocks) in ocfs2_extend_trans() argument
339 BUG_ON(!nblocks); in ocfs2_extend_trans()
343 mlog(0, "Trying to extend transaction by %d blocks\n", nblocks); in ocfs2_extend_trans()
348 status = jbd2_journal_extend(handle, nblocks); in ocfs2_extend_trans()
359 status = jbd2_journal_restart(handle, nblocks); in ocfs2_extend_trans()
Djournal.h233 int ocfs2_extend_trans(handle_t *handle, int nblocks);
/fs/cramfs/
DREADME41 nblocks * <block_pointer>
42 (where nblocks = (st_size - 1) / blksize + 1)
43 nblocks * <block>
/fs/ext3/
Dnamei.c866 int nblocks, i, err; in ext3_find_entry() local
885 nblocks = dir->i_size >> EXT3_BLOCK_SIZE_BITS(sb); in ext3_find_entry()
887 if (start >= nblocks) in ext3_find_entry()
905 if (b >= nblocks || (num && block == start)) { in ext3_find_entry()
938 if (++block >= nblocks) in ext3_find_entry()
946 block = nblocks; in ext3_find_entry()
947 nblocks = dir->i_size >> EXT3_BLOCK_SIZE_BITS(sb); in ext3_find_entry()
948 if (block < nblocks) { in ext3_find_entry()
/fs/xfs/
Dxfs_rtalloc.c83 xfs_extlen_t nblocks, /* new count of blocks */ in xfs_growfs_rt_alloc() argument
102 while (oblocks < nblocks) { in xfs_growfs_rt_alloc()
107 resblks = XFS_GROWFSRT_SPACE_RES(mp, nblocks - oblocks); in xfs_growfs_rt_alloc()
129 error = xfs_bmapi(tp, ip, oblocks, nblocks - oblocks, in xfs_growfs_rt_alloc()

12