Whamcloud - gitweb
liblustre: provide dummy set_fs/get_fs implementation
authornikita <nikita>
Mon, 21 Aug 2006 19:36:42 +0000 (19:36 +0000)
committernikita <nikita>
Mon, 21 Aug 2006 19:36:42 +0000 (19:36 +0000)
lustre/include/liblustre.h

index c8b0c07..fa39903 100644 (file)
@@ -153,10 +153,6 @@ static inline void *kmalloc(int size, int prot)
 #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);
 
@@ -892,6 +888,20 @@ void posix_acl_release(struct posix_acl *acl)
 #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>