From 11ca89449d0037b48e8eff74de89739c1b982710 Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Fri, 1 Dec 2006 10:40:20 +0100 Subject: [PATCH] --- yaml --- r: 41148 b: refs/heads/master c: ad2d7225709b11da47e092634cbdf0591829ae9c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/bio.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 48f1c80ddd0a..c044b58c7ab5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: be1c63411addba3ad750eb4fdfc50b97bc82825e +refs/heads/master: ad2d7225709b11da47e092634cbdf0591829ae9c diff --git a/trunk/fs/bio.c b/trunk/fs/bio.c index f95c8749499f..d91cfbf7ebc4 100644 --- a/trunk/fs/bio.c +++ b/trunk/fs/bio.c @@ -622,10 +622,9 @@ static struct bio *__bio_map_user_iov(request_queue_t *q, nr_pages += end - start; /* - * transfer and buffer must be aligned to at least hardsector - * size for now, in the future we can relax this restriction + * buffer must be aligned to at least hardsector size for now */ - if ((uaddr & queue_dma_alignment(q)) || (len & queue_dma_alignment(q))) + if (uaddr & queue_dma_alignment(q)) return ERR_PTR(-EINVAL); }