commit | 1ae9bd8b7e4912b238a14adc7c559a7ecbb9c062 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Wed May 02 22:42:22 2018 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Tue May 22 14:28:04 2018 -0400 |
tree | 118b9f6c708060ea5286d46a879b5efd5c3a4ef7 | |
parent | 1bbc55131e59bd099fdc568d3aa0b42634dbd188 [diff] |
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>