X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ffid%2Ffid_internal.h;h=f8539d8414d865713c9847ff96467f37b57d4c36;hp=87c5636b4113fbc61f331719d75e733f82827afe;hb=c0a8fa3749834fa1e6f148ffec8b58ea578c1af4;hpb=08aa217ce49aba1ded52e0f7adb8a607035123fd diff --git a/lustre/fid/fid_internal.h b/lustre/fid/fid_internal.h index 87c5636..f8539d8 100644 --- a/lustre/fid/fid_internal.h +++ b/lustre/fid/fid_internal.h @@ -41,11 +41,13 @@ #define __FID_INTERNAL_H #include -#include - #include -#ifdef __KERNEL__ +#ifdef HAVE_SERVER_SUPPORT +# define HAVE_SEQ_SERVER + +struct req_capsule; + struct seq_thread_info { struct req_capsule *sti_pill; struct lu_seq_range sti_space; @@ -58,31 +60,44 @@ enum { extern struct lu_context_key seq_thread_key; -/* Functions used internally in module. */ -int seq_client_alloc_super(struct lu_client_seq *seq, - const struct lu_env *env); +# ifdef LPROCFS +extern struct lprocfs_seq_vars seq_server_proc_list[]; +# endif /* Store API functions. */ +struct dt_device; + int seq_store_init(struct lu_server_seq *seq, - const struct lu_env *env, - struct dt_device *dt); + const struct lu_env *env, + struct dt_device *dt); void seq_store_fini(struct lu_server_seq *seq, - const struct lu_env *env); + const struct lu_env *env); int seq_store_read(struct lu_server_seq *seq, - const struct lu_env *env); + const struct lu_env *env); int seq_store_update(const struct lu_env *env, struct lu_server_seq *seq, - struct lu_seq_range *out, int sync); + struct lu_seq_range *out, int sync); -#ifdef LPROCFS -extern struct lprocfs_vars seq_server_proc_list[]; -extern struct lprocfs_vars seq_client_proc_list[]; -#endif +int seq_server_alloc_spec(struct lu_server_seq *seq, + struct lu_seq_range *spec, + const struct lu_env *env); + +int fid_server_mod_init(void); + +void fid_server_mod_exit(void); + +# endif /* HAVE_SERVER_SUPPORT */ + +/* Functions used internally in module. */ +int seq_client_alloc_super(struct lu_client_seq *seq, + const struct lu_env *env); -#endif +# ifdef LPROCFS +extern struct lprocfs_seq_vars seq_client_proc_list[]; +# endif -extern cfs_proc_dir_entry_t *seq_type_proc_dir; +extern struct proc_dir_entry *seq_type_proc_dir; #endif /* __FID_INTERNAL_H */