Lines Matching refs:amount_needed
1011 int amount_needed) in determine_search_start() argument
1146 int amount_needed, in allocate_without_wrapping_disk() argument
1149 int rest = amount_needed; in allocate_without_wrapping_disk()
1183 return (amount_needed - rest); in allocate_without_wrapping_disk()
1188 int amount_needed) { in blocknrs_and_prealloc_arrays_from_search_start() argument
1202 amount_needed, hint->inode->i_uid); in blocknrs_and_prealloc_arrays_from_search_start()
1206 dquot_alloc_block_nodirty(hint->inode, amount_needed); in blocknrs_and_prealloc_arrays_from_search_start()
1247 amount_needed + in blocknrs_and_prealloc_arrays_from_search_start()
1255 amount_needed + hint->prealloc_size - in blocknrs_and_prealloc_arrays_from_search_start()
1271 amount_needed - in blocknrs_and_prealloc_arrays_from_search_start()
1275 < amount_needed); in blocknrs_and_prealloc_arrays_from_search_start()
1277 amount_needed + hint->prealloc_size > in blocknrs_and_prealloc_arrays_from_search_start()
1283 amount_needed + hint->prealloc_size - in blocknrs_and_prealloc_arrays_from_search_start()
1290 dquot_free_block_nodirty(hint->inode, amount_needed + in blocknrs_and_prealloc_arrays_from_search_start()
1304 int amount_needed) in use_preallocated_list_if_available() argument
1309 while (amount_needed) { in use_preallocated_list_if_available()
1314 amount_needed--; in use_preallocated_list_if_available()
1323 return amount_needed; in use_preallocated_list_if_available()
1328 int amount_needed, in reiserfs_allocate_blocknrs() argument
1332 int initial_amount_needed = amount_needed; in reiserfs_allocate_blocknrs()
1338 amount_needed - reserved_by_us) in reiserfs_allocate_blocknrs()
1349 amount_needed = use_preallocated_list_if_available in reiserfs_allocate_blocknrs()
1350 (hint, new_blocknrs, amount_needed); in reiserfs_allocate_blocknrs()
1356 if (amount_needed == 0) in reiserfs_allocate_blocknrs()
1358 new_blocknrs += (initial_amount_needed - amount_needed); in reiserfs_allocate_blocknrs()
1362 determine_search_start(hint, amount_needed); in reiserfs_allocate_blocknrs()
1368 (hint, new_blocknrs, amount_needed); in reiserfs_allocate_blocknrs()
1377 while (amount_needed++ < initial_amount_needed) { in reiserfs_allocate_blocknrs()