Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp396876ybg; Sun, 26 Jul 2020 08:04:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyB2hWgABdB1jLmbHpke2qtTOGoaVaMED3uAcQc2AejN5EBsEZfKlKibepWZgXa+LYA2ffx X-Received: by 2002:a17:906:dbcf:: with SMTP id yc15mr16724530ejb.222.1595775867953; Sun, 26 Jul 2020 08:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595775867; cv=none; d=google.com; s=arc-20160816; b=HtRkI1LAvFy1nNwNPPcp3oyPj/F88pv2/YxkL0XnUk7KsDJQZyLvJ4M1q9EMIZS/94 JZjAcE4Ud9kwvgpsYwpWgsxKtPHDjuAvQUU1uTUy0NwhgRCkSb4qLG+w+PcI3RLU0wog BjqsUvHcPLkuWCa/UK2HORr6m/UcKKtZZ0++hWl2dFyKpX9Y2whS6EPBo/o+VLiGGjEu LK5DrkRQtzEYrlqFvthr3pDpcT+ZMId56zxeArYDPe/lYVmjxaBNtf0MqRXMJ2F7t2Dw WxGxDSqTgI0yq/bjZ4fySw3MJCAJNDR0WOv/EiqIw7hAcadkeRL72nPrUSNB5xAThpMI I2MQ== 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=04VE7HPmOaEIcQmpVyHs48tjQkwZrMnq91D8chn1PWs=; b=ivzEIUiWB/IvxN/3hftUUHqfFVzbJx4g+EtlWZ6xTxtr2ByqD0xPXCnuYHoLaXQx1q 6nnq1W87Yb/Crpfe8cqogRYOl7Iffiy09KCvHsoLPUw6yHeCwuSeG38qiYfimY62UZb0 F9irYJhREpnccElK4tnZf8IODMV4ki/yjAEhN/YstEKlOC2hydsgrGGgZHLQoZuD865b OUOwdeG3S46SXjdmruXcDVXW5o0AAN6q1/RXIwpNBOZ6XC5DbSzsAMYNXB0ih7/ReBpT HMSvXMlGwjH7vyJWR3MvfwikRScU+I6FJJZ6FU3Geo64AlqwG8uJHmyataQMy0OSg+Ru TP7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=gcCyhFok; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si3986948ejc.595.2020.07.26.08.04.05; Sun, 26 Jul 2020 08:04:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=gcCyhFok; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726805AbgGZPDu (ORCPT + 99 others); Sun, 26 Jul 2020 11:03:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbgGZPDt (ORCPT ); Sun, 26 Jul 2020 11:03:49 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03342C0619D4; Sun, 26 Jul 2020 08:03:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=04VE7HPmOaEIcQmpVyHs48tjQkwZrMnq91D8chn1PWs=; b=gcCyhFoksQsWO0hBn75l9y3eqO rt7vUoyyQ9uPDBBFPq3XTHLMjW3AjTgCzBO7uTLnkzsJ1uYPw8ycXoDFcMhrQisMj+zvN/aTVihsw 1hgMXQRfoxvh+sEv+0wfcelGuxKwdudBPeZjx4VCI4fL6bZ24Sbo13xsIp0pR/acwSKk8xlQnswXm JdJUIHrcVzKgjZDPTlvdTExghgDiF+byhGFaaQSQrUkAUpH9N0viDO1N29oOCGjpZ/3uWPjZEvbeG sjHA/7Ii8CvICPtcoIBb9xkg9PYMmFVoSvqoE/fwHTcuKmUdlhJDbe8KAeCL+k+aVJFCbu+TASYWg RLrHiiIg==; Received: from [2001:4bb8:18c:2acc:2375:88ff:9f84:118d] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jziBb-0005eu-MR; Sun, 26 Jul 2020 15:03:36 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Song Liu , Hans de Goede , Richard Weinberger , Minchan Kim , linux-mtd@lists.infradead.org, dm-devel@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, drbd-dev@lists.linbit.com, linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org Subject: bdi cleanups v3 Date: Sun, 26 Jul 2020 17:03:19 +0200 Message-Id: <20200726150333.305527-1-hch@lst.de> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jens, this series contains a bunch of different BDI cleanups. The biggest item is to isolate block drivers from the BDI in preparation of changing the lifetime of the block device BDI in a follow up series. Changes since v2: - fix a rw_page return value check - fix up various changelogs Changes since v1: - rebased to the for-5.9/block-merge branch - explicitly set the readahead to 0 for ubifs, vboxsf and mtd - split the zram block_device operations - let rw_page users fall back to bios in swap_readpage Diffstat: block/blk-core.c | 2 block/blk-integrity.c | 4 block/blk-mq-debugfs.c | 1 block/blk-settings.c | 5 block/blk-sysfs.c | 282 ++++++++++-------------------------------- block/genhd.c | 13 + drivers/block/aoe/aoeblk.c | 2 drivers/block/brd.c | 1 drivers/block/drbd/drbd_nl.c | 18 -- drivers/block/drbd/drbd_req.c | 4 drivers/block/rbd.c | 2 drivers/block/zram/zram_drv.c | 19 +- drivers/md/bcache/super.c | 4 drivers/md/dm-table.c | 9 - drivers/md/raid0.c | 16 -- drivers/md/raid10.c | 46 ++---- drivers/md/raid5.c | 31 +--- drivers/mmc/core/queue.c | 3 drivers/mtd/mtdcore.c | 1 drivers/nvdimm/btt.c | 2 drivers/nvdimm/pmem.c | 1 drivers/nvme/host/core.c | 3 drivers/nvme/host/multipath.c | 10 - drivers/scsi/iscsi_tcp.c | 4 fs/9p/vfs_file.c | 2 fs/9p/vfs_super.c | 4 fs/afs/super.c | 1 fs/btrfs/disk-io.c | 2 fs/fs-writeback.c | 7 - fs/fuse/inode.c | 4 fs/namei.c | 4 fs/nfs/super.c | 9 - fs/super.c | 2 fs/ubifs/super.c | 1 fs/vboxsf/super.c | 1 include/linux/backing-dev.h | 78 +---------- include/linux/blkdev.h | 3 include/linux/drbd.h | 1 include/linux/fs.h | 2 mm/backing-dev.c | 12 - mm/filemap.c | 4 mm/memcontrol.c | 2 mm/memory-failure.c | 2 mm/migrate.c | 2 mm/mmap.c | 2 mm/page-writeback.c | 18 +- mm/page_io.c | 18 +- mm/swapfile.c | 4 48 files changed, 204 insertions(+), 464 deletions(-)