[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200901155748.2884-1-hch@lst.de>
Date: Tue, 1 Sep 2020 17:57:39 +0200
From: Christoph Hellwig <hch@....de>
To: Jens Axboe <axboe@...nel.dk>
Cc: Josef Bacik <josef@...icpanda.com>,
Dan Williams <dan.j.williams@...el.com>, dm-devel@...hat.com,
"Martin K. Petersen" <martin.petersen@...cle.com>,
linux-kernel@...r.kernel.org, linux-block@...r.kernel.org,
nbd@...er.debian.org, ceph-devel@...r.kernel.org,
virtualization@...ts.linux-foundation.org,
linux-raid@...r.kernel.org, linux-nvdimm@...ts.01.org,
linux-nvme@...ts.infradead.org, linux-scsi@...r.kernel.org,
linux-fsdevel@...r.kernel.org
Subject: remove revalidate_disk()
Hi Jens,
this series removes the revalidate_disk() function, which has been a
really odd duck in the last years. The prime reason why most people
use it is because it propagates a size change from the gendisk to
the block_device structure. But it also calls into the rather ill
defined ->revalidate_disk method which is rather useless for the
callers. So this adds a new helper to just propagate the size, and
cleans up all kinds of mess around this area. Follow on patches
will eventuall kill of ->revalidate_disk entirely, but ther are a lot
more patches needed for that.
Diffstat:
Documentation/filesystems/locking.rst | 3 --
block/genhd.c | 9 ++----
drivers/block/nbd.c | 8 ++---
drivers/block/rbd.c | 2 -
drivers/block/rnbd/rnbd-clt.c | 10 +------
drivers/block/virtio_blk.c | 2 -
drivers/block/zram/zram_drv.c | 4 +-
drivers/md/dm-raid.c | 2 -
drivers/md/md-cluster.c | 6 ++--
drivers/md/md-linear.c | 2 -
drivers/md/md.c | 10 +++----
drivers/md/md.h | 2 -
drivers/nvdimm/blk.c | 3 --
drivers/nvdimm/btt.c | 3 --
drivers/nvdimm/bus.c | 9 ++----
drivers/nvdimm/nd.h | 2 -
drivers/nvdimm/pmem.c | 3 --
drivers/nvme/host/core.c | 16 +++++++----
drivers/scsi/sd.c | 6 ++--
fs/block_dev.c | 46 ++++++++++++++++------------------
include/linux/blk_types.h | 4 ++
include/linux/genhd.h | 6 ++--
22 files changed, 74 insertions(+), 84 deletions(-)
Powered by blists - more mailing lists