From patchwork Sun Sep 13 18:47:20 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: 7170031 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 76332BEEC1 for ; Sun, 13 Sep 2015 15:48:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F58720692 for ; Sun, 13 Sep 2015 15:48:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C466420691 for ; Sun, 13 Sep 2015 15:48:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753376AbbIMPrl (ORCPT ); Sun, 13 Sep 2015 11:47:41 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:33428 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753256AbbIMPrj (ORCPT ); Sun, 13 Sep 2015 11:47:39 -0400 Received: by wiclk2 with SMTP id lk2so112925299wic.0; Sun, 13 Sep 2015 08:47:38 -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=xYrgjY9gIjXeFTMZlyhzBOU/ALXUscSJevjxlwwk1GE=; b=r8axvCjOzqg9i27OWemmxzmw9WzLhdCFoLtrAujBsHskE+SIWKRzh4DgAV622i3ggO 9owQR+luSu8egqQU4/Bczs6f05zvax1jmIcQFj0iDfbPru9NrMQobYipWtK03yWykO7L veXXiJyqkKnXU9GR+OBDyObNWSKn63XEvU/nCIJ8NXIhQWR2vc9sfeIINX3eNWZeEkPy U44mjdv0xPaKK9hrkFane+KqriueAyO1ICRYJ76eddQdqSpEM8BfjKUuNVADp9EcSVDP 31RDXf3hb/HYU/nA8uIrLxSy3xl+7JXu1TYcQDrJFQ9Lk73MkGuBVTHAGvE8YJs9zLRA vfMA== X-Received: by 10.194.246.100 with SMTP id xv4mr17091904wjc.62.1442159258345; Sun, 13 Sep 2015 08:47:38 -0700 (PDT) Received: from gmail.com ([188.24.218.27]) by smtp.gmail.com with ESMTPSA id j7sm10873864wjz.11.2015.09.13.08.47.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Sep 2015 08:47:37 -0700 (PDT) Date: Sun, 13 Sep 2015 18:47:20 +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, holger.hoffstaette@googlemail.com Subject: [PATCH 1/2] btrfs: avoid passing int param to start_transaction which takes u64 Message-ID: <20150913184720.GA25846@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 Signed-off-by: Alexandru Moise <00moses.alexander00@gmail.com> --- v2: Forgot to add transaction.h when I made the commit, many thanks Holger for pointing it out. fs/btrfs/transaction.c | 2 +- fs/btrfs/transaction.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 8f259b3..8a83acd 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -570,7 +570,7 @@ reserve_fail: } struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, - int num_items) + u64 num_items) { return start_transaction(root, num_items, TRANS_START, BTRFS_RESERVE_FLUSH_ALL); diff --git a/fs/btrfs/transaction.h b/fs/btrfs/transaction.h index edc2fbc..51ba39f 100644 --- a/fs/btrfs/transaction.h +++ b/fs/btrfs/transaction.h @@ -182,7 +182,7 @@ static inline void btrfs_clear_skip_qgroup(struct btrfs_trans_handle *trans) int btrfs_end_transaction(struct btrfs_trans_handle *trans, struct btrfs_root *root); struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, - int num_items); + u64 num_items); struct btrfs_trans_handle *btrfs_start_transaction_lflush( struct btrfs_root *root, int num_items); struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root);