From f22179a3d8d4fe06c250e057191dc379447edf31 Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 1 Mar 2005 09:52:12 +0000 Subject: [PATCH] Branch: b1_4 Disable extents/mballoc with old patch, but allow Lustre to build. --- lustre/lvfs/fsfilt_ext3.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lustre/lvfs/fsfilt_ext3.c b/lustre/lvfs/fsfilt_ext3.c index 6ac3090..ab42f917 100644 --- a/lustre/lvfs/fsfilt_ext3.c +++ b/lustre/lvfs/fsfilt_ext3.c @@ -635,6 +635,11 @@ static int fsfilt_ext3_sync(struct super_block *sb) return ext3_force_commit(sb); } +#ifndef EXT3_EXT_CACHE_NO /* we need this for struct ext3_ext_cache */ +#undef EXT3_MULTIBLOCK_ALLOCATOR +#warning "kernel code has old extents/mballoc patch, disabling" +#endif + #ifdef EXT3_MULTIBLOCK_ALLOCATOR #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) #define ext3_up_truncate_sem(inode) up_write(&EXT3_I(inode)->truncate_sem); -- 1.8.3.1