From a5f2ab1739241c732a7fb0ca67abc0b50970ef80 Mon Sep 17 00:00:00 2001
From: kalpak <kalpak>
Date: Mon, 21 Jul 2008 18:28:08 +0000
Subject: [PATCH] b=13387 i=alex, adilger

release pre-allocation on time
---
 ldiskfs/kernel_patches/patches/ext3-mballoc3-core.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ldiskfs/kernel_patches/patches/ext3-mballoc3-core.patch b/ldiskfs/kernel_patches/patches/ext3-mballoc3-core.patch
index 2052b650fe..1fbce882ed 100644
--- a/ldiskfs/kernel_patches/patches/ext3-mballoc3-core.patch
+++ b/ldiskfs/kernel_patches/patches/ext3-mballoc3-core.patch
@@ -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);
-+	if (pa->pa_deleted == 0) {
++	if (pa->pa_deleted == 1) {
 +		spin_unlock(&pa->pa_lock);
 +		return;
 +	}
-- 
GitLab