From patchwork Sun Oct 18 21:35:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Moise <00moses.alexander00@gmail.com> X-Patchwork-Id: 7432101 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 94F639F302 for ; Sun, 18 Oct 2015 18:36:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BD60B205ED for ; Sun, 18 Oct 2015 18:36:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DD21C205B4 for ; Sun, 18 Oct 2015 18:36:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751441AbbJRSgN (ORCPT ); Sun, 18 Oct 2015 14:36:13 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:38384 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750734AbbJRSgN (ORCPT ); Sun, 18 Oct 2015 14:36:13 -0400 Received: by wicll6 with SMTP id ll6so70680367wic.1; Sun, 18 Oct 2015 11:36:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=H78YrNTynPNJ1vsVMPw3LrcVOLpXpsYHH/TyraKFNRY=; b=Afk1NmjdErgo/jj8iJZEIVtgUmAnZ4QQWrC+/EwAR4r85jPKQCTZROgPDXLTu10ig8 8/cYfJpApY+2WbdxXDwS34WSOEL0hmULayzdLCFs+8/ksrdXm9SeTOQnNuaWqN8P68Sy gCuEVeV3K6peqpjLl42lF7UQ4Aq4XOFhcJjJOPw1s9yURfKU4GpAicZyHVx8lqArHUIl SL18nGZ4r82+9BAmp/3GiFOrLB1AhidJyGOABg5BUTIzMtJzcLwFHb5+AureeFI0njsv 3omew704ph/FY0Shbh9h5JeWJ9PHXcialsTcH+A7StvaVnWO0Uqbchu5FAqF+lE90+2R 45qA== X-Received: by 10.194.11.71 with SMTP id o7mr28960554wjb.75.1445193371598; Sun, 18 Oct 2015 11:36:11 -0700 (PDT) Received: from gmail.com ([82.78.251.71]) by smtp.gmail.com with ESMTPSA id iw8sm35375693wjb.5.2015.10.18.11.36.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Oct 2015 11:36:11 -0700 (PDT) Date: Sun, 18 Oct 2015 21:35:41 +0000 From: Alexandru Moise <00moses.alexander00@gmail.com> To: clm@fb.com Cc: jbacik@fb.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] btrfs: switch __btrfs_fs_incompat return type from int to bool Message-ID: <20151018213541.GA19850@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Conform to __btrfs_fs_incompat() cast-to-bool (!!) by explicitly returning boolean not int. Signed-off-by: Alexandru Moise <00moses.alexander00@gmail.com> --- fs/btrfs/ctree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 938efe3..f387e2d 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -4103,7 +4103,7 @@ static inline void __btrfs_set_fs_incompat(struct btrfs_fs_info *fs_info, #define btrfs_fs_incompat(fs_info, opt) \ __btrfs_fs_incompat((fs_info), BTRFS_FEATURE_INCOMPAT_##opt) -static inline int __btrfs_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag) +static inline bool __btrfs_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag) { struct btrfs_super_block *disk_super; disk_super = fs_info->super_copy;