diff options
author | Josef Bacik <jbacik@redhat.com> | 2009-02-20 10:59:53 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-02-20 10:59:53 -0500 |
commit | 4e06bdd6cbd5105376e7caf4e683ed131e777389 (patch) | |
tree | 20a7b891f7f8f518eb2cd81234e0c9ab5902c6c3 /arch/cris/arch-v10 | |
parent | 6a63209fc02d5483371f07e4913ee8abad608051 (diff) | |
download | kernel_goldelico_gta04-4e06bdd6cbd5105376e7caf4e683ed131e777389.zip kernel_goldelico_gta04-4e06bdd6cbd5105376e7caf4e683ed131e777389.tar.gz kernel_goldelico_gta04-4e06bdd6cbd5105376e7caf4e683ed131e777389.tar.bz2 |
Btrfs: try committing transaction before returning ENOSPC
This fixes a problem where we could return -ENOSPC when we may actually have
plenty of space, the space is just pinned. Instead of returning -ENOSPC
immediately, commit the transaction first and then try and do the allocation
again.
This patch also does chunk allocation for metadata if we pass the 80%
threshold for metadata space. This will help with stack usage since the chunk
allocation will happen early on, instead of when the allocation is happening.
Signed-off-by: Josef Bacik <jbacik@redhat.com>
Diffstat (limited to 'arch/cris/arch-v10')
0 files changed, 0 insertions, 0 deletions