]> git.baikalelectronics.ru Git - kernel.git/commit
md: factor out the rdev overlaps check from rdev_size_store
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Jul 2022 09:18:19 +0000 (11:18 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:43 +0000 (17:22 -0600)
commit2652a1bd2e749ace20339996015f3cf3fbfb8672
tree7d249dc38904d9a9a811cb6ba7e37f313eb5738f
parent33b614e33419b456bd870cacba1b56c897244f0b
md: factor out the rdev overlaps check from rdev_size_store

This splits the code into nicely readable chunks and also avoids
the refcount inc/dec manipulations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/md.c