From patchwork Fri Jan 28 01:01:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goldwyn Rodriues X-Patchwork-Id: 513511 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 p0S11x02012160 for ; Fri, 28 Jan 2011 01:02:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752762Ab1A1BBz (ORCPT ); Thu, 27 Jan 2011 20:01:55 -0500 Received: from mail-wy0-f174.google.com ([74.125.82.174]:61888 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752306Ab1A1BBz (ORCPT ); Thu, 27 Jan 2011 20:01:55 -0500 Received: by wyb28 with SMTP id 28so2713716wyb.19 for ; Thu, 27 Jan 2011 17:01:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=yA4RAzHkcC0Y7g/wH5fkYqvBRGqyOv7f3U0erdBeno0=; b=U8m0FpEsc7FPbks5N1mCEpsuBY+ttiX3UaeIN5cBxUiU+iSkOAMmnPmAOcvN7WJTZY TvyKXWuFbn+ypPJ8iuL0i7uVe+LtWlrqgPCCwiolFS9Ju0gPsJTuUidjg7Zw+2EzUGIW jFw4rtORowB/VMNdC22c0JkjLYxZHu71K39qc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=HJyp+9sriQ6DlB8HZvJ/GN+FtzgNmsJGDNO7cNt7LraYC2QO0gJ72EEJafnZnZcoqV bJgBu51qt4moHYXQspjTjiALFAS3xgSgzFGN2SGXEYztY/C1RtjuAvXC8k8IWOhk2AKS eblFA+gR/EkLZVyMZ8cipp1ABjY0wjRsJfUi4= MIME-Version: 1.0 Received: by 10.216.19.133 with SMTP id n5mr6941083wen.83.1296176513433; Thu, 27 Jan 2011 17:01:53 -0800 (PST) Received: by 10.216.2.5 with HTTP; Thu, 27 Jan 2011 17:01:53 -0800 (PST) Date: Thu, 27 Jan 2011 19:01:53 -0600 Message-ID: Subject: [PATCH] ctree code cleanups From: Goldwyn Rodrigues To: linux-btrfs@vger.kernel.org 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]); Fri, 28 Jan 2011 01:02:34 +0000 (UTC) diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 9ac1715..69f71e8 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -928,7 +928,7 @@ static noinline int generic_bin_search(struct extent_buffer *eb, * simple bin_search frontend that does the right thing for * leaves vs nodes */ -static int bin_search(struct extent_buffer *eb, struct btrfs_key *key, +int btrfs_bin_search(struct extent_buffer *eb, struct btrfs_key *key, int level, int *slot) {