Re: [PATCH] fs: fat: check for buffer size before reading blocks

2021-09-26 Thread Oleksandr Suvorov
Hello Heinrich, On Fri, Sep 17, 2021 at 5:36 AM Heinrich Schuchardt wrote: > > On 9/16/21 4:09 PM, Oleksandr Suvorov wrote: > > From: Ricardo Salveti > > > > This patch optimizes the commit mentioned below by avoiding running > > a set of commands which useless in the case when > > %s/which/whic

Re: [PATCH] fs: fat: check for buffer size before reading blocks

2021-09-16 Thread Heinrich Schuchardt
On 9/16/21 4:09 PM, Oleksandr Suvorov wrote: From: Ricardo Salveti This patch optimizes the commit mentioned below by avoiding running a set of commands which useless in the case when %s/which/which are/ size < mydata->sect_size and idx would be 0. Thank you for reviewing the FAT coding.

[PATCH] fs: fat: check for buffer size before reading blocks

2021-09-16 Thread Oleksandr Suvorov
From: Ricardo Salveti This patch optimizes the commit mentioned below by avoiding running a set of commands which useless in the case when size < mydata->sect_size and idx would be 0. Fixes: 5b3ddb17ba ("fs/fat/fat.c: Do not perform zero block reads if there are no blocks left") Signed-off-by: