]> err.no Git - linux-2.6/blobdiff - drivers/scsi/iscsi_tcp.c
Fix "stuct", "strut", "struc" typos
[linux-2.6] / drivers / scsi / iscsi_tcp.c
index 4e4b1061a5e92d589cd207a5cf67429ecef4da89..1b495afe6d1735fb67f9f87769ecc96212acd46a 100644 (file)
@@ -109,7 +109,7 @@ iscsi_buf_init_sg(struct iscsi_buf *ibuf, struct scatterlist *sg)
        /*
         * Fastpath: sg element fits into single page
         */
-       if (sg->length + sg->offset <= PAGE_SIZE && page_count(sg->page) >= 2)
+       if (sg->length + sg->offset <= PAGE_SIZE && !PageSlab(sg->page))
                ibuf->use_sendmsg = 0;
        else
                ibuf->use_sendmsg = 1;