Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp397788imw; Thu, 14 Jul 2022 03:35:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sp/7l15WKQluSqetvS/F/GgtsG2jMQBohQUy0NEkPVowIGrFJsZk0wqR2j2xjlyp5AMjIO X-Received: by 2002:a05:6402:42d5:b0:433:1727:b31c with SMTP id i21-20020a05640242d500b004331727b31cmr11332414edc.9.1657794909092; Thu, 14 Jul 2022 03:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657794909; cv=none; d=google.com; s=arc-20160816; b=uLRPFIkkX4pHBSKiaVb6E1Z5WL846EJXoAAECUZcX8jeD28w0A+7LMTDKGqY99fm8J Kfqx8QbQbtlsZ0V8pOh3d6CukSUUWrR1/mK0Pe7FPKObc+zKskgEBJQYO/CL90RVoL+x sG0+dw3AFRg7jThCJbVkxr1H1MOuN41W5eqK9VlLISLbKTtyt74o+idQ0+Jjcc2NrN01 QTdQODuBVbz9o8D5j8lcj09U6bNrjDN4mo+xH4+MgDBmmAEyxCNGF/3R9VbS+1oobu/6 TjqUh2UVmXR/roZA1kza6BdRTDG9ORNJpVXXaGkpC2OQPMl/zrtB+ytZGxHSj/hsmG3a qI7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=VX//aeJx0d8DjNGTlh0QNBOe0MYsqoOxy69wWtb3e9M=; b=qY3ZXyXhL1bNUuveF09Fakh/TypkJKxIv7XW2OcGpboTPHsatDCotev9pFrbrMK+cL Gpkcta9wFawbIWBYv2vLB9tdPZ0T6mPQnlUmxcRPW/I25i76eu2a6L07ihUfTwRbkhs5 c6mxQUF5CAJw5eWsJzVjj1F2CHDU0IprYqVfS1Kd+FmSio4a2ESkbuiOvMrpTiA/BCzl hsGo6YO8bezdiADFzGwb9HW41TXM5DX1eyw4QHueunA2IvqlUa6m7h+2OOZ1WNbafpnh HRiY25xPEU4PzmCC9y5cxJoF371Cs3py6HzH1CUI33phTrVyt8mw7Nn61WzQYGU9swg5 JnFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=d1TbqnON; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d25-20020a056402401900b00435c2425755si1676138eda.103.2022.07.14.03.34.43; Thu, 14 Jul 2022 03:35:09 -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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=d1TbqnON; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238135AbiGNKMP (ORCPT + 99 others); Thu, 14 Jul 2022 06:12:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231788AbiGNKMM (ORCPT ); Thu, 14 Jul 2022 06:12:12 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E21DE501B6 for ; Thu, 14 Jul 2022 03:12:10 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id A2DAD1FADB; Thu, 14 Jul 2022 10:12:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1657793529; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VX//aeJx0d8DjNGTlh0QNBOe0MYsqoOxy69wWtb3e9M=; b=d1TbqnONavoXAV+tHuJNtc4e7AI+JKCEkI2hF/0mzli5mKraIa/wpohStZnb7M+Tkvw1W9 RC8WaE/xoaqGxqGayGOr57l5qi55grod/Winys8Tt3j/ijbZfu5JPZOJwXmFtdnVGs3TPJ L2yyYkdoW9y8wZaG2McxKDABGjSZsgM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1657793529; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VX//aeJx0d8DjNGTlh0QNBOe0MYsqoOxy69wWtb3e9M=; b=ltZ5WX5tJrK4p15RQJaZKV+igpq6QBDp8kR/Yniy5+VRxSGC+1nmf6z5qVdemgr4WzRh5r ZFbwEHTIkqyEmTAw== Received: from quack3.suse.cz (unknown [10.100.224.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id DFC3A2C143; Thu, 14 Jul 2022 10:12:08 +0000 (UTC) Received: by quack3.suse.cz (Postfix, from userid 1000) id 5A116A05FB; Thu, 14 Jul 2022 12:12:07 +0200 (CEST) Date: Thu, 14 Jul 2022 12:12:07 +0200 From: Jan Kara To: Xiu Jianfeng Cc: akpm@linux-foundation.org, axboe@kernel.dk, neilb@suse.de, johannes.thumshirn@wdc.com, jack@suse.cz, willy@infradead.org, mgorman@techsingularity.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] writeback: Cleanup inode_to_wb_is_valid() Message-ID: <20220714101207.5qh3bfvadqrorerp@quack3> References: <20220714084147.140324-1-xiujianfeng@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220714084147.140324-1-xiujianfeng@huawei.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Thu 14-07-22 16:41:47, Xiu Jianfeng wrote: > inode_to_wb_is_valid() is no longer used since commit fe55d563d417 > ("remove inode_congested()"), remove it. > > Signed-off-by: Xiu Jianfeng Looks good! Feel free to add: Reviewed-by: Jan Kara Honza > --- > 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 > -- Jan Kara SUSE Labs, CR