commit | 3a4174e68684e43ecdcb59126a441b29d5e94f7f | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Fri Nov 27 16:45:27 2020 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Dec 01 14:53:39 2020 -0700 |
tree | a6538a19c9bb3a47297434f2c17da51492ad3565 | |
parent | 612c6aa7817f1c89b6a92fc724331aa7c9d77f6e [diff] |
block: switch bdgrab to use igrab All of the current callers already have a reference, but to prepare for additional users ensure bdgrab returns NULL if the block device is being freed. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>