Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1250486pxb; Fri, 21 Jan 2022 13:22:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9f+dD+YLBG43WmCpykVQl4ZAzykB3zBTR/LXJhrDTNag1IHgbvseVo4EJJPuf7fxXiYTX X-Received: by 2002:a17:902:d492:b0:14a:f3ce:37a8 with SMTP id c18-20020a170902d49200b0014af3ce37a8mr5338036plg.34.1642800160396; Fri, 21 Jan 2022 13:22:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642800160; cv=none; d=google.com; s=arc-20160816; b=QxfgL+Nu3mETxnX9kToU60W0aBeYCewuWYAp0o/y9xxYf+AIM5DISktBHi2zHUr4CU ucyylDWO9bHgcuB79rgkdbMr5vYi3yVCLOvzs3DG7O51b19oy3B5Pf/0UVpkWXsu4QLp mxKeU1BZt1cUPHTQVPn/49szkviPJHbcrbZB7NbfCBh3oigY6igHPLyzNp64fn8O+L9y LyGjEuOPkD5Q1gzOcE43Z7LSp1uq4a0qUETYw4OI6yRMSpe+LnauaiswVQ3JUQlUH8rr 2R9ewvpeD7LhKetOL+vUOG1SabESlbBXPp5Gsd/mGbCi8Fwh0J5Ps66WuWpqHt/ODIUB neYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=p3BqDV1ig3o00bV+/31wlTcHkbP1cECkqVf9yFw8L1Q=; b=lpwmQG6yC6UXZ+ETqtG7H6Xc44CI8wyY3JREBU7alRzpL90CxF+cHUJ8q6jB7oRKAK kkLv/7nKs9wMXSoRjxSndV3hUjREMvFAgGyEhFBcD4iAta9rgxAaTbrv4O3SCZk54aIR aALTXlFcW2epcZeSA9QTzaq3/95h49bR2aUpv/OWwDgOHtCBQR3CYbr7moIVY8DsG93r wuJAJkpXvNDitxkio8qTzd9Kukc9IyTJVa9brgYFNdYD9sVZbHCSmbec48SiXSLa2k59 Ei67D2YKfoeaFi6cB0T+5lmYTSRK3CUpayIcv+fyyJZA5aaY1c4Cs5uGoBDtoXo12/no 5+mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=01SrN6rM; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=QlcXv1R6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si8279783pls.599.2022.01.21.13.22.27; Fri, 21 Jan 2022 13:22:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=01SrN6rM; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=QlcXv1R6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230157AbiATLCv (ORCPT + 99 others); Thu, 20 Jan 2022 06:02:51 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:57686 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbiATLCu (ORCPT ); Thu, 20 Jan 2022 06:02:50 -0500 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 8A89C1F766; Thu, 20 Jan 2022 11:02:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1642676569; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p3BqDV1ig3o00bV+/31wlTcHkbP1cECkqVf9yFw8L1Q=; b=01SrN6rMZ1shkMT4kYWA9HnqBDMzl6gT93XmfiFF1n1HO3dqQqp8mNa6fp9MKHCSLH9vkF UgVRXuuNIBCvWIXM3WamVb9ywMHjkDdKazvvnpHEhhph+MjqxSn6VJPaRGHCpijdcWUFZF XPI5BGPgzjJDtAOR6zaoDbJ5sHNuRx0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1642676569; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p3BqDV1ig3o00bV+/31wlTcHkbP1cECkqVf9yFw8L1Q=; b=QlcXv1R6f60jWk/EAYeSynTum2DIWp37sF0SfSTV7ST/H3UwA5k6aepXluNoR9Cv7i3lKk vfcQc75N5T2YqfCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 72B2B13E46; Thu, 20 Jan 2022 11:02:49 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id pfYIG1lB6WH8NwAAMHmgww (envelope-from ); Thu, 20 Jan 2022 11:02:49 +0000 Subject: Re: [PATCH 1/2] block: remove commented out code from diskstats_show To: Daniel Wagner , linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jens Axboe References: <20220120105248.117025-1-dwagner@suse.de> <20220120105248.117025-2-dwagner@suse.de> From: Hannes Reinecke Message-ID: <83b281e5-16c2-d659-172d-3a2c911c7ff0@suse.de> Date: Thu, 20 Jan 2022 12:02:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20220120105248.117025-2-dwagner@suse.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/20/22 11:52 AM, Daniel Wagner wrote: > The diskstats format is ABI, so we just can't add a new header. The > code snippet has been commented out since at least v2.6.12-rc2. > Remove it. > > Signed-off-by: Daniel Wagner > --- > block/genhd.c | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/block/genhd.c b/block/genhd.c > index 626c8406f21a..c9d4386dd177 100644 > --- a/block/genhd.c > +++ b/block/genhd.c > @@ -1162,14 +1162,6 @@ static int diskstats_show(struct seq_file *seqf, void *v) > struct disk_stats stat; > unsigned long idx; > > - /* > - if (&disk_to_dev(gp)->kobj.entry == block_class.devices.next) > - seq_puts(seqf, "major minor name" > - " rio rmerge rsect ruse wio wmerge " > - "wsect wuse running use aveq" > - "\n\n"); > - */ > - > rcu_read_lock(); > xa_for_each(&gp->part_tbl, idx, hd) { > if (bdev_is_partition(hd) && !bdev_nr_sectors(hd)) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Felix Imendörffer