From: Wolfgang Denk Date: Thu, 28 Jul 2011 15:36:35 +0200 Subject: [U-Boot] [PATCH v2 2/2] ext2: Simplify partial sector access logic In-Reply-To: <1309459537-312-3-git-send-email-robotboy@chromium.org> References: <1309459537-312-1-git-send-email-robotboy@chromium.org> <1309459537-312-3-git-send-email-robotboy@chromium.org> Message-ID: <20110728133635.E33C615794D5@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 <1309459537-312-3-git-send-email-robotboy@chromium.org> you wrote: > Previously reading zero full sectors (reading the end of one > sector and the beginning of the next for example) was special > cased and involved stack allocating a second sector buffer. This > change uses the same code path for this case as well as when there > are a non-zero number of full sectors to access. The result is > easier to read and reduces the maximum stack used. > > Signed-off-by: Anton Staaf > Cc: Andy Fleming > Cc: Detlev Zundel > --- > fs/ext2/dev.c | 42 +++++++++++++++--------------------------- > 1 files changed, 15 insertions(+), 27 deletions(-) Applied, thanks. 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 I can type faster than I can move a mouse, so I find menu-driven drawing packages time consuming and frustrating. - W. R. Stevens