From: Al Viro Date: Sun, 12 Aug 2012 22:04:37 +0000 (-0400) Subject: autofs4: don't open-code fd_install() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~36^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c921b40d6201f7ec7b1edf7ea9a844f93e1a27f4;p=pandora-kernel.git autofs4: don't open-code fd_install() The only difference between autofs_dev_ioctl_fd_install() and fd_install() is __set_close_on_exec() done by the latter. Just use get_unused_fd_flags(O_CLOEXEC) to allocate the descriptor and be done with that... Signed-off-by: Al Viro --- Reading git-diff-tree failed