diff options
Diffstat (limited to 'mm/shmem.c')
-rw-r--r-- | mm/shmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 83c9fea1e0e3..db21c51531ca 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -1044,12 +1044,12 @@ repeat: | |||
1044 | swappage = lookup_swap_cache(swap); | 1044 | swappage = lookup_swap_cache(swap); |
1045 | if (!swappage) { | 1045 | if (!swappage) { |
1046 | shmem_swp_unmap(entry); | 1046 | shmem_swp_unmap(entry); |
1047 | spin_unlock(&info->lock); | ||
1048 | /* here we actually do the io */ | 1047 | /* here we actually do the io */ |
1049 | if (type && *type == VM_FAULT_MINOR) { | 1048 | if (type && *type == VM_FAULT_MINOR) { |
1050 | inc_page_state(pgmajfault); | 1049 | __count_vm_event(PGMAJFAULT); |
1051 | *type = VM_FAULT_MAJOR; | 1050 | *type = VM_FAULT_MAJOR; |
1052 | } | 1051 | } |
1052 | spin_unlock(&info->lock); | ||
1053 | swappage = shmem_swapin(info, swap, idx); | 1053 | swappage = shmem_swapin(info, swap, idx); |
1054 | if (!swappage) { | 1054 | if (!swappage) { |
1055 | spin_lock(&info->lock); | 1055 | spin_lock(&info->lock); |