staging/lustre: surround module_refcount with CONFIG_MODULE_UNLOAD
authorPeng Tao <bergwolf@gmail.com>
Thu, 6 Jun 2013 14:59:12 +0000 (22:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2013 18:31:02 +0000 (11:31 -0700)
commit4a1a01ea52ad3d9bc0ac36f5a9739d6cce0bae75
tree6367666115665fead41375b08f0ca58d4c599302
parent4b5b4c7222b8eac2279e604e040561c855bbf0ce
staging/lustre: surround module_refcount with CONFIG_MODULE_UNLOAD

module_refcount() is not available when CONFIG_MODULE_UNLOAD is off.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Peng Tao <tao.peng@emc.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/lu_object.c