]> 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)
commitff284a665808f5a9b6c64b056b3b14a45b8998e3
tree118b9f6c708060ea5286d46a879b5efd5c3a4ef7
parentb802b9af8220681c9dc7d47e7729f620899beef7
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