From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Copeland Subject: Re: [PATCH 6/8] omfs: add bitmap routines Date: Sun, 20 Apr 2008 21:11:09 -0400 Message-ID: <20080421011109.GA7496@hash.localnet> References: <1208637457-24969-7-git-send-email-me@bobcopeland.com> <20080419220307.GB7888@joi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: akpm@linux-foundation.org, hch@infradead.org, alan@lxorguk.ukuu.org.uk, miklos@szeredi.hu, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org To: Marcin Slusarz Return-path: Received: from mail.deathmatch.net ([70.167.247.36]:40429 "EHLO mail.deathmatch.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753516AbYDUBMI (ORCPT ); Sun, 20 Apr 2008 21:12:08 -0400 Content-Disposition: inline In-Reply-To: <20080419220307.GB7888@joi> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sun, Apr 20, 2008 at 12:03:12AM +0200, Marcin Slusarz wrote: > I think inner loop can be replaced with something like: > sum += sb->s_blocksize * 8 - bitmap_weight(map, sb->s_blocksize * 8); Yep that should work, I'll play around with that. -- Bob Copeland %% www.bobcopeland.com