diff options
author | Shaoying Xu <shaoyi@amazon.com> | 2021-09-02 19:44:12 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-11-04 17:33:24 +0300 |
commit | 39fec6889d15a658c3a3ebb06fd69d3584ddffd3 (patch) | |
tree | c6b493f5ba395be77ad423f6fd850b9c6d089277 /fs/ext4/extents.c | |
parent | 3eda41df05d6ad5c825cbc7fef03d563597b1afa (diff) | |
download | linux-39fec6889d15a658c3a3ebb06fd69d3584ddffd3.tar.xz |
ext4: fix lazy initialization next schedule time computation in more granular unit
Ext4 file system has default lazy inode table initialization setup once
it is mounted. However, it has issue on computing the next schedule time
that makes the timeout same amount in jiffies but different real time in
secs if with various HZ values. Therefore, fix by measuring the current
time in a more granular unit nanoseconds and make the next schedule time
independent of the HZ value.
Fixes: bfff68738f1c ("ext4: add support for lazy inode table initialization")
Signed-off-by: Shaoying Xu <shaoyi@amazon.com>
Cc: stable@vger.kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Link: https://lore.kernel.org/r/20210902164412.9994-2-shaoyi@amazon.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
0 files changed, 0 insertions, 0 deletions