Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8383800rwr; Wed, 10 May 2023 23:57:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6TNPbus2YNv7L7HvkEMCMuGoABDB7DTlcZDp1D8YRU7t6zN8r6qdQ2+kJRfh6d+t4cq+m4 X-Received: by 2002:a05:6a20:432b:b0:ff:c184:7c76 with SMTP id h43-20020a056a20432b00b000ffc1847c76mr18949824pzk.24.1683788272783; Wed, 10 May 2023 23:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683788272; cv=none; d=google.com; s=arc-20160816; b=vE542P2PHCuDG6XM0ZVbDqdUrpOvfdJbdVrj20qdwgOWfGp10PPHZT26pH4AoTNe3c 3lUNK05d2WerVXLmZf8ZJWnbgepcl7stM/oyd5+JSh0pCUEPrlXvNge/pshFIX0Q+a/0 tjjKyItu+ZFaMDb89iQjJv/n8BudOKFnCxCBOCoKiWR9UCysRuM8wJuUA9qdikxIXMcT /cM3WebcwUSYx8C+UJ5uxishTv6EJCD78zHf01wR01Z+wIndFgABel5LTWkI0++x1arW yk9HpJuvZqH8igM47qVi4kse7Nxf1AA/qcXE/p18WpbYW4gBCm/UJ5MYa/2ARsmPa6iq hTQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=uRe1w5FWeqoWKmR0bHUIMrdBbrMcG1q+nVCKm02YZco=; b=pw9+fb+y/PeOQhZndHcUT7mJXzozGCJ0GgUwKzxJYGaI+l75sIMWB6t5yxiVfhNmi8 d+kMXFd3r4Lg283o7yJoCKjv7VQWeApLrhi5PZAnakO9egRt0Vrq6Afuy6vd9VMWuQCh Z+ELx4KoHvwDGmwUi/5WVMHHIzkby/6vtmheSTyJTIOLLgE1Q7bPQ08HY62s5LcWKMz4 kAmTT5HsF0VCGXGSqeBqy+6S5TfZJKwdttrKcBRFXFnv5b+kzM4HmZkuVThW/HLHGhPp 4alEKe7/j0qgkG8A+7Y+smd+X1E8ljoUoTtY2SboU3yHDaeHGXtdL2DnhEXewaURTTj/ pNIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Hv1WB+7E; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a28-20020a637f1c000000b0052cad19f77dsi6126416pgd.0.2023.05.10.23.57.40; Wed, 10 May 2023 23:57:52 -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=@gmail.com header.s=20221208 header.b=Hv1WB+7E; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237169AbjEKGw5 (ORCPT + 99 others); Thu, 11 May 2023 02:52:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjEKGwx (ORCPT ); Thu, 11 May 2023 02:52:53 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AEAB4EF7; Wed, 10 May 2023 23:52:52 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-50bd37ca954so76177351a12.0; Wed, 10 May 2023 23:52:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683787971; x=1686379971; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uRe1w5FWeqoWKmR0bHUIMrdBbrMcG1q+nVCKm02YZco=; b=Hv1WB+7EyzwgPCJZDduY7FX8yxPzQkS4A8oTWwnakgoABcYcR6I6e0b84zScp95khk fKHtuNDTMSjY8prA5qFKatasF2JLd/VSxeIBScEqCNKOFMyoZ3GIfnEu9/1CMg/0PQfC NjJpZKeJSZEGVdzGoCKvKS3CS4uj+W4ZWi5TwdS2OcS2JOs/4+l8FEzHjnTUO7tmp0XB WALjQTj7VcDq2x5KPJxNrYxGOV1gHwJGcwELo/oiMcSDTtFPpikACwCtXXCt3BmJknmu KhvbUpk5drWkq4uaqPLy18fjTNBnb6stCMa+w5r+StWCtSeKf56aHidtR6YES/Adxow3 izEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683787971; x=1686379971; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uRe1w5FWeqoWKmR0bHUIMrdBbrMcG1q+nVCKm02YZco=; b=lYlUWv55ytpNPCMxvyZqU6QvZBsiFfP8371lwGWcBV5c7YXZvkyAl9+WuHThd5ztHV 7hECtO7wVtULvzbO72D6pqE4Uj6hbUBXDijNCDv79+cvuWYLKdOba2RLRczYiWg9qZ1u yRb/6naJjW4awORHmdlaDkLNIuc5FU40/USYs1LHj8BEj1xYMUC/nC710aWimZ5dE/qB FMeKbMpqbwt//FyvnRz9paT2/1zoo5S4bym2ouNgN8T+gSd7Ju01/r3tgQAbuK8SeCdM Y2qyZgbyScapsw90r1rMNyRP2HKkWh3ALbGoaLrDqHul4/AR7pmDEno7zFLLr7tLfqdd rgqw== X-Gm-Message-State: AC+VfDxgLyp9f10Jd1mrGV0OXxrzZHrLKoKj03KdPKdVGkFpYI9TKqM1 lLKxSa2cvMW/hYRxDIZ5T53yXE/6khhuideXC28= X-Received: by 2002:a17:907:1c8c:b0:965:cac1:53ad with SMTP id nb12-20020a1709071c8c00b00965cac153admr20395001ejc.8.1683787968886; Wed, 10 May 2023 23:52:48 -0700 (PDT) MIME-Version: 1.0 References: <20230503090708.2524310-1-nmi@metaspace.dk> <20230503090708.2524310-4-nmi@metaspace.dk> In-Reply-To: From: =?UTF-8?Q?Sergio_Gonz=C3=A1lez_Collado?= Date: Thu, 11 May 2023 08:52:12 +0200 Message-ID: Subject: Re: [RFC PATCH 03/11] rust: block: introduce `kernel::block::mq` module To: Benno Lossin Cc: Andreas Hindborg , Jens Axboe , Christoph Hellwig , Keith Busch , Damien Le Moal , Hannes Reinecke , lsf-pc@lists.linux-foundation.org, rust-for-linux@vger.kernel.org, linux-block@vger.kernel.org, Andreas Hindborg , Matthew Wilcox , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , linux-kernel@vger.kernel.org, gost.dev@samsung.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 + /// Call to tell the block layer the capcacity of the device + pub fn set_capacity(&self, sectors: u64) { + unsafe { bindings::set_capacity(self.gendisk, sectors) }; + } Nit in the comment: capcacity -> capacity Cheers, Sergio