staging/lustre/lvfs: fix building without CONFIG_PROC_FS
staging/lustre/lvfs: fix building without CONFIG_PROC_FS

Patch "staging/lustre/lvfs: remove the lvfs layer" moved some code around
that was previously only built when CONFIG_PROC_FS was set, which now
causes an invalid access to the obd_memory variable:

ERROR: "obd_memory" [drivers/staging/lustre/lustre/obdclass/obdclass.ko] undefined!

This fixes it by using adding a compile-time check around the access.

Signed-off-by: Arnd Bergmann <f2c659f01951776204a6c5b902787d9019fbeebd@arndb.de>
Fixes: fdedd94509fd ("staging/lustre/lvfs: remove the lvfs layer")
Cc: James Simmons <94d0c8f5dbb6ca949ebe3e4da51b530b8b7e0305@gmail.com>
Cc: Mikhail Pershin <bf38e5389dd082230b8c724ca6a74731b7958479@intel.com>
Cc: John L. Hammond <250de275cb407ebee9cf359bb33b5906af685700@intel.com>
Cc: Jian Yu <b4f6337552ca16553c75681d5bf12488e6a1ceec@intel.com>
Cc: Bob Glossman <67e548fbeaf191ffde66fc5ef46cd49dbf7d7d6a@intel.com>
Cc: Oleg Drokin <65b2ca07820e940f66d8901813c729ec10a548f5@intel.com>
Cc: Greg Kroah-Hartman <4645f7897fd33786a2ee1264d590b3c400559d85@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <4645f7897fd33786a2ee1264d590b3c400559d85@linuxfoundation.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs