-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* GPL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright (c) 2012, Whamcloud, Inc.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
};
struct fld_cache_entry {
- struct list_head fce_lru;
- struct list_head fce_list;
+ cfs_list_t fce_lru;
+ cfs_list_t fce_list;
/**
* fld cache entries are sorted on range->lsr_start field. */
struct lu_seq_range fce_range;
* Cache guard, protects fci_hash mostly because others immutable after
* init is finished.
*/
- spinlock_t fci_lock;
+ cfs_spinlock_t fci_lock;
/**
* Cache shrink threshold */
/**
* LRU list fld entries. */
- struct list_head fci_lru;
+ cfs_list_t fci_lru;
/**
* sorted fld entries. */
- struct list_head fci_entries_head;
+ cfs_list_t fci_entries_head;
/**
* Cache statistics. */
struct lu_seq_range fti_rec;
struct lu_seq_range fti_lrange;
struct lu_seq_range fti_irange;
- struct txn_param fti_txn_param;
};
-
-struct thandle* fld_trans_start(struct lu_server_fld *fld,
- const struct lu_env *env, int credit);
-
-void fld_trans_stop(struct lu_server_fld *fld,
- const struct lu_env *env, struct thandle* th);
+extern struct lu_context_key fld_thread_key;
int fld_index_init(struct lu_server_fld *fld,
const struct lu_env *env,
}
extern cfs_proc_dir_entry_t *fld_type_proc_dir;
-
+extern struct file_operations fld_proc_seq_fops;
#endif /* __FLD_INTERNAL_H */