diff options
author | Tao Ma <tao.ma@oracle.com> | 2010-04-22 02:09:15 -0400 |
---|---|---|
committer | Tao Ma <tao.ma@oracle.com> | 2010-04-22 02:09:15 -0400 |
commit | 4711954eaa8d30f653fda238cecf919f1ae40d6f (patch) | |
tree | f150d49ce67d3982faa22a3a73c143cc901234ac /fs/ocfs2/ocfs2.h | |
parent | 95ec0adf0b56d6a3f0ca1ec87173311898486b2e (diff) |
ocfs2: Some tiny bug fixes for discontiguous block allocation.
The fixes include:
1. some endian problems.
2. we should use bit/bpc in ocfs2_block_group_grow_discontig to
allocate clusters.
3. set num_clusters properly in __ocfs2_claim_clusters.
4. change name from ocfs2_supports_discontig_bh to
ocfs2_supports_discontig_bg.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/ocfs2.h')
-rw-r--r-- | fs/ocfs2/ocfs2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/ocfs2.h b/fs/ocfs2/ocfs2.h index d389f2714c96..c67003b6b5a2 100644 --- a/fs/ocfs2/ocfs2.h +++ b/fs/ocfs2/ocfs2.h | |||
@@ -491,7 +491,7 @@ static inline int ocfs2_supports_indexed_dirs(struct ocfs2_super *osb) | |||
491 | return 0; | 491 | return 0; |
492 | } | 492 | } |
493 | 493 | ||
494 | static inline int ocfs2_supports_discontig_bh(struct ocfs2_super *osb) | 494 | static inline int ocfs2_supports_discontig_bg(struct ocfs2_super *osb) |
495 | { | 495 | { |
496 | if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_DISCONTIG_BG) | 496 | if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_DISCONTIG_BG) |
497 | return 1; | 497 | return 1; |