don't bother with {get,put}_write_access() on non-regular files
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 14 Mar 2014 14:56:20 +0000 (10:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 May 2014 04:52:12 +0000 (21:52 -0700)
commit68ad89c73da6085d14e18f18ec7298821d408b2d
treec426b7c447d78b45a9d0a1f07e8be23ea3056799
parentcd09dfbdad430e807be3dee98ce03f452b7ef001
don't bother with {get,put}_write_access() on non-regular files

commit dd20908a8a06b22c171f6c3fcdbdbd65bed07505 upstream.

it's pointless and actually leads to wrong behaviour in at least one
moderately convoluted case (pipe(), close one end, try to get to
another via /proc/*/fd and run into ETXTBUSY).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/file_table.c
fs/open.c