Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131917
b: refs/heads/master
c: 8f64b32
h: refs/heads/master
i:
  131915: 34fdc21
v: v3
  • Loading branch information
Eric Sandeen authored and Theodore Ts'o committed Feb 26, 2009
1 parent 72d9a3c commit a06d560
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d8ae4601a4b7ea1fa17fa395c3468c0e144d1275
refs/heads/master: 8f64b32eb73fbfe9f38c4123121b63ee409278a7
4 changes: 3 additions & 1 deletion trunk/fs/ext4/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
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;

jbd_debug(1, "%s: retrying operation after ENOSPC\n", sb->s_id);
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2544,7 +2544,7 @@ static int ext4_da_writepages(struct address_space *mapping,

ext4_journal_stop(handle);

if (mpd.retval == -ENOSPC) {
if ((mpd.retval == -ENOSPC) && sbi->s_journal) {
/* commit the transaction which would
* free blocks released in the transaction
* and try again
Expand Down

0 comments on commit a06d560

Please sign in to comment.