commit | 0d0158cf23c50d130c3ce3b7b024868a029ab60e | [log] [tgz] |
---|---|---|
author | Robin Hsu <robinhsu@google.com> | Fri Jun 19 17:52:12 2020 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Mon Jun 29 08:48:21 2020 -0700 |
tree | 3b0844ed417ec1ba99ecea602244d1930013c615 | |
parent | e66e4c1f3bd589a297c2a4e78bc67ac9d3a03032 [diff] |
fsck.f2fs: Fix slow fsck in auto-fix mode Split f2fs_init_nid_bitmap() into two disjoint parts: f2fs_early_init_nid_bitmap(), and f2fs_late_init_nid_bitmap(), where f2fs_late_init_nid_bitmap() won't be called in auto-fix mode, when no errors were found. f2fs_late_init_nid_bitmap() contains the loop to create NID bitmap from NAT. which is the main reason for slow fsck. Signed-off-by: Robin Hsu <robinhsu@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>