diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2017-12-08 23:11:39 +0300 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2018-01-17 16:35:50 +0300 |
commit | c3ce5aa9b02dd912e381237e7f98d591d7358cdc (patch) | |
tree | 97db1b1f8a04435798d5c369ed2271d8921c7943 /virt/Makefile | |
parent | e8b43fe0c1e035a135be7ca3791d465fcb1b501e (diff) | |
download | linux-c3ce5aa9b02dd912e381237e7f98d591d7358cdc.tar.xz |
gfs2: Fix metadata read-ahead during truncate
The metadata read-ahead algorithm broke when switching from recursive to
non-recursive delete: the current algorithm reads ahead blocks at height
N - 1 while deallocating the blocks at hight N. However, deallocating
the blocks at height N requires a complete walk of the metadata tree,
not only down to height N - 1. Consequently, all blocks below height
N - 1 will be accessed without read-ahead.
Fix this by issuing read-aheads as early as possible, after each
metapath lookup.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'virt/Makefile')
0 files changed, 0 insertions, 0 deletions