Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352923
b: refs/heads/master
c: 4d559a3
h: refs/heads/master
i:
  352921: 6e87681
  352919: 3e9b0e8
v: v3
  • Loading branch information
Dave Chinner authored and Ben Myers committed Jan 24, 2013
1 parent 41e5888 commit 711f48d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10616b806d1d7835b1d23b8d75ef638f92cb98b6
refs/heads/master: 4d559a3bcb7383f34334092af07e68fb60910684
9 changes: 9 additions & 0 deletions trunk/fs/xfs/xfs_iomap.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,15 @@ xfs_iomap_prealloc_size(
}
if (shift)
alloc_blocks >>= shift;

/*
* If we are still trying to allocate more space than is
* available, squash the prealloc hard. This can happen if we
* have a large file on a small filesystem and the above
* lowspace thresholds are smaller than MAXEXTLEN.
*/
while (alloc_blocks >= freesp)
alloc_blocks >>= 4;
}

if (alloc_blocks < mp->m_writeio_blocks)
Expand Down

0 comments on commit 711f48d

Please sign in to comment.