From patchwork Sat Jun 18 20:26:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Dryomov X-Patchwork-Id: 893702 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5IKQoDW011067 for ; Sat, 18 Jun 2011 20:26:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752248Ab1FRU0j (ORCPT ); Sat, 18 Jun 2011 16:26:39 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:64523 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752156Ab1FRU0j (ORCPT ); Sat, 18 Jun 2011 16:26:39 -0400 Received: by fxm17 with SMTP id 17so300766fxm.19 for ; Sat, 18 Jun 2011 13:26:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=gRl27hOtkW9Q7Pk1NfrqF/njD0rdZhLaRRy69yVQKoY=; b=Mx/r9Bonm/S4WCPCgt3gX/V4KGhdZWNx2RiBwXbvJnm2/iW2xLC1fen/uEK3wY3ZP7 eDDuStaYtuoi3rBuyzK/d5+uZG8XvlekUyr3CAoX3QryHT5fslXBvq6sL1nk6YgrZk5c MnzD9XfkOreSqInXlFWNNELUGJKt9P0I+XAng= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=D7zUK3EDODvqevCBU63T/NnxLmA2FwF/UZ/vN/DuX+aBglp2fl5CLJwPxIWdXc+EYz MVXJPbfnx6wmKMr2XPoGnNqoSlY0NWSIZWAW5ZQ0E8ble6j3K5QcNwVZ8VuEZJ5CbpQj jcajPMPWWTcacB/727oEaDCZ35WrU5C4r6pAA= Received: by 10.223.158.72 with SMTP id e8mr3932230fax.39.1308428798109; Sat, 18 Jun 2011 13:26:38 -0700 (PDT) Received: from localhost ([31.28.239.200]) by mx.google.com with ESMTPS id o23sm1964465faa.9.2011.06.18.13.26.36 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 18 Jun 2011 13:26:37 -0700 (PDT) From: Ilya Dryomov To: linux-btrfs@vger.kernel.org Cc: idryomov@gmail.com Subject: [PATCH] Btrfs: fix type mismatch in find_free_extent() Date: Sat, 18 Jun 2011 23:26:38 +0300 Message-Id: <1308428798-29471-1-git-send-email-idryomov@gmail.com> X-Mailer: git-send-email 1.7.2.5 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]); Sat, 18 Jun 2011 20:26:51 +0000 (UTC) data parameter should be u64 because a full-sized chunk flags field is passed instead of 0/1 for distinguishing data from metadata. All underlying functions expect u64. Signed-off-by: Ilya Dryomov --- fs/btrfs/extent-tree.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index b42efc2..5646348 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -4846,7 +4846,7 @@ static noinline int find_free_extent(struct btrfs_trans_handle *trans, u64 num_bytes, u64 empty_size, u64 search_start, u64 search_end, u64 hint_byte, struct btrfs_key *ins, - int data) + u64 data) { int ret = 0; struct btrfs_root *root = orig_root->fs_info->extent_root; @@ -4873,7 +4873,7 @@ static noinline int find_free_extent(struct btrfs_trans_handle *trans, space_info = __find_space_info(root->fs_info, data); if (!space_info) { - printk(KERN_ERR "No space info for %d\n", data); + printk(KERN_ERR "No space info for %llu\n", data); return -ENOSPC; }