summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMarc Dionne <marc.dionne@auristor.com>2019-04-13 08:37:37 +0100
committerDavid Howells <dhowells@redhat.com>2019-04-13 08:37:37 +0100
commit21bd68f196ca91fc0f3d9bd1b32f6e530e8c1c88 (patch)
tree0e01dfa194703f30014341624b93bb434cf0f0f1 /fs
parent8022c4b95c3793d7ba28ab0701ea15b5deb46e02 (diff)
afs: Unlock pages for __pagevec_release()
__pagevec_release() complains loudly if any page in the vector is still locked. The pages need to be locked for generic_error_remove_page(), but that function doesn't actually unlock them. Unlock the pages afterwards. Signed-off-by: Marc Dionne <marc.dionne@auristor.com> Signed-off-by: David Howells <dhowells@redhat.com> Tested-by: Jonathan Billings <jsbillin@umich.edu>
Diffstat (limited to 'fs')
-rw-r--r--fs/afs/write.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/afs/write.c b/fs/afs/write.c
index 72efcfcf9f95..0122d7445fba 100644
--- a/fs/afs/write.c
+++ b/fs/afs/write.c
@@ -264,6 +264,7 @@ static void afs_kill_pages(struct address_space *mapping,
first = page->index + 1;
lock_page(page);
generic_error_remove_page(mapping, page);
+ unlock_page(page);
}
__pagevec_release(&pv);