Whamcloud - gitweb
Increase the number of request buffers to 4096 from 1024 for a 4GB machine
[fs/lustre-release.git] / lustre / include / linux / obd_lov.h
index b12a062..cf3ccec 100644 (file)
@@ -8,14 +8,18 @@
 #define OBD_LOV_DEVICENAME "lov"
 
 struct lov_brw_async_args {
-        obd_count        aa_oa_bufs;
-        struct brw_page *aa_ioarr;
+        struct lov_stripe_md  *aa_lsm;
+        struct obdo           *aa_obdos;
+        struct obdo           *aa_oa;
+        struct brw_page       *aa_ioarr;
+        obd_count              aa_oa_bufs;
 };
 
 struct lov_getattr_async_args {
         struct lov_stripe_md  *aa_lsm;
         struct obdo           *aa_oa;
-        struct obdo           *aa_stripe_oas;
+        struct obdo           *aa_obdos;
+        struct lov_obd        *aa_lov;
 };
 
 static inline int lov_stripe_md_size(int stripes)
@@ -23,19 +27,18 @@ static inline int lov_stripe_md_size(int stripes)
         return sizeof(struct lov_stripe_md) + stripes*sizeof(struct lov_oinfo);
 }
 
-static inline int lov_mds_md_size(int stripes)
+static inline int lov_mds_md_v0_size(int stripes)
 {
-        return sizeof(struct lov_mds_md) + stripes*sizeof(struct lov_object_id);
+        return sizeof(struct lov_mds_md_v0) +
+                stripes * sizeof(struct lov_ost_data_v0);
 }
 
-extern int lov_packmd(struct lustre_handle *conn, struct lov_mds_md **lmm,
-                       struct lov_stripe_md *lsm);
-extern int lov_unpackmd(struct lustre_handle *conn, struct lov_stripe_md **lsm,
-                         struct lov_mds_md *lmm, int lmmsize);
-extern int lov_setstripe(struct lustre_handle *conn,
-                         struct lov_stripe_md **lsmp, struct lov_mds_md *lmmu);
-extern int lov_getstripe(struct lustre_handle *conn, 
-                         struct lov_stripe_md *lsm, struct lov_mds_md *lmmu);
+#define lov_mds_md_size(stripes) lov_mds_md_v1_size(stripes)
+static inline int lov_mds_md_v1_size(int stripes)
+{
+        return sizeof(struct lov_mds_md_v1) +
+                stripes * sizeof(struct lov_ost_data_v1);
+}
 
 #define IOC_LOV_TYPE                   'g'
 #define IOC_LOV_MIN_NR                 50