1.1 --- a/libfsserver/lib/mapping/page_mapper.cc Tue Mar 28 19:01:14 2023 +0200
1.2 +++ b/libfsserver/lib/mapping/page_mapper.cc Wed Mar 29 00:32:20 2023 +0200
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * A page mapper providing memory pages to satisfy file accesses.
1.6 *
1.7 - * Copyright (C) 2021, 2022 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2021, 2022, 2023 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -19,7 +19,6 @@
1.13 * Boston, MA 02110-1301, USA
1.14 */
1.15
1.16 -#include "ipc.h"
1.17 #include "page_mapper.h"
1.18
1.19
1.20 @@ -165,23 +164,10 @@
1.21 _accessor->flush(flexpage);
1.22
1.23 /* Unmap the flexpage, requiring users of its memory to request another
1.24 - flexpage in future. */
1.25 -
1.26 - ipc_unmap_flexpage(flexpage);
1.27 - flexpage->invalidate();
1.28 -
1.29 - /* Unmap all derived flexpages, since these rely on the underlying file
1.30 - contents. */
1.31 + flexpage in future. This also unmaps all derived flexpages, since
1.32 + these rely on the underlying file contents. */
1.33
1.34 - DerivedFlexpages::iterator it;
1.35 -
1.36 - for (it = flexpage->derived.begin(); it != flexpage->derived.end(); it++)
1.37 - {
1.38 - ipc_unmap_flexpage(*it);
1.39 - (*it)->invalidate();
1.40 - }
1.41 -
1.42 - flexpage->disassociate();
1.43 + flexpage->invalidate();
1.44 }
1.45 }
1.46