From: nikita Date: Mon, 21 Aug 2006 19:36:42 +0000 (+0000) Subject: liblustre: provide dummy set_fs/get_fs implementation X-Git-Tag: v1_8_0_110~486^2~1125 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=5b23a86b9c11e78e4a454d5894b02d908d402d48;p=fs%2Flustre-release.git liblustre: provide dummy set_fs/get_fs implementation --- 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