* 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/
*
* An interpretation callback called by ptlrpc for OST_STATFS RPC when it is
* replied by the target. It's used to maintain statfs cache for the target.
- * The function fills data from the reply if succesfull and schedules another
+ * The function fills data from the reply if successful and schedules another
* update.
*
* \param[in] env LU environment provided by the caller
int rc;
ENTRY;
- /* Note: through f_oid is only 32bits, it will also write
- * 64 bits for oid to keep compatiblity with the previous
- * version. */
+ /* Note: through f_oid is only 32 bits, it will also write 64 bits
+ * for oid to keep compatibility with the previous version. */
lb_oid->lb_buf = &fid->f_oid;
- lb_oid->lb_len = sizeof(obd_id);
- oid_off = sizeof(obd_id) * osp->opd_index;
+ lb_oid->lb_len = sizeof(u64);
+ oid_off = sizeof(u64) * osp->opd_index;
lb_oseq->lb_buf = &fid->f_seq;
- lb_oseq->lb_len = sizeof(obd_id);
- oseq_off = sizeof(obd_id) * osp->opd_index;
+ lb_oseq->lb_len = sizeof(u64);
+ oseq_off = sizeof(u64) * osp->opd_index;
th = dt_trans_create(env, osp->opd_storage);
if (IS_ERR(th))
* \retval 0 on success
* \retval negative negated errno on error
*/
-int osp_precreate_rollover_new_seq(struct lu_env *env, struct osp_device *osp)
+static int osp_precreate_rollover_new_seq(struct lu_env *env,
+ struct osp_device *osp)
{
struct lu_fid *fid = &osp_env_info(env)->osi_fid;
struct lu_fid *last_fid = &osp->opd_last_used_fid;
}
/*
- * Set size regular attribute on a object
+ * Set size regular attribute on an object
*
* When a striping is created late, it's possible that size is already
* initialized on the file. Then the new striping should inherit size