/*
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
- */
-/*
- * Copyright (c) 2012, 2013, Intel Corporation.
- * Use is subject to license terms.
+ *
+ * Copyright (c) 2012, 2014, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
* the object is located (tgt index) and it is MDT or OST object.
*/
int osd_fld_lookup(const struct lu_env *env, struct osd_device *osd,
- obd_seq seq, struct lu_seq_range *range)
+ u64 seq, struct lu_seq_range *range)
{
struct seq_server_site *ss = osd_seq_site(osd);
}
static struct osd_seq *osd_seq_find_locked(struct osd_seq_list *seq_list,
- obd_seq seq)
+ u64 seq)
{
struct osd_seq *osd_seq;
return NULL;
}
-static struct osd_seq *osd_seq_find(struct osd_seq_list *seq_list,
- obd_seq seq)
+static struct osd_seq *osd_seq_find(struct osd_seq_list *seq_list, u64 seq)
{
struct osd_seq *osd_seq;
}
static struct osd_seq *osd_find_or_add_seq(const struct lu_env *env,
- struct osd_device *osd, obd_seq seq)
+ struct osd_device *osd, u64 seq)
{
struct osd_seq_list *seq_list = &osd->od_seq_list;
struct osd_seq *osd_seq;
{
struct osd_seq *osd_seq;
unsigned long b;
- obd_id id;
+ u64 id;
int rc;
osd_seq = osd_find_or_add_seq(env, osd, fid_seq(fid));
/* declare that we'll add object to fid-dnode mapping */
newfid.f_seq = FID_SEQ_ROOT;
- newfid.f_oid = 1;
+ newfid.f_oid = FID_OID_ROOT;
newfid.f_ver = 0;
zapid = osd_get_name_n_idx(env, o, &newfid, buf);
dmu_tx_hold_bonus(tx, zapid);