aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/resize.c
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2010-04-13 02:26:12 -0400
committerTao Ma <tao.ma@oracle.com>2010-04-13 02:26:12 -0400
commit4cbe4249d6586d5d88ef271e07302407a14c8443 (patch)
tree907eb8e61e3cf8ababfe1890f2c52ee82eb0e227 /fs/ocfs2/resize.c
parent0467ae954d1843de65e7cf8f706f88fe65cd8418 (diff)
ocfs2: Define data structures for discontiguous block groups.
Defines the OCFS2_FEATURE_INCOMPAT_DISCONTIG_BG feature bit and modifies struct ocfs2_group_desc for the feature. Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/resize.c')
-rw-r--r--fs/ocfs2/resize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/resize.c b/fs/ocfs2/resize.c
index a821f667b5c4..5bbfc123781f 100644
--- a/fs/ocfs2/resize.c
+++ b/fs/ocfs2/resize.c
@@ -315,7 +315,7 @@ int ocfs2_group_extend(struct inode * inode, int new_clusters)
315 BUG_ON(!OCFS2_IS_VALID_DINODE(fe)); 315 BUG_ON(!OCFS2_IS_VALID_DINODE(fe));
316 316
317 if (le16_to_cpu(fe->id2.i_chain.cl_cpg) != 317 if (le16_to_cpu(fe->id2.i_chain.cl_cpg) !=
318 ocfs2_group_bitmap_size(osb->sb) * 8) { 318 ocfs2_group_bitmap_size(osb->sb, 0) * 8) {
319 mlog(ML_ERROR, "The disk is too old and small. " 319 mlog(ML_ERROR, "The disk is too old and small. "
320 "Force to do offline resize."); 320 "Force to do offline resize.");
321 ret = -EINVAL; 321 ret = -EINVAL;
@@ -496,7 +496,7 @@ int ocfs2_group_add(struct inode *inode, struct ocfs2_new_group_input *input)
496 fe = (struct ocfs2_dinode *)main_bm_bh->b_data; 496 fe = (struct ocfs2_dinode *)main_bm_bh->b_data;
497 497
498 if (le16_to_cpu(fe->id2.i_chain.cl_cpg) != 498 if (le16_to_cpu(fe->id2.i_chain.cl_cpg) !=
499 ocfs2_group_bitmap_size(osb->sb) * 8) { 499 ocfs2_group_bitmap_size(osb->sb, 0) * 8) {
500 mlog(ML_ERROR, "The disk is too old and small." 500 mlog(ML_ERROR, "The disk is too old and small."
501 " Force to do offline resize."); 501 " Force to do offline resize.");
502 ret = -EINVAL; 502 ret = -EINVAL;