]> git.baikalelectronics.ru Git - kernel.git/commit
proc_lookupfd_common(): don't bother with instantiate unless the file is open
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 3 May 2018 02:42:22 +0000 (22:42 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 22 May 2018 18:28:04 +0000 (14:28 -0400)
commitca04c8b4a91c9f793ad7bf3edd4424fbe0c12c0d
tree118b9f6c708060ea5286d46a879b5efd5c3a4ef7
parent5ec77277ca281b23476b47502469ffc0d6557752
proc_lookupfd_common(): don't bother with instantiate unless the file is open

... and take the "check if file is open, pick ->f_mode" into a helper;
tid_fd_revalidate() can use it.

The next patch will get rid of tid_fd_revalidate() calls in instantiate
callbacks.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/proc/fd.c