Re: [PATCH] ext4: group cache is added in ext4_mb_discard_preallocations()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: jing zhang
Date: Thursday, April 1, 2010 - 5:34 am

2010/3/31, Andreas Dilger <adilger@sun.com>:

Then please take the following also into consideration.

Thanks
            - zj

---

--- linux-2.6.32/fs/ext4/mballoc.c	2009-12-03 11:51:22.000000000 +0800
+++ ext4_mm_leak/mballoc-14.c	2010-04-01 20:35:58.000000000 +0800
@@ -4299,7 +4299,7 @@ repeat:
 		}
 	} else {
 		freed  = ext4_mb_discard_preallocations(sb, ac->ac_o_ex.fe_len);
-		if (freed)
+		if (freed && freed >= ac->ac_o_ex.fe_len)
 			goto repeat;
 		*errp = -ENOSPC;
 		ac->ac_b_ex.fe_len = 0;
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] ext4: group cache is added in ext4_mb_discard_ ..., Aneesh Kumar K. V, (Tue Mar 30, 11:37 am)
Re: [PATCH] ext4: group cache is added in ext4_mb_discard_ ..., jing zhang, (Thu Apr 1, 5:34 am)