Whamcloud - gitweb
ext2obd.c: changed ext2obd_brw() to use vector I/O with brw_kiovec
[fs/lustre-release.git] / lustre / include / linux / obd_class.h
index 8ef35a7..a189e57 100644 (file)
@@ -152,7 +152,7 @@ struct obd_ops {
        int (*o_write)(struct obd_conn *conn, struct obdo *oa, char *buf,
                       obd_size *count, obd_off offset);
        int (*o_brw)(int rw, struct obd_conn *conn, obd_count *num_io,
-                    struct obdo **oa, char **buf, obd_size **count,
+                    struct obdo **oa, char **buf, obd_size *count,
                     obd_off *offset, obd_flag *flags);
        int (*o_punch)(struct obd_conn *conn, struct obdo *tgt, obd_size count,
                       obd_off offset);
@@ -170,6 +170,8 @@ struct obd_ops {
 #define OBT(dev)       dev->obd_type->typ_ops
 #define OBP(dev,op)    dev->obd_type->typ_ops->o_ ## op
 
+#define MAX_IOVEC      16
+
 
 /*
  *  ======== OBD Metadata Support  ===========