Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2717408rwr; Fri, 21 Apr 2023 12:59:37 -0700 (PDT) X-Google-Smtp-Source: AKy350Yr18WPZ6wQsuYPSjp52NsWhAZ2JPQsbM7QBmEuBAm+YTM1750G0uPJ6C2ts7HM7IXVMa0I X-Received: by 2002:a05:6a00:4103:b0:634:c6b9:92e4 with SMTP id bu3-20020a056a00410300b00634c6b992e4mr7145665pfb.0.1682107176660; Fri, 21 Apr 2023 12:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682107176; cv=none; d=google.com; s=arc-20160816; b=RyZm2T7mEXodn1+NTUcequj+mTNfMhLWgCYDdDq26UQWxhXwZGHou31JGySyBUGIZV 3QZL/8gQwnfzG2CYB6Let2rXQhzyln0IPJ9ma8cSxUhMyJWzYYqYIYE/92m4/7X3gOu4 FcMOE+2A+llHOaekX1gCQiTJD5f40oQaOoYTlgA7fL65NSiB6o3+3tET4TPJQmW59JDM cKCRkQC4Bo5eFY+9W0fdW2ltC5apJDEb1zK+n0SzIOi09CsMGYYKXgtX3NKc9Lisbw2+ ThXfS5PCT43wbhiV0Rmy0TMMoGtaoHuLTE/d0uBVwnz9bxnIBe1C1z1dmW43tn9Oqw1R Fp4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=u68XQLIrnZKRacEesRmgMeebDfY2xepEp8VfzdXWDIU=; b=pWuRmrmL4U1puqwH6XB6WxGYN41g8W10p2XiiIz9o0xwOvukv5Uf0JOFIG9im5rDXZ 3K+LRkrU2DXW9N7jnKtgMYs5AbDPrcXeejaEwEWnedU6RVAqjlMhwAU5+2EMt/JdYFmf qa9oojEqO/AHWaqgxTskCitANbHsCAAuk7uQV7Gvkc8S0QaherhOHoJnvlWbCux1sL0h CU4Ot47siT29jmgE+zPFxNoFYyFu9eUN9TrQW94JUBihSupbQCKwI6CGA89uL/XngEfY cWYeuMHHkYnIm7tiTiFD/r5rXSU2zGfvdOn8FGQDUYsZHMt0B8yvZ6ahwncMe1jRVQZp TnIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=v2Yysw6q; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i71-20020a63874a000000b0052066a53691si1860672pge.495.2023.04.21.12.59.25; Fri, 21 Apr 2023 12:59:36 -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=@infradead.org header.s=bombadil.20210309 header.b=v2Yysw6q; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233523AbjDUT6Z (ORCPT + 99 others); Fri, 21 Apr 2023 15:58:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231396AbjDUT6X (ORCPT ); Fri, 21 Apr 2023 15:58:23 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DD33273C; Fri, 21 Apr 2023 12:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=u68XQLIrnZKRacEesRmgMeebDfY2xepEp8VfzdXWDIU=; b=v2Yysw6qnZCKZGHYViYMSlL9PX OuzBIdMXAZi9a0Aylm9+m6X0SUR9QfSRQWt6BR+i2NRETsZ6Q+SXuK9lQy5WU4zsg8hL/d+3/HxHP 7u16cxddAAH0Levxw7QkEhPJYgLzQoxh9mTY0sW8D3nWNOMD2kKhBNI1vNdffgVDXr/2T8c82Y5qU E9eADBnb7SD7yl0vil3K123jE0aHFhVSxq7uYbW8KiUJfJMdOCsVvAmqdVYeer9l8ep8otFOWRNnY KtLnYHU/vkUk7ZqjMNP+nGPPo4GBK2IqyC7H5LPrFjy8QpCc92ciVZUd47CkvDBUuKvVuqlD5AieX QRQ0Q9rQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1ppwtU-00BlaV-1S; Fri, 21 Apr 2023 19:58:08 +0000 From: Luis Chamberlain To: axboe@kernel.dk, agk@redhat.com, snitzer@kernel.org, philipp.reisner@linbit.com, lars.ellenberg@linbit.com, christoph.boehmwalder@linbit.com, hch@infradead.org, djwong@kernel.org, minchan@kernel.org, senozhatsky@chromium.org Cc: patches@lists.linux.dev, linux-block@vger.kernel.org, linux-mm@kvack.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, dm-devel@redhat.com, drbd-dev@lists.linbit.com, linux-kernel@vger.kernel.org, willy@infradead.org, hare@suse.de, p.raghav@samsung.com, da.gomez@samsung.com, kbusch@kernel.org, mcgrof@kernel.org Subject: [PATCH 0/5] block: simplify with PAGE_SECTORS_SHIFT Date: Fri, 21 Apr 2023 12:58:02 -0700 Message-Id: <20230421195807.2804512-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,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-kernel@vger.kernel.org A bit of block drivers have their own incantations with PAGE_SHIFT - SECTOR_SHIFT. Just simplfy and use PAGE_SECTORS_SHIFT all over. Based on linux-next next-20230421. Luis Chamberlain (5): dm integrity: simplify by using PAGE_SECTORS_SHIFT drbd: use PAGE_SECTORS_SHIFT and PAGE_SECTORS iomap: simplify iomap_init() with PAGE_SECTORS dm bufio: simplify by using PAGE_SECTORS_SHIFT zram: use generic PAGE_SECTORS and PAGE_SECTORS_SHIFT drivers/block/drbd/drbd_bitmap.c | 4 ++-- drivers/block/zram/zram_drv.c | 12 ++++++------ drivers/block/zram/zram_drv.h | 2 -- drivers/md/dm-bufio.c | 4 ++-- drivers/md/dm-integrity.c | 10 +++++----- fs/iomap/buffered-io.c | 2 +- 6 files changed, 16 insertions(+), 18 deletions(-) -- 2.39.2