suballoc.c (d659072f736837e56b6433d58e5315ad1d4d5ccf) suballoc.c (2fbe8d1ebe004425b4f7b8bba345623d2280be82)
1/* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
3 *
4 * suballoc.c
5 *
6 * metadata alloc and free
7 * Inspired by ext3 block groups.
8 *

--- 1502 unchanged lines hidden (view full) ---

1511 cluster_start,
1512 num_clusters);
1513 if (!status)
1514 atomic_inc(&osb->alloc_stats.local_data);
1515 } else {
1516 if (min_clusters > (osb->bitmap_cpg - 1)) {
1517 /* The only paths asking for contiguousness
1518 * should know about this already. */
1/* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
3 *
4 * suballoc.c
5 *
6 * metadata alloc and free
7 * Inspired by ext3 block groups.
8 *

--- 1502 unchanged lines hidden (view full) ---

1511 cluster_start,
1512 num_clusters);
1513 if (!status)
1514 atomic_inc(&osb->alloc_stats.local_data);
1515 } else {
1516 if (min_clusters > (osb->bitmap_cpg - 1)) {
1517 /* The only paths asking for contiguousness
1518 * should know about this already. */
1519 mlog(ML_ERROR, "minimum allocation requested exceeds "
1520 "group bitmap size!");
1519 mlog(ML_ERROR, "minimum allocation requested %u exceeds "
1520 "group bitmap size %u!\n", min_clusters,
1521 osb->bitmap_cpg);
1521 status = -ENOSPC;
1522 goto bail;
1523 }
1524 /* clamp the current request down to a realistic size. */
1525 if (bits_wanted > (osb->bitmap_cpg - 1))
1526 bits_wanted = osb->bitmap_cpg - 1;
1527
1528 status = ocfs2_claim_suballoc_bits(osb,

--- 273 unchanged lines hidden ---
1522 status = -ENOSPC;
1523 goto bail;
1524 }
1525 /* clamp the current request down to a realistic size. */
1526 if (bits_wanted > (osb->bitmap_cpg - 1))
1527 bits_wanted = osb->bitmap_cpg - 1;
1528
1529 status = ocfs2_claim_suballoc_bits(osb,

--- 273 unchanged lines hidden ---