1.1 --- a/page_mapper.cc Mon Feb 01 00:10:21 2021 +0100
1.2 +++ b/page_mapper.cc Mon Feb 01 01:04:30 2021 +0100
1.3 @@ -54,7 +54,7 @@
1.4 same details, with the lock held until the queue or flush_all operations
1.5 release the lock. */
1.6
1.7 -Flexpage *PageMapper::get(offset_t offset)
1.8 +Flexpage *PageMapper::get(offset_t offset, unsigned long flags)
1.9 {
1.10 _lock.lock();
1.11
1.12 @@ -63,7 +63,10 @@
1.13 if (f == NULL)
1.14 f = flexpage(offset);
1.15
1.16 + /* Record a new user of the flexpage and upgrade the access flags. */
1.17 +
1.18 f->increment();
1.19 + f->upgrade(flags);
1.20 return f;
1.21 }
1.22