From f468763370d774c48b98e54ced924c178291f50f Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 11 May 2005 19:23:49 +0000 Subject: [PATCH] Branch b1_4 Revert previous commit, it was confusingly correct. b=6289 --- lustre/obdfilter/filter_io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/obdfilter/filter_io.c b/lustre/obdfilter/filter_io.c index bc37000..988e0bf 100644 --- a/lustre/obdfilter/filter_io.c +++ b/lustre/obdfilter/filter_io.c @@ -527,7 +527,8 @@ static int filter_preprw_write(int cmd, struct obd_export *exp, struct obdo *oa, memset(res, 0, niocount * sizeof(*res)); - rc = filter_alloc_iobuf(&exp->exp_obd->u.filter, OBD_BRW_WRITE, + /* This iobuf is for reading any partial pages from disk */ + rc = filter_alloc_iobuf(&exp->exp_obd->u.filter, OBD_BRW_READ, obj->ioo_bufcnt, &iobuf); if (rc) GOTO(cleanup, rc); -- 1.8.3.1