From: Wolfgang Denk Date: Tue, 23 Aug 2011 22:18:08 +0200 Subject: [U-Boot] [PATCH v2] ext2: Cache line aligned partial sector bounce buffer In-Reply-To: References: <1314043924-22130-1-git-send-email-robotboy@chromium.org> <201108231323.40903.vapier@gentoo.org> <201108231432.40653.vapier@gentoo.org> Message-ID: <20110823201808.1E4B1201520@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Anton Staaf, In message you wrote: > > > and what do you do when there is no memory left in the malloc arena because > > you leaked it all and so can't service any new read requests ? > > I think you've miss-understood my patch. The allocated buffer is > stored in a static variable. So only the first time through is it > allocated. Strictly speaking, only the _pointer_to_ the allocated buffer is stored in a static variable. [I know you meant this, but we should try and be exact.] Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You have the capacity to learn from mistakes. You'll learn a lot today.