aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/tmpfs/tmpfs_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/tmpfs/tmpfs_subr.c')
-rw-r--r--sys/fs/tmpfs/tmpfs_subr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c
index 9fe58cd4c137..32c929fefaa8 100644
--- a/sys/fs/tmpfs/tmpfs_subr.c
+++ b/sys/fs/tmpfs/tmpfs_subr.c
@@ -1418,7 +1418,6 @@ retry:
goto retry;
rv = vm_pager_get_pages(uobj, &m, 1, NULL,
NULL);
- vm_page_lock(m);
if (rv == VM_PAGER_OK) {
/*
* Since the page was not resident,
@@ -1428,12 +1427,12 @@ retry:
* current operation is not regarded
* as an access.
*/
+ vm_page_lock(m);
vm_page_launder(m);
vm_page_unlock(m);
vm_page_xunbusy(m);
} else {
vm_page_free(m);
- vm_page_unlock(m);
if (ignerr)
m = NULL;
else {