Skip to content
Snippets Groups Projects
  • Anton Staaf's avatar
    d961c188
    ext2: Simplify partial sector access logic · d961c188
    Anton Staaf authored
    
    Previously reading or writing 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: default avatarAnton Staaf <robotboy@chromium.org>
    Cc: Andy Fleming <afleming@freescale.com>
    Acked-by: default avatarDetlev Zundel <dzu@denx.de>
    d961c188
    History
    ext2: Simplify partial sector access logic
    Anton Staaf authored
    
    Previously reading or writing 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: default avatarAnton Staaf <robotboy@chromium.org>
    Cc: Andy Fleming <afleming@freescale.com>
    Acked-by: default avatarDetlev Zundel <dzu@denx.de>
include NaN GiB