From 5b23a86b9c11e78e4a454d5894b02d908d402d48 Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 21 Aug 2006 19:36:42 +0000 Subject: [PATCH] liblustre: provide dummy set_fs/get_fs implementation --- lustre/include/liblustre.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/lustre/include/liblustre.h b/lustre/include/liblustre.h index c8b0c07..fa39903 100644 --- a/lustre/include/liblustre.h +++ b/lustre/include/liblustre.h @@ -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 #include #include -- 1.8.3.1