Skip to content
Commit 50cb4373 authored by Baokun Li's avatar Baokun Li Committed by Richard Weinberger
Browse files

ubifs: read-only if LEB may always be taken in ubifs_garbage_collect



If ubifs_garbage_collect_leb() returns -EAGAIN and ubifs_return_leb
returns error, a LEB will always has a "taken" flag. In this case,
set the ubifs to read-only to prevent a worse situation.

Signed-off-by: default avatarBaokun Li <libaokun1@huawei.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 0d765021
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment