aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <[email protected]>2017-12-08 21:11:39 +0100
committerBob Peterson <[email protected]>2018-01-17 06:35:50 -0700
commitc3ce5aa9b02dd912e381237e7f98d591d7358cdc (patch)
tree97db1b1f8a04435798d5c369ed2271d8921c7943 /net/unix/sysctl_net_unix.c
parente8b43fe0c1e035a135be7ca3791d465fcb1b501e (diff)
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 <[email protected]> Signed-off-by: Bob Peterson <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions