diff options
| -rw-r--r-- | mm/shmem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index dfc7069102ee..ba4ad28b7db6 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
| @@ -916,11 +916,12 @@ static int shmem_unuse_inode(struct shmem_inode_info *info, swp_entry_t entry, s | |||
| 916 | if (size > ENTRIES_PER_PAGE) | 916 | if (size > ENTRIES_PER_PAGE) |
| 917 | size = ENTRIES_PER_PAGE; | 917 | size = ENTRIES_PER_PAGE; |
| 918 | offset = shmem_find_swp(entry, ptr, ptr+size); | 918 | offset = shmem_find_swp(entry, ptr, ptr+size); |
| 919 | shmem_swp_unmap(ptr); | ||
| 919 | if (offset >= 0) { | 920 | if (offset >= 0) { |
| 920 | shmem_dir_unmap(dir); | 921 | shmem_dir_unmap(dir); |
| 922 | ptr = shmem_swp_map(subdir); | ||
| 921 | goto found; | 923 | goto found; |
| 922 | } | 924 | } |
| 923 | shmem_swp_unmap(ptr); | ||
| 924 | } | 925 | } |
| 925 | } | 926 | } |
| 926 | lost1: | 927 | lost1: |
