ubi: Introduce in_pq()
authorRichard Weinberger <richard@nod.at>
Wed, 7 Nov 2018 22:16:18 +0000 (23:16 +0100)
committerRichard Weinberger <richard@nod.at>
Sun, 24 Feb 2019 10:13:44 +0000 (11:13 +0100)
commitb32b78f89221ee26ae60f9a59e71b5ec28ba5fe2
treee136f1e8176000f5265397b55fb329afe7a2a6ad
parenta3b22b9f11d9fbc48b0291ea92259a5a810e9438
ubi: Introduce in_pq()

This function works like in_wl_tree() but checks whether an ubi_wl_entry
is currently in the protection queue.
We need this function to query the current state of an ubi_wl_entry.

Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/wl.c