Whamcloud - gitweb
Branch: b1_4
authoradilger <adilger>
Tue, 1 Mar 2005 09:52:12 +0000 (09:52 +0000)
committeradilger <adilger>
Tue, 1 Mar 2005 09:52:12 +0000 (09:52 +0000)
Disable extents/mballoc with old patch, but allow Lustre to build.

lustre/lvfs/fsfilt_ext3.c

index 6ac3090..ab42f91 100644 (file)
@@ -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);