From: Alex Williamson Date: Wed, 28 Aug 2013 15:49:55 +0000 (-0600) Subject: vfio-pci: Use fdget() rather than eventfd_fget() X-Git-Tag: v3.12-rc1~86^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20e77457842f4cd253d093f08f0cce1a73afb7db;p=pandora-kernel.git vfio-pci: Use fdget() rather than eventfd_fget() eventfd_fget() tests to see whether the file is an eventfd file, which we then immediately pass to eventfd_ctx_fileget(), which again tests whether the file is an eventfd file. Simplify slightly by using fdget() so that we only test that we're looking at an eventfd once. fget() could also be used, but fdget() makes use of fget_light() for another slight optimization. Signed-off-by: Alex Williamson --- Reading git-diff-tree failed