From patchwork Mon Mar 28 13:43:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 668401 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 p2SDsSgK020426 for ; Mon, 28 Mar 2011 13:54:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754160Ab1C1NyX (ORCPT ); Mon, 28 Mar 2011 09:54:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49734 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753475Ab1C1NyX (ORCPT ); Mon, 28 Mar 2011 09:54:23 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p2SDsKTO023247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 28 Mar 2011 09:54:20 -0400 Received: from test1244.test.redhat.com (test1244.test.redhat.com [10.10.10.244]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p2SDsKWS018019; Mon, 28 Mar 2011 09:54:20 -0400 From: Josef Bacik To: chris.mason@oracle.com, linux-btrfs@vger.kernel.org Subject: [PATCH] Btrfs: don't warn in btrfs_add_orphan Date: Mon, 28 Mar 2011 09:43:25 -0400 Message-Id: <1301319805-24556-1-git-send-email-josef@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 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]); Mon, 28 Mar 2011 13:54:29 +0000 (UTC) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index e010000..160d2a5 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2212,8 +2212,6 @@ int btrfs_orphan_add(struct btrfs_trans_handle *trans, struct inode *inode) insert = 1; #endif insert = 1; - } else { - WARN_ON(!BTRFS_I(inode)->orphan_meta_reserved); } if (!BTRFS_I(inode)->orphan_meta_reserved) {