commit | 8009ce956c3d28022af6b122e50213ad830fc902 | [log] [tgz] |
---|---|---|
author | Richard Weinberger <richard@nod.at> | Wed May 15 21:52:34 2019 +0200 |
committer | Richard Weinberger <richard@nod.at> | Mon Jul 08 20:01:34 2019 +0200 |
tree | 0fde24e7c17f6b7eeefaf835613a776f3bfed4e5 | |
parent | ee1438ce5dc4d67dd8dd1ff51583122a61f5bd9e [diff] |
ubifs: Don't leak orphans on memory during commit If an orphan has child orphans (xattrs), and due to a commit the parent orpahn cannot get free()'ed immediately, put also all child orphans on the erase list. Otherwise UBIFS will free() them only upon unmount and we waste memory. Fixes: 988bec41318f ("ubifs: orphan: Handle xattrs like files") Signed-off-by: Richard Weinberger <richard@nod.at>