From patchwork Thu May 12 16:15:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 780482 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4CGFv9d024414 for ; Thu, 12 May 2011 16:15:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757951Ab1ELQPv (ORCPT ); Thu, 12 May 2011 12:15:51 -0400 Received: from cantor2.suse.de ([195.135.220.15]:46924 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757939Ab1ELQPu (ORCPT ); Thu, 12 May 2011 12:15:50 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id 064FF86A2E for ; Thu, 12 May 2011 18:15:50 +0200 (CEST) Received: by ds.suse.cz (Postfix, from userid 10065) id 99949745F2; Thu, 12 May 2011 18:15:49 +0200 (CEST) From: David Sterba To: linux-btrfs@vger.kernel.org Cc: David Sterba Subject: [PATCH 1/1] btrfs: use unsigned type for single bit bitfield Date: Thu, 12 May 2011 18:15:48 +0200 Message-Id: <1305216948-27466-1-git-send-email-dsterba@suse.cz> X-Mailer: git-send-email 1.7.5.1.169.g505a1 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 12 May 2011 16:15:57 +0000 (UTC) Signed-off-by: David Sterba --- fs/btrfs/ctree.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index e37d441..343304d 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -740,12 +740,12 @@ struct btrfs_space_info { */ unsigned long reservation_progress; - int full:1; /* indicates that we cannot allocate any more + unsigned int full:1; /* indicates that we cannot allocate any more chunks for this space */ - int chunk_alloc:1; /* set if we are allocating a chunk */ + unsigned int chunk_alloc:1; /* set if we are allocating a chunk */ - int force_alloc; /* set if we need to force a chunk alloc for - this space */ + unsigned int force_alloc; /* set if we need to force a chunk + alloc for this space */ struct list_head list;