• Miklos Szeredi's avatar
    vfs: only add " (deleted)" where necessary · ffd1f4ed
    Miklos Szeredi authored
    __d_path() has 4 callers:
    
      d_path()
      sys_getcwd()
      seq_path_root()
      tomoyo_realpath_from_path2()
    
    Of these the only one which needs the " (deleted)" ending is d_path().
    
    sys_getcwd() checks for existence before calling __d_path().
    
    seq_path_root() is used to show the mountpoint path in
    /proc/PID/mountinfo, which is always a positive.
    
    And tomoyo doesn't want the deleted ending.
    
    Create a helper "path_with_deleted()" as subsequent patches will need
    this in multiple places.
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    ffd1f4ed
dcache.c 60.7 KB