Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp360238imw; Thu, 14 Jul 2022 02:44:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uHz0p1unZ2kncQw+LEdaF3zaRGfbdREWpve1ebHNqh4m0At9sKc10ycbgsC/QZATYfEBQe X-Received: by 2002:a05:6a00:2407:b0:52b:29dd:915 with SMTP id z7-20020a056a00240700b0052b29dd0915mr385803pfh.60.1657791876036; Thu, 14 Jul 2022 02:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657791876; cv=none; d=google.com; s=arc-20160816; b=q4DuDu6/ay2m2pmdFLUa8PAfF5n7f1TS2yqMMaOox8+xVZv3XHi5nsa9JqihuNCLNA MWvzhoKScn5mlZNy9q1uBHzktcX294c3JslmPak5CB5GDlES3UptcBDFXnxtdyoZdXXp 9XiBI8yqmcNyqx2H3JzgeC8f92UCqz6IRxXtCEabve21PtlpzfFRCr/Xnks/iXA1q+vk r9CkvkGx22PMyXOggXC6mtiv6z04WvCdRwvv/An53z7TFf+xpuORSEzAZzBYARvnS+Mz Up2WwZYbqHLbpXEhxQoL3JMxQKSryDe0PFjWW+IPtj7Cof20Qa+LWM70ms0/gtgrzUfK iYRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=GA4DEhoI7ZkzTIcyGZ40V3kS3IPUknJqOHK5aGierls=; b=J75JeKgmV+V8Z08UEy1RR5Wb9QwXp/1efD9gkRCEio/XZi++G9zUymjQYRwQQdhSaK Fzayax9uM8a903wKICJ4A6kgZIp/EFcYwFG77QKht/lqLXTAEz4E7mi7jY9a8EevJKPK xY0rTZQjHZ/C/NtI6wwVoDqwXf4ZCUUVBruY65398qOcbLFM3Zk0l1JpBeV9BWVQjXlO UtfPYPSZBH9K94RmpbTykauWR6OsbgEc1yb7s77+fnuMWHZ94qwJ6El8iNJw4YDK7k1g Z7SxgOvmSz/jT3b97L6dcFt4oQT4OmSRUiCtUivyvdbpgSY1tbhBcR9LDz0L1ZM0RZW2 sdhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f127-20020a625185000000b0052a53e97d54si1596554pfb.172.2022.07.14.02.44.23; Thu, 14 Jul 2022 02:44:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237371AbiGNIp5 (ORCPT + 99 others); Thu, 14 Jul 2022 04:45:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237536AbiGNIpg (ORCPT ); Thu, 14 Jul 2022 04:45:36 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D0F13DBF6 for ; Thu, 14 Jul 2022 01:45:31 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Lk7Mg4wzQzFq4B; Thu, 14 Jul 2022 16:44:31 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.58) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 14 Jul 2022 16:45:28 +0800 From: Xiu Jianfeng To: , , , , , , CC: Subject: [PATCH -next] writeback: Cleanup inode_to_wb_is_valid() Date: Thu, 14 Jul 2022 16:41:47 +0800 Message-ID: <20220714084147.140324-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.58] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500023.china.huawei.com (7.185.36.114) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org inode_to_wb_is_valid() is no longer used since commit fe55d563d417 ("remove inode_congested()"), remove it. Signed-off-by: Xiu Jianfeng --- include/linux/backing-dev.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index d452071db572..f9f14e385582 100644 --- a/include/linux/backing-dev.h +++ b/include/linux/backing-dev.h @@ -235,18 +235,6 @@ wb_get_create_current(struct backing_dev_info *bdi, gfp_t gfp) return wb; } -/** - * inode_to_wb_is_valid - test whether an inode has a wb associated - * @inode: inode of interest - * - * Returns %true if @inode has a wb associated. May be called without any - * locking. - */ -static inline bool inode_to_wb_is_valid(struct inode *inode) -{ - return inode->i_wb; -} - /** * inode_to_wb - determine the wb of an inode * @inode: inode of interest @@ -345,11 +333,6 @@ wb_get_create_current(struct backing_dev_info *bdi, gfp_t gfp) return &bdi->wb; } -static inline bool inode_to_wb_is_valid(struct inode *inode) -{ - return true; -} - static inline struct bdi_writeback *inode_to_wb(struct inode *inode) { return &inode_to_bdi(inode)->wb; -- 2.17.1