From 33515a537aed38d0e7ecc0786fb73cb76a98ee8f Mon Sep 17 00:00:00 2001 From: kalpak <kalpak> Date: Sat, 15 Sep 2007 07:06:58 +0000 Subject: [PATCH] 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. --- lustre/lvfs/fsfilt_ext3.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lustre/lvfs/fsfilt_ext3.c b/lustre/lvfs/fsfilt_ext3.c index 6737ed4aaa..7f54e23650 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 -- GitLab