Whamcloud - gitweb
Branch b1_4
authoradilger <adilger>
Wed, 11 May 2005 19:23:49 +0000 (19:23 +0000)
committeradilger <adilger>
Wed, 11 May 2005 19:23:49 +0000 (19:23 +0000)
Revert previous commit, it was confusingly correct.
b=6289

lustre/obdfilter/filter_io.c

index bc37000..988e0bf 100644 (file)
@@ -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);