Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751871AbZL3BMA (ORCPT ); Tue, 29 Dec 2009 20:12:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751577AbZL3BMA (ORCPT ); Tue, 29 Dec 2009 20:12:00 -0500 Received: from ns1.siteground211.com ([209.62.36.12]:52879 "EHLO serv01.siteground211.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751455AbZL3BL7 (ORCPT ); Tue, 29 Dec 2009 20:11:59 -0500 Subject: Re: Question of resource_size() implementation From: Felipe Balbi Reply-To: me@felipebalbi.com To: Ben Nizette Cc: Joe Perches , linux-kernel@vger.kernel.org In-Reply-To: <0CE3DF69-C498-44BA-8CEA-C9AA5DB4CF84@niasdigital.com> References: <1262130234.28789.112.camel@gandalf> <1262131932.1888.202.camel@Joe-Laptop.home> <1262132171.28789.136.camel@gandalf> <251FB18F-5D6A-4BBE-A69D-F6203E09058B@niasdigital.com> <0CE3DF69-C498-44BA-8CEA-C9AA5DB4CF84@niasdigital.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 30 Dec 2009 03:11:54 +0200 Message-ID: <1262135514.28789.146.camel@gandalf> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - serv01.siteground211.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - felipebalbi.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 623 Lines: 16 On Wed, 2009-12-30 at 12:08 +1100, Ben Nizette wrote: > IOW it's a matter of convention. Either we could define a single-byte > range to be end=start and put the +1 in the resource_size or we could > define a single-byte range to be end=start+1 and leave the +1 out of > resource_size. The in-kernel convention is the former ok, thanks for the explanation Ben. -- balbi -- 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/