OSDN Git Service

block: move rescan_partitions to fs/block_dev.c
authorChristoph Hellwig <hch@lst.de>
Thu, 14 Nov 2019 14:34:34 +0000 (15:34 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Nov 2019 14:43:21 +0000 (07:43 -0700)
commita1548b674403c0de70cc29a1575689917ba60157
treebe1dcf032146bd80dde2c4fe8f380a6c76a31a0b
parent6917d0689993f46d97d40dd66c601d0fd5b1dbdd
block: move rescan_partitions to fs/block_dev.c

Large parts of rescan_partitions aren't about partitions, and
moving it to block_dev.c will allow for some further cleanups by
merging it into its only caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partition-generic.c
fs/block_dev.c
include/linux/fs.h
include/linux/genhd.h