linux-dev-lookup.c: Put the check for replay_redirect in the beginning
authorLukas Straub <lukasstraub2@web.de>
Wed, 19 Jan 2022 21:14:26 +0000 (21:14 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jan 2022 18:40:42 +0000 (11:40 -0700)
commitd9d60dbf49bfa62b5bd26f078533088f1de17b6f
tree1563f2baa1c0511cf928b0157a3bafbe4d5f331d
parent10f74940073380f6cb15608053b36a796f879dec
linux-dev-lookup.c: Put the check for replay_redirect in the beginning

The machine may not have any block device nodes (like my dev container)
which makes this function fail despite replay_redirect being set.

Move the check to the beginning to fix this.

Signed-off-by: Lukas Straub <lukasstraub2@web.de>
Link: https://lore.kernel.org/r/0dd4b6407f7b7f5f15f1fcad409554ff339ffca1.1642626314.git.lukasstraub2@web.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
oslib/linux-dev-lookup.c