summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/http.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-12-16 08:48:37 +0000
committerkib <kib@FreeBSD.org>2015-12-16 08:48:37 +0000
commitb5160b028098d5dcb7369b864d338c7e3aeaddcd (patch)
tree081e7b2e1d1cee4bf8c3e0720803b5a936644d23 /lib/libfetch/http.c
parent764a2409cb5541ae3a247c163556269e90a152bb (diff)
downloadFreeBSD-src-b5160b028098d5dcb7369b864d338c7e3aeaddcd.zip
FreeBSD-src-b5160b028098d5dcb7369b864d338c7e3aeaddcd.tar.gz
Optimize vop_stdadvise(POSIX_FADV_DONTNEED). Instead of looking up a
buffer for each block number in the range with gbincore(), look up the next instantiated buffer with the logical block number which is greater or equal to the next lblkno. This significantly speeds up the iteration for sparce-populated range. Move the iteration into new helper bnoreuselist(), which is structured similarly to flushbuflist(). Reported and tested by: pho Reviewed by: markj Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'lib/libfetch/http.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud