Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp119428lqj; Thu, 11 Apr 2024 11:28:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZ2eGCxx/eHubkDyOiT8ji3Go9hYSDcON0XIByBwX7nCiUoAtsx9a5bMawoFV5KFR2xWpIjX8ZG+IKheS/TE1D0X4PLy7qj9OzheS5AA== X-Google-Smtp-Source: AGHT+IHbgu6+Lfpgl/9MbnO5hIXVKSK0VQRC+EW4VzhCGMzeEK00NPU1934c6rMabNQHFu6WVnIJ X-Received: by 2002:a50:c31e:0:b0:56b:dce0:c795 with SMTP id a30-20020a50c31e000000b0056bdce0c795mr318199edb.4.1712860118827; Thu, 11 Apr 2024 11:28:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712860118; cv=pass; d=google.com; s=arc-20160816; b=jJGAJnMkxwccW1/fknmASK75ZLK+Mm28jxXzUDbaYN8BPMe89WyF3iwzrd/SCjRwKZ dXp+/S8/AL9OOtWaWsAuBpLJiNc3EIFtabW3HAUYKMAOOnVlR11I0UnSEUWVHUFCbCo3 g13IyQ2tYtBrkfyULN1IIpuPTLCKxz5L9kYNyUtTyQiv84xQ6OIsRw3XLausPf198iBe UmGSMF+gPgsX3HNXTUarKRyXr6jkUSwx1/TbENK4vjFwjL5k7IwDDqAzwbkRt3sZiOQn ID593YmAb2ei5Shc4SC31vrykGS/X9aU5+x0JmHwWfoxDHJiQsgVFaM4AoP5vExWLKHZ ll+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=V/TZdE1FK3O4qkESTbUB1nUL6z8CdzrLZmjris90VHw=; fh=lRoHO01WXmD+1Zfnj4BTlym0cFAChcwmtdI2OaHOwSY=; b=ZTCSIuy1Zm7eWtesByJpgSYZGfdTNl2OECr/S3qPv8BCC8/mBKZpiyp22QZrx1ng9E EmQJ0TpDI1gYKVVfDHLwnHmUhQQZjAG6GlKO4WSGHMg1yj4d7G8L3UjlMIplFUbXkF49 +0k26U6a57RE/wzFWxmYXXiIM2KVhmREQLPVXJujPnwjjqwfmcQRZ/9c05bEuiAco3Ez KvuEIAJAGbOhqmv1X6QT4AT20nwR+IQtcJLH3XMGYj1ku1GU/cJfJC6kNpHnGsuixECD TzZID4lrYD7eQN+9Q02KYizhfQXboW1ZH0uXTXEkMStzgEMo1BvKXJ3wvVFnfKPArVMY b4aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="aI/Km0ji"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-ext4+bounces-2040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b20-20020a056402279400b0056e44eb06eesi992646ede.159.2024.04.11.11.28.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 11:28:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="aI/Km0ji"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-ext4+bounces-2040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AD3A61F22B44 for ; Thu, 11 Apr 2024 18:28:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0309C381B9; Thu, 11 Apr 2024 17:49:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="aI/Km0ji" X-Original-To: linux-ext4@vger.kernel.org Received: from out-176.mta1.migadu.com (out-176.mta1.migadu.com [95.215.58.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D900413665C for ; Thu, 11 Apr 2024 17:49:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712857774; cv=none; b=ra2FQv0ulwtObthiWQZYI0vv7fDFKoilXaIYznx07oI0V/DFF4ljJen3u/Eq5rg+YfugzTjdGrICPEsB/YhepqJ1zWGmRG8lSTViUhsG71WULbk4uUJTuV5wjys3vGTLY7zaMVCpPfaQZ20ii8uHW5RqtZOP7Q+WMth58rSCk8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712857774; c=relaxed/simple; bh=JMTdAGD8MD/pbkdj+J+tnzBU2KPanJ0Go33kBW0D9C0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LRuOeTEZFBa/gzZ518NkRCatcoLe4zVR0w38YgcG4wEScdWN+NGOiDssKBZc9sD90V24FvYo7mMqdGE5p5BbNzdHqQKrk/e5FuAsf9E6SGxfY+WRd/2rEPg9z9kiUU2eWu8Z21g2aZ3omHCpoBXCcL2EoWVIYFh9XI9q03aN9/Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=aI/Km0ji; arc=none smtp.client-ip=95.215.58.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Thu, 11 Apr 2024 13:49:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1712857769; h=from:from:reply-to:subject:subject: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=V/TZdE1FK3O4qkESTbUB1nUL6z8CdzrLZmjris90VHw=; b=aI/Km0jiSMVL4A1tCs8hlsrV66vbuWxJKZ+EgkonCW2LmuJAGBaIivtgu4+3HhSKhbSBh3 uS3+3l/YqK0GsHToDiJSOy8jQgouByPKNokiyLYxRwngjkex1lryU/nDL4TDH7+GmcHLtc 35AcbG0Y+MpEd8VLadpzkGxeP5lZ1Bo= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Yu Kuai Cc: axboe@kernel.dk, roger.pau@citrix.com, colyli@suse.de, kent.overstreet@gmail.com, joern@lazybastard.org, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, sth@linux.ibm.com, hoeppner@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, jejb@linux.ibm.com, martin.petersen@oracle.com, clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, viro@zeniv.linux.org.uk, brauner@kernel.org, nico@fluxnic.net, xiang@kernel.org, chao@kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.com, konishi.ryusuke@gmail.com, willy@infradead.org, akpm@linux-foundation.org, hare@suse.de, p.raghav@samsung.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, linux-bcache@vger.kernel.org, linux-mtd@lists.infradead.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, linux-bcachefs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-ext4@vger.kernel.org, linux-nilfs@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com, yangerkun@huawei.com Subject: Re: [PATCH RFC v3 for-6.8/block 07/17] bcachefs: remove dead function bdev_sectors() Message-ID: <2pat6ombemqnq5wjl6eb4lbip2pfgg5tkubmbwqphvcvpdc6cu@poiexziaa2q4> References: <20231221085712.1766333-1-yukuai1@huaweicloud.com> <20231221085712.1766333-8-yukuai1@huaweicloud.com> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231221085712.1766333-8-yukuai1@huaweicloud.com> X-Migadu-Flow: FLOW_OUT On Thu, Dec 21, 2023 at 04:57:02PM +0800, Yu Kuai wrote: > From: Yu Kuai > > bdev_sectors() is not used hence remove it. > > Signed-off-by: Yu Kuai Acked-by: Kent Overstreet > --- > fs/bcachefs/util.h | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h > index 2984b57b2958..22a0acc1704f 100644 > --- a/fs/bcachefs/util.h > +++ b/fs/bcachefs/util.h > @@ -516,11 +516,6 @@ static inline unsigned fract_exp_two(unsigned x, unsigned fract_bits) > void bch2_bio_map(struct bio *bio, void *base, size_t); > int bch2_bio_alloc_pages(struct bio *, size_t, gfp_t); > > -static inline sector_t bdev_sectors(struct block_device *bdev) > -{ > - return bdev->bd_inode->i_size >> 9; > -} > - > #define closure_bio_submit(bio, cl) \ > do { \ > closure_get(cl); \ > -- > 2.39.2 >