#define PTR_ERR(a) ((long)(a))
#define ERR_PTR(a) ((void*)((long)(a)))
-typedef struct {
- void *cwd;
-}mm_segment_t;
-
typedef int (read_proc_t)(char *page, char **start, off_t off,
int count, int *eof, void *data);
#define ENOTSUPP ENOTSUP
#endif
+typedef int mm_segment_t;
+enum {
+ KERNEL_DS,
+ USER_DS
+};
+static inline mm_segment_t get_fs(void)
+{
+ return USER_DS;
+}
+
+static inline void set_fs(mm_segment_t seg)
+{
+}
+
#include <obd_support.h>
#include <lustre/lustre_idl.h>
#include <lustre_lib.h>