From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 389BBC433EF for ; Thu, 13 Jan 2022 07:50:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232802AbiAMHuK (ORCPT ); Thu, 13 Jan 2022 02:50:10 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:54944 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232788AbiAMHuK (ORCPT ); Thu, 13 Jan 2022 02:50:10 -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-out1.suse.de (Postfix) with ESMTPS id 07CCF21138; Thu, 13 Jan 2022 07:50:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1642060209; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KRthSpmC+u5/Ygg6fmWBsVIAwD/ZRCNHcSbjCvkxlqY=; b=SHhoWyT+wdIUxYsYDYGdAPXTFKM2lhgsi8s59BZQjDzqQGaaVXFwygf2DwpL3ifUbJLlzp wM4bMhQmwnbDKEQN23QNE5Lbewks02XWjJJ3SR/nHLKUwpi/dtBMagVUiJQhnNIo+SBpDB HlzU/Ma6gYIkzerH5fnIN3gh/RBnj6g= 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 D001713E34; Thu, 13 Jan 2022 07:50:08 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kBLPL7DZ32EGPAAAMHmgww (envelope-from ); Thu, 13 Jan 2022 07:50:08 +0000 Subject: Re: [PATCH v2] btrfs: cleanup finding rotating device To: Anand Jain , linux-btrfs@vger.kernel.org References: <1b19262076d9ae10d3ff81f73209249375ae25bc.1642048893.git.anand.jain@oracle.com> From: Nikolay Borisov Message-ID: <901bd04b-dd20-4efc-ee46-b86b96dc0705@suse.com> Date: Thu, 13 Jan 2022 09:50:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On 13.01.22 г. 9:48, Anand Jain wrote: > The pointer to struct request_queue is used only to get device type > rotating or the non-rotating. So use it directly. > > Signed-off-by: Anand Jain Reviewed-by: Nikolay Borisov