"include/binder/TextOutput.h" did not exist on "d5193d9394c5e58176d7bcdf50ef017f8a3b9e1e"
  • Nick Kralevich's avatar
    fstrim.c: use open(O_DIRECTORY) instead of stat · 24751743
    Nick Kralevich authored
    open(O_DIRECTORY) returns an error if the open attempt
    is against anything other than a directory. This basically
    duplicates the check that the stat() call was trying to do.
    Eliminate the unnecessary stat() call and use O_DIRECTORY
    instead.
    
    Change-Id: I1821abbed325f29a7214fdc41ed27cd9e26817d0
    24751743
fstrim.c 4.58 KB