From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753305Ab1GZIAj (ORCPT ); Tue, 26 Jul 2011 04:00:39 -0400 Received: from mail.linux-iscsi.org ([67.23.28.174]:35723 "EHLO linux-iscsi.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753301Ab1GZIAd (ORCPT ); Tue, 26 Jul 2011 04:00:33 -0400 Subject: Re: [GIT PULL] iscsi-target merge for v3.1-rc1 From: "Nicholas A. Bellinger" To: Andrew Morton Cc: Linus Torvalds , target-devel , linux-scsi , LKML , Christoph Hellwig , Andy Grover , Hannes Reinecke , Roland Dreier , James Bottomley , Boaz Harrosh , Mike Christie In-Reply-To: <20110726004335.c6f26c5c.akpm@linux-foundation.org> References: <1311462975.31450.356.camel@haakon2.linux-iscsi.org> <20110725163739.5c19b04d.akpm@linux-foundation.org> <20110725165057.9701f16b.akpm@linux-foundation.org> <1311663071.17766.230.camel@haakon2.linux-iscsi.org> <20110726004335.c6f26c5c.akpm@linux-foundation.org> Content-Type: text/plain Date: Tue, 26 Jul 2011 00:51:10 -0700 Message-Id: <1311666670.17766.241.camel@haakon2.linux-iscsi.org> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2011-07-26 at 00:43 -0700, Andrew Morton wrote: > On Tue, 26 Jul 2011 00:09:40 -0700 Linus Torvalds wrote: > > > Just a simple > > > > #define DIV_ROUND_UP_ULL(ll,d) \ > > ({ unsigned long long _tmp = (ll)+(d)-1; do_div(_tmp, d); _tmp; }) > > > > looks like it would work and be simpler. Avoid the conditional, do the > > same "add 'd-1' thing as the regular ROUND_UP(). > > > > We might end up needing a DIV_ROUND_UP_SECTOR_T because that guy's > type/size is Kconfigurable. > > otoh DIV_ROUND_UP_ULL won't have many callsites - the occasional > conversion from UL to ULL then back to UL wouldn't kill us. Unless > there be subtle problems with such a conversion. > Makes sense to me, and sending out updated series.. Anything else to consider here folks before pushing into target-pending.git/for-next..? Thanks! --nab