]> git.lizzy.rs Git - plan9front.git/commit
upas/fs: fix infinite loop in putcache
authorAlex Musolino <alex@musolino.id.au>
Wed, 12 Dec 2018 02:18:53 +0000 (12:48 +1030)
committerAlex Musolino <alex@musolino.id.au>
Wed, 12 Dec 2018 02:18:53 +0000 (12:48 +1030)
commitb836802fe6c1327bc1947a560741f26aac6a7711
tree6f21228d06b9c2d4d5c758a615f65c779671d7ef
parentca851bbb5e93d6f208d967edd898e7042833889b
upas/fs: fix infinite loop in putcache

Force the cacheclear operation in the LRU cache trimming loop in order
to guarantee that the cache becomes smaller with each iteration.

Without the force flag cacheclear is a no-op for mailboxes that do not
provide a fetch function, e.g. POP3.
sys/src/cmd/upas/fs/cache.c