iov_iter: Fix 9p virtio breakage
[sfrench/cifs-2.6.git] / net / 9p / trans_virtio.c
index 7728b0acde09aa904f4cc564de23f264abd8d2b6..ce94e5668ac2cce48cbeee59d76641181d31feec 100644 (file)
@@ -322,7 +322,7 @@ static int p9_get_mapped_pages(struct virtio_chan *chan,
        if (!iov_iter_count(data))
                return 0;
 
-       if (!(data->type & ITER_KVEC)) {
+       if (!iov_iter_is_kvec(data)) {
                int n;
                /*
                 * We allow only p9_max_pages pinned. We wait for the