commit | ddf06b753a8573eb0323d91efeaffe397f7b673d | [log] [tgz] |
---|---|---|
author | Chao Yu <yuchao0@huawei.com> | Tue Jan 08 10:21:24 2019 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Tue Jan 22 15:31:25 2019 -0800 |
tree | 10fffee6d58a376cbb2c0f641746fdd0bae42e92 | |
parent | c20e57b32d817d35271c4b205cb6ab80d8d93aeb [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>