commit | 50cb4373254433ad015dd50a061194c693b37c16 | [log] [tgz] |
---|---|---|
author | Baokun Li <libaokun1@huawei.com> | Mon Nov 15 09:31:44 2021 +0800 |
committer | Richard Weinberger <richard@nod.at> | Thu Dec 23 22:30:38 2021 +0100 |
tree | 8bf26d320eb8b207805b4ee414eb1786d875c016 | |
parent | 0d76502172d83e1e09aedbdced3d8be0ef1abcb5 [diff] |
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: Baokun Li <libaokun1@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>