*/
#define DEBUG_SUBSYSTEM S_CLASS
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
+#include <asm/statfs.h>
+#endif
#include <linux/lprocfs_status.h>
#include <linux/obd.h>
static inline int lprocfs_filter_statfs(void *data, struct statfs *sfs)
{
struct obd_device *dev = (struct obd_device *) data;
+ LASSERT(dev != NULL);
return vfs_statfs(dev->u.filter.fo_sb, sfs);
}
void *data)
{
struct obd_device *dev = (struct obd_device *)data;
+ LASSERT(dev != NULL);
return snprintf(page, count, "%s\n", dev->u.filter.fo_fstype);
}