Files
linux/fs/ubifs
Baokun Li 578bf41d94 ubifs: rename_whiteout: correct old_dir size computing
commit 7057572745 upstream.

When renaming the whiteout file, the old whiteout file is not deleted.
Therefore, we add the old dentry size to the old dir like XFS.
Otherwise, an error may be reported due to `fscki->calc_sz != fscki->size`
in check_indes.

Fixes: 9e0a1fff8d ("ubifs: Implement RENAME_WHITEOUT")
Reported-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-08 14:24:08 +02:00
..
2021-06-18 22:04:47 +02:00
2022-04-08 14:24:08 +02:00
2021-06-22 09:21:39 +02:00
2020-08-02 22:59:03 +02:00
2021-06-22 09:21:39 +02:00
2021-04-15 22:00:26 +02:00
2021-06-22 09:21:39 +02:00
2021-06-22 09:21:39 +02:00