Re: [PATCH] proc: delete redundant subset=pid check

2021-03-20 Thread Alexey Gladkov
On Sat, Mar 20, 2021 at 06:46:08PM +0300, Alexey Dobriyan wrote: > Two checks in lookup and readdir code should be enough to not have > third check in open code. > > Can't open what can't be looked up? As far as I remember, I first added pidonly processing here and later then I disabled lookup. N

[PATCH] proc: delete redundant subset=pid check

2021-03-20 Thread Alexey Dobriyan
Two checks in lookup and readdir code should be enough to not have third check in open code. Can't open what can't be looked up? Signed-off-by: Alexey Dobriyan --- fs/proc/inode.c |4 1 file changed, 4 deletions(-) --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -483,7 +483,6 @@ proc_