From: adilger Date: Wed, 11 May 2005 19:23:49 +0000 (+0000) Subject: Branch b1_4 X-Git-Tag: v1_7_100~1^25~8^2~135 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=f468763370d774c48b98e54ced924c178291f50f;p=fs%2Flustre-release.git Branch b1_4 Revert previous commit, it was confusingly correct. b=6289 --- 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);