From: kalpak Date: Sat, 15 Sep 2007 07:06:58 +0000 (+0000) Subject: b=13610 X-Git-Tag: v1_8_0_110~1204 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=33515a537aed38d0e7ecc0786fb73cb76a98ee8f;p=fs%2Flustre-release.git b=13610 i=andreas, johann The changed prototype of ext_prepare_callback will be used in lustre if HAVE_EXT_PREPARE_CB_EXTENT is declared. --- diff --git a/lustre/lvfs/fsfilt_ext3.c b/lustre/lvfs/fsfilt_ext3.c index 6737ed4..7f54e23 100644 --- a/lustre/lvfs/fsfilt_ext3.c +++ b/lustre/lvfs/fsfilt_ext3.c @@ -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