Skip to content
Commit 2652a1bd authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarSong Liu <song@kernel.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 33b614e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment