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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 121DDC4167E for ; Fri, 15 Oct 2021 16:58:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EEE2D611C1 for ; Fri, 15 Oct 2021 16:58:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241865AbhJORAS (ORCPT ); Fri, 15 Oct 2021 13:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237693AbhJORAP (ORCPT ); Fri, 15 Oct 2021 13:00:15 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61EEDC06176D for ; Fri, 15 Oct 2021 09:58:08 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id 187so8847210pfc.10 for ; Fri, 15 Oct 2021 09:58:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=D4ik1Lt2fUu7rVQyF8CllyYkKQv1Uz9xzDA6N8pwEt0=; b=Wa0EACpWQ8IomuSobKiAJDXNIo9H/HSTHk3bhesUYAYHCsUAKK+Bjrkw13ye1TxZcf TuQa8RCxeCC8IVmjTZdx5iQYLmOHoIRbNEFY9PFnqm6LcjTjI/8URYdBHdOJCis8Hcgz 7OkB4Z6yrhdMDXf4pPYVZP18IZMykjhm0o16E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=D4ik1Lt2fUu7rVQyF8CllyYkKQv1Uz9xzDA6N8pwEt0=; b=tLp6pLaU2sGfIErtGsPz1eVKU1jsQ6hpUbKgnO/NGjivJC2kb/2stmxLeJhfn76Q5l ClZNZTInFVhy4jxpb1oMANf/Q+73BR90WpBnJygfWgEo1cmhjMPadNKqJjnzRPnsJTa2 /tY4V6BMD8QAcCD9Sz+tBWFxVRv4bPlCVCZTNflViZuK2y/b2rUQp5z6ph6nrSwwCuj5 iF0Puy7u9y20FCGNzm0BnFbnl8OkdbvDa9a0eGLWG8oJ3lhjxgR3M3R1D2FnR72uQyT9 00OEH9VWlXmML0rwPiewDpurCsItlG27htInMtElOlV6XhPYx3m9zC2sEz+qIgrwZRu/ xiig== X-Gm-Message-State: AOAM531bmFPRxpd5J6+k+PU3Z61vizYACiiVhm9mIgRRbvLJ9u4oJ769 rowPtEVtEdtZkTSgxCrTp6DyUw== X-Google-Smtp-Source: ABdhPJwjs+d5iHomMRfB84u/9uN/BXfrv3rJikQOTGFeQP4iBMjOf7nvTwY+G4DJFOV8bNrfnz+CuA== X-Received: by 2002:a63:4766:: with SMTP id w38mr10056849pgk.104.1634317087874; Fri, 15 Oct 2021 09:58:07 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id e1sm5367341pgi.43.2021.10.15.09.58.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 09:58:07 -0700 (PDT) Date: Fri, 15 Oct 2021 09:58:06 -0700 From: Kees Cook To: Christoph Hellwig Cc: Jens Axboe , Coly Li , Mike Snitzer , Song Liu , David Sterba , Josef Bacik , Theodore Ts'o , OGAWA Hirofumi , Dave Kleikamp , Ryusuke Konishi , Anton Altaparmakov , Konstantin Komarov , Phillip Lougher , Jan Kara , linux-block@vger.kernel.org, dm-devel@redhat.com, drbd-dev@lists.linbit.com, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, linux-nvme@lists.infradead.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, jfs-discussion@lists.sourceforge.net, linux-nfs@vger.kernel.org, linux-nilfs@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, ntfs3@lists.linux.dev, reiserfs-devel@vger.kernel.org Subject: Re: [PATCH 25/30] block: add a sb_bdev_nr_blocks helper Message-ID: <202110150957.44EE74B5@keescook> References: <20211015132643.1621913-1-hch@lst.de> <20211015132643.1621913-26-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211015132643.1621913-26-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org On Fri, Oct 15, 2021 at 03:26:38PM +0200, Christoph Hellwig wrote: > Add a helper to return the size of sb->s_bdev in sb->s_blocksize_bits > based unites. Note that SECTOR_SHIFT has to be open coded due to > include dependency issues for now, but I have a plan to sort that out > eventually. > > Signed-off-by: Christoph Hellwig You can adjust this changelog to remove the note about SECTOR_SHIFT now. :) Reviewed-by: Kees Cook -- Kees Cook