summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/fs
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/fs')
-rw-r--r--usr/src/uts/common/fs/swapfs/swap_vnops.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/src/uts/common/fs/swapfs/swap_vnops.c b/usr/src/uts/common/fs/swapfs/swap_vnops.c
index 348392da2c..02ae7f3212 100644
--- a/usr/src/uts/common/fs/swapfs/swap_vnops.c
+++ b/usr/src/uts/common/fs/swapfs/swap_vnops.c
@@ -593,6 +593,11 @@ swap_putapage(
size_t swap_klustsize;
/*
+ * Clear force flag so that p_lckcnt pages are not invalidated.
+ */
+ flags &= ~B_FORCE;
+
+ /*
* This check is added for callers who access swap_putpage with len = 0.
* swap_putpage calls swap_putapage page-by-page via pvn_vplist_dirty.
* And it's necessary to do the same queuing if users have the same