From c887d9d0711f02a36d19b4e1ccd18ecfe82bcec5 Mon Sep 17 00:00:00 2001
From: alex <alex>
Date: Mon, 30 Jun 2008 04:45:58 +0000
Subject: [PATCH] fix issue with >8TB fs: group doesn't fit in 16bits anymore

b=16101
i=adilger
i=kalpak
---
 ldiskfs/kernel_patches/patches/ext3-mballoc3-core.patch | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ldiskfs/kernel_patches/patches/ext3-mballoc3-core.patch b/ldiskfs/kernel_patches/patches/ext3-mballoc3-core.patch
index d849bd0c17..5ef1f7db16 100644
--- a/ldiskfs/kernel_patches/patches/ext3-mballoc3-core.patch
+++ b/ldiskfs/kernel_patches/patches/ext3-mballoc3-core.patch
@@ -575,7 +575,7 @@ Index: linux-2.6.18-53.1.14/fs/ext3/mballoc.c
 +#define EXT3_BB_MAX_BLOCKS	30
 +
 +struct ext3_free_metadata {
-+	unsigned short group;
++	unsigned group;
 +	unsigned short num;
 +	unsigned short blocks[EXT3_BB_MAX_BLOCKS];
 +	struct list_head list;
@@ -704,8 +704,8 @@ Index: linux-2.6.18-53.1.14/fs/ext3/mballoc.c
 +	void *bd_bitmap;
 +	struct ext3_group_info *bd_info;
 +	struct super_block *bd_sb;
-+	__u16 bd_blkbits;
-+	__u16 bd_group;
++	unsigned bd_group;
++	unsigned bd_blkbits;
 +};
 +#define EXT3_MB_BITMAP(e3b)	((e3b)->bd_bitmap)
 +#define EXT3_MB_BUDDY(e3b)	((e3b)->bd_buddy)
-- 
GitLab