Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 21 Jan 2002 11:35:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 21 Jan 2002 11:35:32 -0500 Received: from waste.org ([209.173.204.2]:56208 "EHLO waste.org") by vger.kernel.org with ESMTP id ; Mon, 21 Jan 2002 11:35:30 -0500 Date: Mon, 21 Jan 2002 10:35:15 -0600 (CST) From: Oliver Xymoron To: Jens Axboe cc: Andre Hedrick , Subject: Re: Linux 2.5.3-pre1-aia1 (fwd) In-Reply-To: <20020121113549.U27835@suse.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Jan 2002, Jens Axboe wrote: > > I think this is too restrictive, something ala > > if (sectors % drive->mult_count) > command = WIN_WRITE; As far as I can see, mult_count will always be a power of two, so we might consider: if (sectors & (drive->mult_count-1)) -- "Love the dolphins," she advised him. "Write by W.A.S.T.E.." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/