Whamcloud - gitweb
LU-5710 corrected some typos and grammar errors
[fs/lustre-release.git] / lustre / ofd / ofd_fs.c
index 0b7386d..ba47f2d 100644 (file)
@@ -54,7 +54,7 @@
  * value which shouldn't be exceeded.
  *
  * \param[in] ofd      OFD device
- * \param[in] int      number of updates in the batch
+ * \param[in] batch    number of updates in the batch
  *
  * \retval             \a batch limited by ofd_device::ofd_precreate_batch
  */
@@ -81,7 +81,7 @@ int ofd_precreate_batch(struct ofd_device *ofd, int batch)
  * \retval             pointer to the requested ofd_seq structure
  * \retval             NULL if ofd_seq is not found
  */
-struct ofd_seq *ofd_seq_get(struct ofd_device *ofd, obd_seq seq)
+struct ofd_seq *ofd_seq_get(struct ofd_device *ofd, u64 seq)
 {
        struct ofd_seq *oseq;
 
@@ -157,13 +157,13 @@ static struct ofd_seq *ofd_seq_add(const struct lu_env *env,
 /**
  * Get last object ID for the given sequence.
  *
- * \param[in] ofd_seq  OFD sequence structure
+ * \param[in] oseq     OFD sequence structure
  *
  * \retval             the last object ID for this sequence
  */
-obd_id ofd_seq_last_oid(struct ofd_seq *oseq)
+u64 ofd_seq_last_oid(struct ofd_seq *oseq)
 {
-       obd_id id;
+       u64 id;
 
        spin_lock(&oseq->os_last_oid_lock);
        id = ostid_id(&oseq->os_oi);
@@ -178,7 +178,7 @@ obd_id ofd_seq_last_oid(struct ofd_seq *oseq)
  * \param[in] oseq     OFD sequence
  * \param[in] id       the new OID to set
  */
-void ofd_seq_last_oid_set(struct ofd_seq *oseq, obd_id id)
+void ofd_seq_last_oid_set(struct ofd_seq *oseq, u64 id)
 {
        spin_lock(&oseq->os_last_oid_lock);
        if (likely(ostid_id(&oseq->os_oi) < id))
@@ -205,7 +205,7 @@ int ofd_seq_last_oid_write(const struct lu_env *env, struct ofd_device *ofd,
                           struct ofd_seq *oseq)
 {
        struct ofd_thread_info  *info = ofd_info(env);
-       obd_id                   tmp;
+       u64                      tmp;
        struct dt_object        *obj = oseq->os_lastid_obj;
        struct thandle          *th;
        int                      rc;
@@ -249,7 +249,7 @@ out:
  *
  * LWP is lightweight proxy - simplified connection between
  * servers. It is used for FID Location Database (FLDB) and
- * sequence (SEQ) client-server interations.
+ * sequence (SEQ) client-server interactions.
  *
  * This function is used during server cleanup process to free
  * LWP items that were previously set up upon OFD start.
@@ -360,12 +360,12 @@ void ofd_seqs_fini(const struct lu_env *env, struct ofd_device *ofd)
  * \retval             ERR_PTR pointer on error
  */
 struct ofd_seq *ofd_seq_load(const struct lu_env *env, struct ofd_device *ofd,
-                            obd_seq seq)
+                            u64 seq)
 {
        struct ofd_thread_info  *info = ofd_info(env);
        struct ofd_seq          *oseq = NULL;
        struct dt_object        *dob;
-       obd_id                   lastid;
+       u64                      lastid;
        int                      rc;
 
        ENTRY;
@@ -403,7 +403,7 @@ struct ofd_seq *ofd_seq_load(const struct lu_env *env, struct ofd_device *ofd,
 
        atomic_set(&oseq->os_refc, 1);
 
-       rc = dt_attr_get(env, dob, &info->fti_attr, BYPASS_CAPA);
+       rc = dt_attr_get(env, dob, &info->fti_attr);
        if (rc)
                GOTO(cleanup, rc);