From patchwork Mon Dec 7 01:35:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Dongyang X-Patchwork-Id: 65381 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB71ZDHr012594 for ; Mon, 7 Dec 2009 01:35:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758371AbZLGBfE (ORCPT ); Sun, 6 Dec 2009 20:35:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758284AbZLGBfE (ORCPT ); Sun, 6 Dec 2009 20:35:04 -0500 Received: from mail-yx0-f187.google.com ([209.85.210.187]:45708 "EHLO mail-yx0-f187.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758371AbZLGBfD (ORCPT ); Sun, 6 Dec 2009 20:35:03 -0500 Received: by yxe17 with SMTP id 17so3509373yxe.33 for ; Sun, 06 Dec 2009 17:35:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:subject:cc:from:date :mime-version:content-type:content-transfer-encoding:message-id; bh=q5/toTAlzKROrrvQnxZ5KSwtq0l1AgMKfBrlla53kdI=; b=VNT4f+XVKcYGhLJ/tll32KCXdw5icvpR7uLjI3k6hISqHlvGEoxEZbzumgEg0vLNy9 vcYfgGWLkdmzjG8MrBjjBbb0mAJ//V+/NaTe3Z9LTO4LiRPkxgp7JaSuC92hEWBVL2/a sVXfl3VAOABnDRpdt/k9hirr7CFTnjCf3SQjw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:cc:from:date:mime-version:content-type :content-transfer-encoding:message-id; b=hBajIitsaBIgRQQJ0B2B7RD+vA5ZAqRn/45oarCOWqLOZLR6lk2C5O74D2XvW5g4Wu rrHd7FPinvY2rQ3eYGYprJ2Paqcrk1r0VAX8++/LfW17YqBF0CdSlU+gZbpOa/4qUNzg c5tvwqtys7g0GCsqGsetx5ecGJSLT+uyDbgz4= Received: by 10.150.127.10 with SMTP id z10mr10108470ybc.276.1260149708740; Sun, 06 Dec 2009 17:35:08 -0800 (PST) Received: from linux-b8pe.localnet ([222.126.194.154]) by mx.google.com with ESMTPS id 4sm1845707ywd.14.2009.12.06.17.35.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 06 Dec 2009 17:35:08 -0800 (PST) To: chris.mason@oracle.com Subject: [PATCH] Btrfs: fix comipler warning with tree_search Cc: linux-btrfs@vger.kernel.org From: Li Dongyang Date: Mon, 7 Dec 2009 09:35:06 +0800 MIME-Version: 1.0 Message-Id: <200912070935.06900.jerry87905@gmail.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c index ab21c29..8877fa0 100644 --- a/fs/btrfs/ordered-data.c +++ b/fs/btrfs/ordered-data.c @@ -133,7 +133,7 @@ static inline struct rb_node *tree_search(struct btrfs_ordered_inode_tree *tree, u64 file_offset) { struct rb_root *root = &tree->tree; - struct rb_node *prev; + struct rb_node *prev = NULL; struct rb_node *ret; struct btrfs_ordered_extent *entry;