kernel/fs/jfs/jfs_extent.c
.. .. @@ -508,6 +508,11 @@ 508 508 * blocks in the map. in that case, we'll start off with the 509 509 * maximum free. 510 510 */ 511 +512 + /* give up if no space left */513 + if (bmp->db_maxfreebud == -1)514 + return -ENOSPC;515 +511 516 max = (s64) 1 << bmp->db_maxfreebud; 512 517 if (*nblocks >= max && *nblocks > nbperpage) 513 518 nb = nblks = (max > nbperpage) ? max : nbperpage;