Lines Matching refs:amount_needed
1019 int amount_needed) in determine_search_start() argument
1154 int amount_needed, in allocate_without_wrapping_disk() argument
1157 int rest = amount_needed; in allocate_without_wrapping_disk()
1191 return (amount_needed - rest); in allocate_without_wrapping_disk()
1196 int amount_needed) { in blocknrs_and_prealloc_arrays_from_search_start() argument
1210 amount_needed, hint->inode->i_uid); in blocknrs_and_prealloc_arrays_from_search_start()
1214 dquot_alloc_block_nodirty(hint->inode, amount_needed); in blocknrs_and_prealloc_arrays_from_search_start()
1255 amount_needed + in blocknrs_and_prealloc_arrays_from_search_start()
1263 amount_needed + hint->prealloc_size - in blocknrs_and_prealloc_arrays_from_search_start()
1279 amount_needed - in blocknrs_and_prealloc_arrays_from_search_start()
1283 < amount_needed); in blocknrs_and_prealloc_arrays_from_search_start()
1285 amount_needed + hint->prealloc_size > in blocknrs_and_prealloc_arrays_from_search_start()
1291 amount_needed + hint->prealloc_size - in blocknrs_and_prealloc_arrays_from_search_start()
1298 dquot_free_block_nodirty(hint->inode, amount_needed + in blocknrs_and_prealloc_arrays_from_search_start()
1312 int amount_needed) in use_preallocated_list_if_available() argument
1317 while (amount_needed) { in use_preallocated_list_if_available()
1322 amount_needed--; in use_preallocated_list_if_available()
1331 return amount_needed; in use_preallocated_list_if_available()
1336 int amount_needed, in reiserfs_allocate_blocknrs() argument
1340 int initial_amount_needed = amount_needed; in reiserfs_allocate_blocknrs()
1346 amount_needed - reserved_by_us) in reiserfs_allocate_blocknrs()
1357 amount_needed = use_preallocated_list_if_available in reiserfs_allocate_blocknrs()
1358 (hint, new_blocknrs, amount_needed); in reiserfs_allocate_blocknrs()
1364 if (amount_needed == 0) in reiserfs_allocate_blocknrs()
1366 new_blocknrs += (initial_amount_needed - amount_needed); in reiserfs_allocate_blocknrs()
1370 determine_search_start(hint, amount_needed); in reiserfs_allocate_blocknrs()
1376 (hint, new_blocknrs, amount_needed); in reiserfs_allocate_blocknrs()
1385 while (amount_needed++ < initial_amount_needed) { in reiserfs_allocate_blocknrs()