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 b14ff817d162..a9c09e0ba709 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -1045,12 +1045,12 @@ repeat: | |||
1045 | swappage = lookup_swap_cache(swap); | 1045 | swappage = lookup_swap_cache(swap); |
1046 | if (!swappage) { | 1046 | if (!swappage) { |
1047 | shmem_swp_unmap(entry); | 1047 | shmem_swp_unmap(entry); |
1048 | spin_unlock(&info->lock); | ||
1049 | /* here we actually do the io */ | 1048 | /* here we actually do the io */ |
1050 | if (type && *type == VM_FAULT_MINOR) { | 1049 | if (type && *type == VM_FAULT_MINOR) { |
1051 | inc_page_state(pgmajfault); | 1050 | __count_vm_event(PGMAJFAULT); |
1052 | *type = VM_FAULT_MAJOR; | 1051 | *type = VM_FAULT_MAJOR; |
1053 | } | 1052 | } |
1053 | spin_unlock(&info->lock); | ||
1054 | swappage = shmem_swapin(info, swap, idx); | 1054 | swappage = shmem_swapin(info, swap, idx); |
1055 | if (!swappage) { | 1055 | if (!swappage) { |
1056 | spin_lock(&info->lock); | 1056 | spin_lock(&info->lock); |