OSDN Git Service

bcache: transfer the sb_page reference to register_{bdev,cache}
authorChristoph Hellwig <hch@lst.de>
Thu, 23 Jan 2020 17:01:31 +0000 (01:01 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Jan 2020 18:40:01 +0000 (11:40 -0700)
commitfc8f19cc5dce183cde4fecb9a1da07d81fa6ea8d
tree6f3d034ebe8aa08d6f6dc1ca9811464f4b71561c
parentae3cd299919af6eb670d5af0bc9d7ba14086bd8e
bcache: transfer the sb_page reference to register_{bdev,cache}

Avoid an extra reference count roundtrip by transferring the sb_page
ownership to the lower level register helpers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c