commit | d4a81f80ff6c7c370e0b81c1b5887ae73cb90f88 | [log] [tgz] |
---|---|---|
author | Chao Yu <yuchao0@huawei.com> | Tue Jan 08 10:21:24 2019 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Mon Feb 04 10:24:14 2019 -0800 |
tree | 5978f9f7452ad6febc2e722360fadee87d48c6f6 | |
parent | 2da68d9f5ae3a87f8749ac1ede0cfc8133cace97 [diff] |
f2fs: fix to trigger fsck if dirent.name_len is zero While traversing dirents in f2fs_fill_dentries(), if bitmap is valid, filename length should not be zero, otherwise, directory structure consistency could be corrupted, in this case, let's print related info and set SBI_NEED_FSCK to trigger fsck for repairing. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>