From patchwork Tue Dec 30 14:57:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 5552651 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B1BA09F406 for ; Tue, 30 Dec 2014 14:57:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6D1E52010E for ; Tue, 30 Dec 2014 14:57:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8EBA12012E for ; Tue, 30 Dec 2014 14:57:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751933AbaL3O5q (ORCPT ); Tue, 30 Dec 2014 09:57:46 -0500 Received: from cantor2.suse.de ([195.135.220.15]:50400 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751807AbaL3O5p (ORCPT ); Tue, 30 Dec 2014 09:57:45 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id AED09ABFC for ; Tue, 30 Dec 2014 14:57:44 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 31E27DA88A; Tue, 30 Dec 2014 15:57:44 +0100 (CET) From: David Sterba To: linux-btrfs@vger.kernel.org Cc: David Sterba Subject: [PATCH 3/5] btrfs-progs: check, missing parens around compound block in find_normal_file_extent Date: Tue, 30 Dec 2014 15:57:44 +0100 Message-Id: <01a9f4308ba2625dbfb83e3fad2bcc6c2e512b9f.1419951036.git.dsterba@suse.cz> X-Mailer: git-send-email 2.1.3 In-Reply-To: References: 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Resolves-coverity-id: 1260248 Signed-off-by: David Sterba --- cmds-check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmds-check.c b/cmds-check.c index 71e4f4f3a13b..d2d218a88589 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -2160,9 +2160,10 @@ static int find_normal_file_extent(struct btrfs_root *root, u64 ino) fi = btrfs_item_ptr(path->nodes[0], path->slots[0], struct btrfs_file_extent_item); type = btrfs_file_extent_type(path->nodes[0], fi); - if (type != BTRFS_FILE_EXTENT_INLINE) + if (type != BTRFS_FILE_EXTENT_INLINE) { ret = 1; goto out; + } } out: btrfs_free_path(path);