* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2012, 2013, Intel Corporation.
+ * Copyright (c) 2012, 2014, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
static inline void set_capa_key_expiry(struct mdt_device *mdt)
{
- mdt->mdt_ck_expiry = jiffies + mdt->mdt_ck_timeout * HZ;
+ mdt->mdt_ck_expiry = jiffies + msecs_to_jiffies(mdt->mdt_ck_timeout *
+ MSEC_PER_SEC);
}
-static void make_capa_key(struct lustre_capa_key *key,
- mdsno_t mdsnum, int keyid)
+static void make_capa_key(struct lustre_capa_key *key, u32 mdsnum, int keyid)
{
key->lk_seq = mdsnum;
key->lk_keyid = keyid + 1;
struct mdt_thread_info *mti;
struct dt_object *obj;
struct lu_attr *la;
- mdsno_t mdsnum;
+ u32 mdsnum;
unsigned long size;
int rc;
ENTRY;
struct mdt_thread_info *info;
struct md_device *next;
struct l_wait_info lwi = { 0 };
- mdsno_t mdsnum;
+ u32 mdsnum;
int rc;
ENTRY;
if (rc) {
DEBUG_CAPA_KEY(D_ERROR, rkey, "update failed for");
/* next retry is in 300 sec */
- mdt->mdt_ck_expiry = jiffies + 300 * HZ;
+ mdt->mdt_ck_expiry = jiffies +
+ msecs_to_jiffies(300 *
+ MSEC_PER_SEC);
}
cfs_timer_arm(&mdt->mdt_ck_timer, mdt->mdt_ck_expiry);