Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp481512pxb; Thu, 7 Apr 2022 10:22:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXPNn6V/Zh8sOwCh3p0Hk7+N18kWF8cOaOsQr6zSfS4Wh8JKDaPEX2kzowqbKj5pjAoNtN X-Received: by 2002:a05:6402:42d4:b0:416:5cac:a9a0 with SMTP id i20-20020a05640242d400b004165caca9a0mr15626694edc.86.1649352158982; Thu, 07 Apr 2022 10:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649352158; cv=none; d=google.com; s=arc-20160816; b=o76VpkqLwrE8xsyDKrDL7uVarxOsuvmBRaKznxZiEQkPegc9xu56sUJcUBrtLNE4OY fPYdMZlSFxP0n2d+QYAlgU7qHTHXEo4xR6afd7HK317Z/zu6yrsY13DuYhNpsV04LX/m jq+4l2IIbGehJBzcq9cqFR4Wz7EKPySzVUzAc9mVcayb2tR7Zbwm2Vz/V1UziOsYheNE /QgzbEbx6QZTpsPql9msWzjzlo4HpqfP2ubiSDsGt5ZsaVLpqltS+iOMagfy+VT7y4UA rN32XWNAcDUAW4sC9DtG24af7VlV4kWWtuv5yi8Jf44rKspvIx7erxaPQ8QpqnyvXyEL WmOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=zPq01JLA6dLoXnFchjjFxJhIcKHBhEdkrZLnR4TbLUY=; b=E8IiKLYN7DkgOFFHhtZdnA3ivEDPSTADVrLqXnC3Sk7njRzadbPi1xUb0XAmUg75AM KzzeEcu7WgIE4fSnnbnitSG6YaZdv7QhURWdTWM1irXhwKzlvq9WgVrSjzTt/dBZeitK N2Z2g8kyZzYKBZcPh1gPgAjVNBX05Ld3FlYLGtnNE2Z7aCmKlv/kqIUCTpx/IQ2+g48G SZwZXt9ERd1H7xF5CvW6NzgvKPW+tly4Xj9p7RWTWuDUJD+ltxjFsqnaYEEi3lEmrzYN gAL5A8s5P6en9jEypTa6LnY0V8yZJLHmAouweFVq6XRcvEaIfRKl9MYSJmDueAfUwWY1 Nk7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=arXCGHub; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j22-20020a50ed16000000b00418c2b5bd65si14755373eds.71.2022.04.07.10.22.06; Thu, 07 Apr 2022 10:22:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@suse.cz header.s=susede2_rsa header.b=arXCGHub; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344912AbiDGPds (ORCPT + 99 others); Thu, 7 Apr 2022 11:33:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345006AbiDGPci (ORCPT ); Thu, 7 Apr 2022 11:32:38 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34D78C36; Thu, 7 Apr 2022 08:30:38 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id E56341F85A; Thu, 7 Apr 2022 15:30:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1649345436; h=from:from:reply-to:reply-to: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=zPq01JLA6dLoXnFchjjFxJhIcKHBhEdkrZLnR4TbLUY=; b=arXCGHubFNDMJivA50IVAh5E18SENgaJ+8psB29O+dYSp9GznJDHN9eBNpNqVEEypC+xPt YsOhdRjVTg1mFsMpWqZ4oNaVAGZnjLyClojrRdjsUuitokjLJy7oqe8RxGnlNpP0HUVyi6 8uSBZYdSoqUowgEJK8P6YGm7aUVWSbo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1649345436; h=from:from:reply-to:reply-to: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=zPq01JLA6dLoXnFchjjFxJhIcKHBhEdkrZLnR4TbLUY=; b=+RoHDuxhi8eXdx1m79jW3LC9fhbmevwd72sFBk44Osas+gmEsPN5qSbgbwIpqCBgrNluyA EXeawVVGeX85rgBw== Received: from ds.suse.cz (ds.suse.cz [10.100.12.205]) by relay2.suse.de (Postfix) with ESMTP id AE7A3A3B94; Thu, 7 Apr 2022 15:30:36 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 5C928DA80E; Thu, 7 Apr 2022 17:26:34 +0200 (CEST) Date: Thu, 7 Apr 2022 17:26:34 +0200 From: David Sterba To: Christoph Hellwig Cc: Jens Axboe , dm-devel@redhat.com, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-um@lists.infradead.org, linux-block@vger.kernel.org, drbd-dev@lists.linbit.com, nbd@other.debian.org, ceph-devel@vger.kernel.org, virtualization@lists.linux-foundation.org, xen-devel@lists.xenproject.org, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, linux-nvme@lists.infradead.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, jfs-discussion@lists.sourceforge.net, linux-nilfs@vger.kernel.org, ntfs3@lists.linux.dev, ocfs2-devel@oss.oracle.com, linux-mm@kvack.org Subject: Re: [PATCH 24/27] block: add a bdev_discard_granularity helper Message-ID: <20220407152634.GL15609@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Christoph Hellwig , Jens Axboe , dm-devel@redhat.com, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-um@lists.infradead.org, linux-block@vger.kernel.org, drbd-dev@lists.linbit.com, nbd@other.debian.org, ceph-devel@vger.kernel.org, virtualization@lists.linux-foundation.org, xen-devel@lists.xenproject.org, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, linux-nvme@lists.infradead.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, jfs-discussion@lists.sourceforge.net, linux-nilfs@vger.kernel.org, ntfs3@lists.linux.dev, ocfs2-devel@oss.oracle.com, linux-mm@kvack.org References: <20220406060516.409838-1-hch@lst.de> <20220406060516.409838-25-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220406060516.409838-25-hch@lst.de> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-ext4@vger.kernel.org On Wed, Apr 06, 2022 at 08:05:13AM +0200, Christoph Hellwig wrote: > Abstract away implementation details from file systems by providing a > block_device based helper to retreive the discard granularity. > > Signed-off-by: Christoph Hellwig > --- > block/blk-lib.c | 5 ++--- > drivers/block/drbd/drbd_nl.c | 9 +++++---- > drivers/block/drbd/drbd_receiver.c | 3 +-- > drivers/block/loop.c | 2 +- > drivers/target/target_core_device.c | 3 +-- For > fs/btrfs/ioctl.c | 12 ++++-------- Acked-by: David Sterba