Home
last modified time | relevance | path

Searched refs:needed (Results 1 – 24 of 24) sorted by relevance

/fs/ext4/
Dtruncate.h30 ext4_lblk_t needed; in ext4_blocks_for_truncate() local
32 needed = inode->i_blocks >> (inode->i_sb->s_blocksize_bits - 9); in ext4_blocks_for_truncate()
40 if (needed < 2) in ext4_blocks_for_truncate()
41 needed = 2; in ext4_blocks_for_truncate()
45 if (needed > EXT4_MAX_TRANS_DATA) in ext4_blocks_for_truncate()
46 needed = EXT4_MAX_TRANS_DATA; in ext4_blocks_for_truncate()
48 return EXT4_DATA_TRANS_BLOCKS(inode->i_sb) + needed; in ext4_blocks_for_truncate()
Dmigrate.c25 int retval = 0, needed; in finish_range() local
50 needed = ext4_ext_calc_credits_for_single_extent(inode, in finish_range()
56 if (needed && ext4_handle_has_enough_credits(handle, in finish_range()
59 retval = ext4_journal_restart(handle, needed); in finish_range()
63 } else if (needed) { in finish_range()
64 retval = ext4_journal_extend(handle, needed); in finish_range()
70 retval = ext4_journal_restart(handle, needed); in finish_range()
201 int retval = 0, needed; in extend_credit_for_blkdel() local
211 needed = 3 + EXT4_MAXQUOTAS_TRANS_BLOCKS(inode->i_sb); in extend_credit_for_blkdel()
213 if (ext4_journal_extend(handle, needed) != 0) in extend_credit_for_blkdel()
[all …]
Dext4_jbd2.h291 static inline int ext4_handle_has_enough_credits(handle_t *handle, int needed) in ext4_handle_has_enough_credits() argument
293 if (ext4_handle_valid(handle) && handle->h_buffer_credits < needed) in ext4_handle_has_enough_credits()
Dmballoc.c1494 int needed, struct ext4_free_extent *ex) in mb_find_extent() argument
1526 while (needed > ex->fe_len && in mb_find_extent()
1547 block, order, needed, ex->fe_group, ex->fe_start, in mb_find_extent()
3879 ext4_group_t group, int needed) in ext4_mb_discard_group_preallocations() argument
3911 if (needed == 0) in ext4_mb_discard_group_preallocations()
3912 needed = EXT4_CLUSTERS_PER_GROUP(sb) + 1; in ext4_mb_discard_group_preallocations()
3943 if (free < needed && busy) { in ext4_mb_discard_group_preallocations()
4442 static int ext4_mb_discard_preallocations(struct super_block *sb, int needed) in ext4_mb_discard_preallocations() argument
4448 trace_ext4_mb_discard_preallocations(sb, needed); in ext4_mb_discard_preallocations()
4449 for (i = 0; i < ngroups && needed > 0; i++) { in ext4_mb_discard_preallocations()
[all …]
Dextents.c105 int needed) in ext4_ext_truncate_extend_restart() argument
111 if (handle->h_buffer_credits >= needed) in ext4_ext_truncate_extend_restart()
117 needed += 3; in ext4_ext_truncate_extend_restart()
118 err = ext4_journal_extend(handle, needed - handle->h_buffer_credits); in ext4_ext_truncate_extend_restart()
121 err = ext4_truncate_restart_trans(handle, inode, needed); in ext4_ext_truncate_extend_restart()
/fs/cifs/
DKconfig93 SMB protocol but LANMAN based authentication is needed to
119 which are needed to mount to certain secure servers (for which more
189 IP addresses) which is needed in order to reconnect to
/fs/fuse/
DKconfig16 See <file:Documentation/Changes> for needed library/utility version.
/fs/f2fs/
Dsegment.h574 int freed, int needed) in has_not_enough_free_secs() argument
583 if (free_sections(sbi) + freed == reserved_sections(sbi) + needed && in has_not_enough_free_secs()
588 reserved_sections(sbi) + needed); in has_not_enough_free_secs()
/fs/sysv/
DKconfig25 Note that this option is generally not needed for floppies, since a
/fs/ufs/
DKconfig17 Note that this option is generally not needed for floppies, since a
/fs/jbd2/
Dtransaction.c205 int needed; in add_transaction_credits() local
223 needed = atomic_add_return(total, &t->t_outstanding_credits); in add_transaction_credits()
224 if (needed > journal->j_max_transaction_buffers) { in add_transaction_credits()
276 needed = atomic_add_return(rsv_blocks, &journal->j_reserved_credits); in add_transaction_credits()
278 if (needed > journal->j_max_transaction_buffers / 2) { in add_transaction_credits()
/fs/verity/
DKconfig26 the contents may actually be needed. Also, fs-verity verifies
/fs/quota/
DKconfig48 # Generic support for tree structured quota files. Selected when needed.
/fs/ocfs2/
Dsuballoc.c494 unsigned int needed = le16_to_cpu(cl->cl_cpg) - in ocfs2_block_group_grow_discontig() local
509 while ((needed > 0) && (le16_to_cpu(el->l_next_free_rec) < in ocfs2_block_group_grow_discontig()
511 if (min_bits > needed) in ocfs2_block_group_grow_discontig()
512 min_bits = needed; in ocfs2_block_group_grow_discontig()
526 needed = le16_to_cpu(cl->cl_cpg) - in ocfs2_block_group_grow_discontig()
530 if (needed > 0) { in ocfs2_block_group_grow_discontig()
Dalloc.h178 unsigned int needed);
Dalloc.c6112 unsigned int needed) in ocfs2_try_to_free_truncate_log() argument
6126 if (truncated_clusters < needed) in ocfs2_try_to_free_truncate_log()
/fs/reiserfs/
DKconfig13 large directories and small files. Additional patches are needed
/fs/jffs2/
DKconfig26 areas which at one point needed debugging, but when the bugs were
DREADME.Locking117 If both erase_completion_lock and inocache_lock are needed, the
/fs/xfs/
Dxfs_log.c1097 int needed = 0; in xfs_log_need_covered() local
1118 needed = 1; in xfs_log_need_covered()
1125 needed = 1; in xfs_log_need_covered()
1129 return needed; in xfs_log_need_covered()
/fs/squashfs/
DKconfig18 embedded systems where low overhead is needed. Further information
/fs/affs/
DChanges136 no longer needed. (BH)
/fs/btrfs/
Dextent-tree.c841 int needed; in lookup_inline_extent_backref() local
923 needed = BTRFS_REF_TYPE_DATA; in lookup_inline_extent_backref()
925 needed = BTRFS_REF_TYPE_BLOCK; in lookup_inline_extent_backref()
934 type = btrfs_get_extent_inline_ref_type(leaf, iref, needed); in lookup_inline_extent_backref()
/fs/nls/
DKconfig315 An ASCII NLS module is needed if you want to override the
398 set, and it replaces the rarely needed Icelandic letters in Latin 1