From patchwork Fri Dec 15 03:47:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10113739 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D7A8B60224 for ; Fri, 15 Dec 2017 03:54:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2E3E295B1 for ; Fri, 15 Dec 2017 03:54:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B7D97295DC; Fri, 15 Dec 2017 03:54:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B1D0295B1 for ; Fri, 15 Dec 2017 03:54:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754856AbdLODyk (ORCPT ); Thu, 14 Dec 2017 22:54:40 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:57184 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754766AbdLODyk (ORCPT ); Thu, 14 Dec 2017 22:54:40 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.21/8.16.0.21) with SMTP id vBF3qD2V185950 for ; Fri, 15 Dec 2017 03:54:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references; s=corp-2017-10-26; bh=/jdFyyPV7A+Ey3YuBJ/CHznRkZsq02NIVdKUZ801Bk8=; b=hfin6AxPSxfV/D2rH/hHGKYpvB5x6IaAHW6XJ2y9hf/OPWC5n9uZro9PpJsbbT6rtLCP sdu3GX2OckPLn/y6Db1UIatjFuZb9FUzynnCPcO2LQol9S28ncctkO9b9vCOeR8lPPED 802HzOLg1cEE+wgHATUUGFnuO59y1AWO8MjJ2XHMCPdvkI3VJ8+LVXA6TGsruDnbyMcS hW5Cgyb4lqkJQG38ofa+x5k1SFlXR1cA/VjwPvrAsDyRs25GH9ytemmWvbFaa5sQT8xN heAs+Sp3imTlaMDkVySeC/c6Xn6SJQxx/hX+HLdcp8w/JSLeHKp0IpzW6gaVEwTfArEa vA== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2ev6fp0268-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 15 Dec 2017 03:54:39 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vBF3lAvB031510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 15 Dec 2017 03:47:10 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vBF3lAwC024168 for ; Fri, 15 Dec 2017 03:47:10 GMT Received: from tp.sg.oracle.com (/10.186.50.132) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 14 Dec 2017 19:47:10 -0800 From: Anand Jain To: linux-btrfs@vger.kernel.org Subject: [PATCH 2/6] btrfs: no need to check for btrfs_fs_devices::seeding Date: Fri, 15 Dec 2017 11:47:35 +0800 Message-Id: <20171215034739.26090-3-anand.jain@oracle.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171215034739.26090-1-anand.jain@oracle.com> References: <20171215034739.26090-1-anand.jain@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8745 signatures=668648 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=832 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712150051 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There is no need to check for btrfs_fs_devices::seeding when we have checked for btrfs_fs_devices::opened, because we can't sprout without its seed FS being opened. Signed-off-by: Anand Jain --- fs/btrfs/volumes.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 6317a3561ae1..0e89409112d5 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -621,8 +621,6 @@ static void btrfs_free_stale_device(struct btrfs_device *cur_dev) if (fs_devs->opened) continue; - if (fs_devs->seeding) - continue; list_for_each_entry(dev, &fs_devs->devices, dev_list) {