From patchwork Sun Sep 13 14:29:48 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: 7168731 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 4A7AA9F314 for ; Sun, 13 Sep 2015 11:30:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5A20620120 for ; Sun, 13 Sep 2015 11:30:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 48201206BE for ; Sun, 13 Sep 2015 11:30:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753243AbbIMLaK (ORCPT ); Sun, 13 Sep 2015 07:30:10 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:33264 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751647AbbIMLaH (ORCPT ); Sun, 13 Sep 2015 07:30:07 -0400 Received: by wiclk2 with SMTP id lk2so108888145wic.0; Sun, 13 Sep 2015 04:30:06 -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=sSyz7hfJXd0yA/yIA38M+sv5GhBn53T6R4U8HNRq2Js=; b=dZg8llH7J38o5NG+oXPLwJxuvFQsFBUgf1MQ7IIjaw4BcCbum1i5MaY0/UaJ062HCU Vwz3e2R40JGNHE/ntVcJUCOdceET4i9jBkuifYL3Xwa7cz4QOpThLZj5r/6oU0hTlM0u BAcd69DD/U0wTbBYDH99r5jWXR76WKuf3QDkPLCBBzZY3GVCvUDksZJjnEX3jv8W3DK2 I2gU0J1uhkRwhSbH/YMemOA5fsWqqh0dLhd34ZsDWVE1xeGL0TecOmQA/e87quO50KlZ COzNKkaCJENHq3R0VmcXLA6KFO4KfS3+hmUN/GkyB//MtUdZvyuRyy6+VAKO4glIXaxF J3Hw== X-Received: by 10.180.8.68 with SMTP id p4mr15834581wia.27.1442143806664; Sun, 13 Sep 2015 04:30:06 -0700 (PDT) Received: from gmail.com ([188.24.218.27]) by smtp.gmail.com with ESMTPSA id d8sm13435018wiy.1.2015.09.13.04.30.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Sep 2015 04:30:06 -0700 (PDT) Date: Sun, 13 Sep 2015 14:29:48 +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, 00moses.alexander00@gmail.com Subject: [PATCH 2/2] btrfs: declare rsv_count as u64 instead of int Message-ID: <20150913142948.GA7163@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 This patch completes the 2-patches patch series which modifies btrfs_start_transaction() to receive an u64 as its "num_items" parameter thus avoiding to pass an int to start_transaction() which actually takes an u64. Signed-off-by: Alexandru Moise <00moses.alexander00@gmail.com> --- fs/btrfs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index b823fac..92f6060 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -2266,7 +2266,7 @@ static int btrfs_punch_hole(struct inode *inode, loff_t offset, loff_t len) u64 drop_end; int ret = 0; int err = 0; - int rsv_count; + u64 rsv_count; bool same_page; bool no_holes = btrfs_fs_incompat(root->fs_info, NO_HOLES); u64 ino_size;