mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
afs: Unlock pages for __pagevec_release()
[ Upstream commit 21bd68f196
]
__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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
08f2c299b3
commit
58be7c109c
1 changed files with 1 additions and 0 deletions
|
@ -253,6 +253,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);
|
||||
|
|
Loading…
Reference in a new issue