chbmuc

extent-tree.c:5328

Dec 13th, 2011
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. 5321 if (offset) {
  2. 5322 /* we have a block, we're done */
  3. 5323 spin_unlock(&last_ptr->refill_lock);
  4. 5324 goto checks;
  5. 5325 }
  6. 5326
  7. 5327 refill_cluster:
  8. 5328 BUG_ON(used_block_group != block_group);
  9. 5329
  10. 5330 /* If we are on LOOP_NO_EMPTY_SIZE, we can't
  11. 5331 * set up a new clusters, so lets just skip it
  12. 5332 * and let the allocator find whatever block
  13. 5333 * it can find. If we reach this point, we
  14. 5334 * will have tried the cluster allocator
  15. 5335 * plenty of times and not have found
  16. 5336 * anything, so we are likely way too
  17. 5337 * fragmented for the clustering stuff to find
  18. 5338 * anything.
  19. 5339 *
  20. 5340 * However, if the cluster is taken from the
  21. 5341 * current block group, release the cluster
  22. 5342 * first, so that we stand a better chance of
  23. 5343 * succeeding in the unclustered
  24. 5344 * allocation. */
  25. 5345 if (loop >= LOOP_NO_EMPTY_SIZE &&
  26. 5346 last_ptr->block_group != block_group) {
  27. 5347 spin_unlock(&last_ptr->refill_lock);
  28. 5348 goto unclustered_alloc;
  29. 5349 }
  30.  
  31.  
Advertisement
Add Comment
Please, Sign In to add comment