From: Marc Dionne Date: Sat, 13 Apr 2019 07:37:37 +0000 (+0100) Subject: afs: Unlock pages for __pagevec_release() X-Git-Tag: v5.15~6591^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21bd68f196ca91fc0f3d9bd1b32f6e530e8c1c88;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: David Howells Tested-by: Jonathan Billings --- diff --git a/fs/afs/write.c b/fs/afs/write.c index 72efcfc..0122d74 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);