Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2053631rwd; Fri, 26 May 2023 00:36:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6VQOgtQZf/nIXHc3Gt3EK4ebiVCpKkwXNQmISruxmxH6IfKrRSVI20202LtQXBGRvI8UmQ X-Received: by 2002:a05:6a21:6d9c:b0:f2:ba78:3d50 with SMTP id wl28-20020a056a216d9c00b000f2ba783d50mr1314774pzb.12.1685086605650; Fri, 26 May 2023 00:36:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685086605; cv=none; d=google.com; s=arc-20160816; b=q+ieAwIlCPODb1UdoNscSxbmv2h5Lq0U7EsXZ6Tj/pirTG9b9Fl2JkH1K79wsA34UC k4Jr4zT/g5MftRTRk+xfSMlANEBBZkVx6GkKjEnmO7Me/Vj+bCSlbyS1V5NZukYNeuQv /4oZ0jIdY93ljNNfEEsTV3iyOePwvd4ZDiMoUtDKPx5BQp3Up+OnMbYwmpY8fh/E6XTr mVRzIxvWyA42svZCdStzV3NkjErJxybS8q6TOqJXsyKW3kX9z8rtfuCFA3tzrpxTRlJz oQzlhLau01YzaE+vPQh2er8VW3Ljg41FmOVaA+MXrmagM0haKqtMKrVwHlFXmlaZ8/e2 fIJQ== 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=23YpyXCnG95trpP/pZ5n4GhJ2jHSbd6X9bDByt1pjCI=; b=wwdKY1a26Z+/xEaFNLMoF7EEoqZoKHH/butABm6rA1SQH1NxAZbrAWFRavfyXxVEUz /v8cNlkA3NCsY+6bZ/t5pt6Vn3gAS6W1lh9Z/A8EfSvNbQeoOhdd6v1uJG/lKE00Q06K 2wXbuMITHOWvtGwZnvdgbBzsOktisDaLsgItwbjGkr38pojnDqEIac0N6+PrzwqO4OUC 2z2XDhbeD1b0XUk08HNbVaVEJudHnMPE3ptZlW3a79DuFOl5OxS9odZilHZpX7n6GA+4 BhxECUPkW4KJxGo7zCoNSHdjpfOcACCk4i6cc6JJCJI9m33JKrVhzsh2yZVxahjznbuz 6ykw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1pmptwQd; 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 nm8-20020a17090b19c800b002504799a157si1402056pjb.134.2023.05.26.00.36.29; Fri, 26 May 2023 00:36:45 -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=1pmptwQd; 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 S242437AbjEZHdq (ORCPT + 99 others); Fri, 26 May 2023 03:33:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229681AbjEZHdn (ORCPT ); Fri, 26 May 2023 03:33:43 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12D84B6; Fri, 26 May 2023 00:33:42 -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: Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=23YpyXCnG95trpP/pZ5n4GhJ2jHSbd6X9bDByt1pjCI=; b=1pmptwQdQfDrJXHTJIIak+p56N nZDFIQCxxcIxw0zUKarHhboTE6oY7rvTOgGfiswmsjC5CWW8lOGwJ9B5AeQkCpBGux3R65tB+k27i P0vmdsjYL3A3dM9V9slp2BqgHODGy/QH4BFYSeTt8omfsUwrWvOq2scl47MGO3EOySrYqMO7TXK3f mcggnMJmh8lWXyude7lxcrYzLdmf6LD5lAWFgWWQ97kY0Fr+9zfUTGxbeAVryzFYAmYle936W9M7+ lbtmgWmxGlHTbwW0x4N0xCtJcJMISx+JewfMyrmz0ftBPLkT8DvX5h3pcFpy/B1olU2EFewhzzf1c At6yXbow==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q2RxA-001RdO-2w; Fri, 26 May 2023 07:33:36 +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, rohan.puri@samsung.com, rpuri.linux@gmail.com, kbusch@kernel.org, mcgrof@kernel.org Subject: [PATCH v2 0/5] block: simplify with PAGE_SECTORS_SHIFT Date: Fri, 26 May 2023 00:33:31 -0700 Message-Id: <20230526073336.344543-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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-20230525. Changes since v1: o keep iomap math visibly simple o Add tags for Reviews/acks o rebase onto next-20230525 Luis Chamberlain (5): block: annotate bdev_disk_changed() deprecation with a symbol namespace 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 block/partitions/core.c | 6 +----- drivers/block/drbd/drbd_bitmap.c | 4 ++-- drivers/block/loop.c | 2 ++ drivers/block/zram/zram_drv.c | 12 ++++++------ drivers/block/zram/zram_drv.h | 2 -- drivers/md/dm-bufio.c | 4 ++-- drivers/s390/block/dasd_genhd.c | 2 ++ fs/iomap/buffered-io.c | 2 +- 8 files changed, 16 insertions(+), 18 deletions(-) -- 2.39.2