Skip to content
Permalink
Branch: 9.0.0-sultan
Commits on Jan 14, 2020
  1. ANDROID: sdcardfs: Alloc memory only when needed in __sdcardfs_lookup()

    kerneltoast committed Jan 14, 2020
    There's no need to allocate a 4 KiB buffer all the time in this
    frequently-hit error path; instead, memory to store a file path can be
    allocated only when really necessary, when the lookup is successful.
    
    Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
  2. Revert "ANDROID: sdcardfs: Allocate temporary name buffer on the stack"

    kerneltoast committed Jan 14, 2020
    This reverts commit a959dd8.
    
    This can actually be replaced by a concise dynamic memory allocation,
    and it may be causing stack overflows anyway. Remove it.
You can’t perform that action at this time.