1. 20 May, 2022 2 commits
    • Al Viro's avatar
      get rid of dead code in legitimize_root() · 52dba645
      Al Viro authored
      Combination of LOOKUP_IS_SCOPED and NULL nd->root.mnt is impossible
      after successful path_init().  All places where ->root.mnt might
      become NULL do that only if LOOKUP_IS_SCOPED is not there and
      path_init() itself can return success without setting nd->root
      only if ND_ROOT_PRESET had been set (in which case nd->root
      had been set by caller and never changed) or if the name had
      been a relative one *and* none of the bits in LOOKUP_IS_SCOPED
      had been present.
      
      Since all calls of legitimize_root() must be downstream of successful
      path_init(), the check for !nd->root.mnt && (nd->flags & LOOKUP_IS_SCOPED)
      is pure paranoia.
      
      FWIW, it had been discussed (and agreed upon) with Aleksa back when
      scoped lookups had been merged; looks like that had fallen through the
      cracks back then.
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      52dba645
    • Al Viro's avatar
      fs/namei.c:reserve_stack(): tidy up the call of try_to_unlazy() · e5ca024e
      Al Viro authored
      !foo() != 0 is a strange way to spell !foo(); fallout from
      "fs: make unlazy_walk() error handling consistent"...
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      e5ca024e
  2. 03 Apr, 2022 8 commits
  3. 02 Apr, 2022 30 commits