Whamcloud - gitweb
b=13387
authorkalpak <kalpak>
Mon, 21 Jul 2008 18:28:08 +0000 (18:28 +0000)
committerkalpak <kalpak>
Mon, 21 Jul 2008 18:28:08 +0000 (18:28 +0000)
i=alex, adilger

release pre-allocation on time

ldiskfs/kernel_patches/patches/ext3-mballoc3-core.patch

index 2052b65..1fbce88 100644 (file)
@@ -3624,7 +3624,7 @@ Index: linux-2.6.5-7.311/fs/ext3/mballoc.c
 +
 +      /* in this short window concurrent discard can set pa_deleted */
 +      spin_lock(&pa->pa_lock);
 +
 +      /* in this short window concurrent discard can set pa_deleted */
 +      spin_lock(&pa->pa_lock);
-+      if (pa->pa_deleted == 0) {
++      if (pa->pa_deleted == 1) {
 +              spin_unlock(&pa->pa_lock);
 +              return;
 +      }
 +              spin_unlock(&pa->pa_lock);
 +              return;
 +      }