aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/suballoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/suballoc.c')
-rw-r--r--fs/ocfs2/suballoc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/ocfs2/suballoc.c b/fs/ocfs2/suballoc.c
index df95707c8b10..667d622b3659 100644
--- a/fs/ocfs2/suballoc.c
+++ b/fs/ocfs2/suballoc.c
@@ -941,11 +941,7 @@ static int ocfs2_reserve_clusters_with_limit(struct ocfs2_super *osb,
941 status = ocfs2_reserve_local_alloc_bits(osb, 941 status = ocfs2_reserve_local_alloc_bits(osb,
942 bits_wanted, 942 bits_wanted,
943 *ac); 943 *ac);
944 if (status == -EFBIG) { 944 if ((status < 0) && (status != -ENOSPC)) {
945 /* The local alloc window is outside ac_max_block.
946 * use the main bitmap. */
947 status = -ENOSPC;
948 } else if ((status < 0) && (status != -ENOSPC)) {
949 mlog_errno(status); 945 mlog_errno(status);
950 goto bail; 946 goto bail;
951 } 947 }