Merge branch 'linux-zpios' into refs/top-bases/linux-zfs-branch

This commit is contained in:
Brian Behlendorf 2010-06-28 11:31:27 -07:00
commit b2313a226a
1 changed files with 6 additions and 6 deletions

View File

@ -443,7 +443,7 @@ zpios_dmu_write(run_args_t *run_args, objset_t *os, uint64_t object,
{ {
struct dmu_tx *tx; struct dmu_tx *tx;
int rc, how = TXG_WAIT; int rc, how = TXG_WAIT;
int flags = 0; // int flags = 0;
if (run_args->flags & DMU_WRITE_NOWAIT) if (run_args->flags & DMU_WRITE_NOWAIT)
how = TXG_NOWAIT; how = TXG_NOWAIT;
@ -467,10 +467,10 @@ zpios_dmu_write(run_args_t *run_args, objset_t *os, uint64_t object,
break; break;
} }
if (run_args->flags & DMU_WRITE_ZC) // if (run_args->flags & DMU_WRITE_ZC)
flags |= DMU_WRITE_ZEROCOPY; // flags |= DMU_WRITE_ZEROCOPY;
dmu_write_impl(os, object, offset, size, buf, tx, flags); dmu_write(os, object, offset, size, buf, tx);
dmu_tx_commit(tx); dmu_tx_commit(tx);
return 0; return 0;
@ -482,8 +482,8 @@ zpios_dmu_read(run_args_t *run_args, objset_t *os, uint64_t object,
{ {
int flags = 0; int flags = 0;
if (run_args->flags & DMU_READ_ZC) // if (run_args->flags & DMU_READ_ZC)
flags |= DMU_READ_ZEROCOPY; // flags |= DMU_READ_ZEROCOPY;
if (run_args->flags & DMU_READ_NOPF) if (run_args->flags & DMU_READ_NOPF)
flags |= DMU_READ_NO_PREFETCH; flags |= DMU_READ_NO_PREFETCH;