diff options
Diffstat (limited to 'fs/gfs2/ops_vm.c')
-rw-r--r-- | fs/gfs2/ops_vm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/ops_vm.c b/fs/gfs2/ops_vm.c index 404b7cc9f8c4..d5a98cbfebdc 100644 --- a/fs/gfs2/ops_vm.c +++ b/fs/gfs2/ops_vm.c | |||
@@ -138,6 +138,8 @@ static struct page *gfs2_sharewrite_nopage(struct vm_area_struct *area, | |||
138 | if (alloc_required) { | 138 | if (alloc_required) { |
139 | error = alloc_page_backing(ip, result); | 139 | error = alloc_page_backing(ip, result); |
140 | if (error) { | 140 | if (error) { |
141 | if (area->vm_flags & VM_CAN_INVALIDATE) | ||
142 | unlock_page(result); | ||
141 | page_cache_release(result); | 143 | page_cache_release(result); |
142 | result = NULL; | 144 | result = NULL; |
143 | goto out; | 145 | goto out; |