diff options
author | Daniel Rosenberg <drosen@google.com> | 2018-07-10 06:32:42 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-08-01 21:52:36 +0300 |
commit | 36b877af7992893b6d1ddbe96971cab5ab9e50eb (patch) | |
tree | b513221beae092b1c0a90a713312bcc52fcf1b93 /fs/f2fs/segment.h | |
parent | 20ee4382322cd9cf6ecfcf4f429ed108c617fb4a (diff) | |
download | linux-36b877af7992893b6d1ddbe96971cab5ab9e50eb.tar.xz |
f2fs: Keep alloc_valid_block_count in sync
If we attempt to request more blocks than we have room for, we try to
instead request as much as we can, however, alloc_valid_block_count
is not decremented to match the new value, allowing it to drift higher
until the next checkpoint. This always decrements it when the requested
amount cannot be fulfilled.
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.h')
0 files changed, 0 insertions, 0 deletions