brd: return 0/-error from brd_insert_page()
authorJens Axboe <axboe@kernel.dk>
Thu, 16 Feb 2023 14:57:32 +0000 (07:57 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 Feb 2023 17:02:31 +0000 (10:02 -0700)
commitdb0ccc44a20b4bb3039c0f6885a1f9c3323c7673
tree09bf85cd6d7d2cc1b46d021069a492f6613fd4c5
parent3ce6a115980c019928fcd06e01f64003886af79c
brd: return 0/-error from brd_insert_page()

It currently returns a page, but callers just check for NULL/page to
gauge success. Clean this up and return the appropriate error directly
instead.

Cc: stable@vger.kernel.org # 5.10+
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/brd.c