From: Alan Cox Subject: Re: [PATCH v4 10/12] string: factorize skip_spaces and export it to be generally available Date: Sun, 8 Nov 2009 16:50:00 +0000 Message-ID: <20091108165000.374714cb@lxorguk.ukuu.org.uk> References: Reply-To: Linux filesystem caching discussion list Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-14 Content-Transfer-Encoding: quoted-printable Cc: Andreas Dilger , Mike Snitzer , Takashi Iwai , Kysela , Jan, Stefan Weinhuber , Eric Sandeen , "James E . J . Bottomley" , linux-cachefs@redhat.com, WANG Cong , Len Brown , Trond Myklebust , Rusty Russell , netfilter@vger.kernel.org, Al Viro , Thomas Gleixner , Engelhardt , Bjorn Helgaas , =?ISO-8859-14?B?QW5k?=, "Martin K . Petersen" , linux-kernel@vger.kernel.org, Stoyan Gaydarov , Kyle McMartin , netfilter-devel@vger.kernel.org, Joe Perches , Andrew Morton Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-cachefs-bounces@redhat.com Errors-To: linux-cachefs-bounces@redhat.com List-Id: linux-ext4.vger.kernel.org On Sat, 7 Nov 2009 13:16:18 -0200 Andr=E9 Goddard Rosa wrote: > On the following sentence: > while (*s && isspace(*s)) > s++; Looks fine but for one thing: it's actually shorter inline than moved into /lib so at the very least it should be a header inline not a function call. Second minor comment. Although it never made it into the final ANSI C, the proposed name (and the one used in a lot of other non Linux code for this) is stpblk(). Alan