Whamcloud - gitweb
b=13610
authorkalpak <kalpak>
Sat, 15 Sep 2007 07:06:58 +0000 (07:06 +0000)
committerkalpak <kalpak>
Sat, 15 Sep 2007 07:06:58 +0000 (07:06 +0000)
i=andreas, johann

The changed prototype of ext_prepare_callback will be used in lustre if HAVE_EXT_PREPARE_CB_EXTENT is declared.

lustre/lvfs/fsfilt_ext3.c

index 6737ed4..7f54e23 100644 (file)
@@ -972,7 +972,9 @@ static unsigned long new_blocks(handle_t *handle, struct ext3_ext_base *base,
 static int ext3_ext_new_extent_cb(struct ext3_ext_base *base,
                                   struct ext3_ext_path *path,
                                   struct ext3_ext_cache *cex,
+#ifdef HAVE_EXT_PREPARE_CB_EXTENT
                                   struct ext3_extent *ex,
+#endif
                                   void *cbdata)
 {
         struct bpointers *bp = cbdata;
@@ -980,7 +982,10 @@ static int ext3_ext_new_extent_cb(struct ext3_ext_base *base,
 static int ext3_ext_new_extent_cb(struct ext3_ext_base *base,
                                   struct ext3_ext_path *path,
                                   struct ext3_ext_cache *cex,
-                                  struct ext3_extent *ex)
+#ifdef HAVE_EXT_PREPARE_CB_EXTENT
+                                  struct ext3_extent *ex
+#endif
+                                 )
 {
         struct bpointers *bp = base->private;
 #endif