|
@@ -609,7 +609,9 @@ int ext4_claim_free_blocks(struct ext4_sb_info *sbi,
|
|
*/
|
|
*/
|
|
int ext4_should_retry_alloc(struct super_block *sb, int *retries)
|
|
int ext4_should_retry_alloc(struct super_block *sb, int *retries)
|
|
{
|
|
{
|
|
- if (!ext4_has_free_blocks(EXT4_SB(sb), 1) || (*retries)++ > 3)
|
|
|
|
|
|
+ if (!ext4_has_free_blocks(EXT4_SB(sb), 1) ||
|
|
|
|
+ (*retries)++ > 3 ||
|
|
|
|
+ !EXT4_SB(sb)->s_journal)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
jbd_debug(1, "%s: retrying operation after ENOSPC\n", sb->s_id);
|
|
jbd_debug(1, "%s: retrying operation after ENOSPC\n", sb->s_id);
|