Whamcloud - gitweb
b=7264
authoralex <alex>
Sun, 7 Aug 2005 11:18:14 +0000 (11:18 +0000)
committeralex <alex>
Sun, 7 Aug 2005 11:18:14 +0000 (11:18 +0000)
 - mballoc must not be used during orphan cleanup

lustre/kernel_patches/patches/ext3-mballoc2-2.6.10-fc3.patch

index 2a4bc1f..6d6dc0a 100644 (file)
@@ -1856,7 +1856,7 @@ Index: linux-2.6.10/fs/ext3/mballoc.c
 +      int freed;
 +
 +      sb = inode->i_sb;
-+      if (!test_opt(sb, MBALLOC))
++      if (!test_opt(sb, MBALLOC) || EXT3_SB(sb)->s_buddy_blocks == NULL)
 +              ext3_free_blocks_sb(handle, sb, block, count, &freed);
 +      else
 +              ext3_mb_free_blocks(handle, inode, block, count, metadata, &freed);