* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2011, 2012, Intel Corporation.
+ * Copyright (c) 2011, 2013, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
#define oap_brw_flags oap_brw_page.flag
struct osc_cache_waiter {
- cfs_list_t ocw_entry;
- cfs_waitq_t ocw_waitq;
- struct osc_async_page *ocw_oap;
+ cfs_list_t ocw_entry;
+ wait_queue_head_t ocw_waitq;
+ struct osc_async_page *ocw_oap;
int ocw_grant;
- int ocw_rc;
+ int ocw_rc;
};
int osc_create(const struct lu_env *env, struct obd_export *exp,
int osc_cancel_base(struct lustre_handle *lockh, __u32 mode);
int osc_match_base(struct obd_export *exp, struct ldlm_res_id *res_id,
- __u32 type, ldlm_policy_data_t *policy, __u32 mode,
- int *flags, void *data, struct lustre_handle *lockh,
- int unref);
+ __u32 type, ldlm_policy_data_t *policy, __u32 mode,
+ __u64 *flags, void *data, struct lustre_handle *lockh,
+ int unref);
int osc_setattr_async_base(struct obd_export *exp, struct obd_info *oinfo,
struct obd_trans_info *oti,
int osc_dlm_lock_pageref(struct ldlm_lock *dlm);
-extern cfs_mem_cache_t *osc_quota_kmem;
+extern struct kmem_cache *osc_quota_kmem;
struct osc_quota_info {
/** linkage for quota hash table */
cfs_hlist_node_t oqi_hash;
void osc_inc_unstable_pages(struct ptlrpc_request *req);
void osc_dec_unstable_pages(struct ptlrpc_request *req);
+int osc_over_unstable_soft_limit(struct client_obd *cli);
#endif /* OSC_INTERNAL_H */