diff options
author | Mark Fasheh <mfasheh@suse.com> | 2010-03-17 00:01:00 -0400 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-05-05 21:17:31 -0400 |
commit | a57c8fd2ad238258cc983049008aea5f985804b2 (patch) | |
tree | 2d9142401ca7a03df6edaefcc3fd937f2f24fc8d /fs/ocfs2/suballoc.c | |
parent | 33d5d380d667ad264675cfdb297dfc3c5b6542cc (diff) |
ocfs2: remove ocfs2_local_alloc_in_range()
Inodes are always allocated from the global bitmap now so we don't need this
any more. Also, the existing implementation bounces reservations around
needlessly.
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/suballoc.c')
-rw-r--r-- | fs/ocfs2/suballoc.c | 6 |
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 | } |