From: David Howells Date: Thu, 16 Mar 2017 16:27:43 +0000 (+0000) Subject: afs: Fix missing put_page() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=29c8bbbd6e21daa0997d1c3ee886b897ee7ad652;p=openwrt%2Fstaging%2Fblogic.git afs: Fix missing put_page() In afs_writepages_region(), inside the loop where we find dirty pages to deal with, one of the if-statements is missing a put_page(). Signed-off-by: David Howells --- diff --git a/fs/afs/write.c b/fs/afs/write.c index c83c1a0e851f..e919e64cd4e0 100644 --- a/fs/afs/write.c +++ b/fs/afs/write.c @@ -513,6 +513,7 @@ static int afs_writepages_region(struct address_space *mapping, if (PageWriteback(page) || !PageDirty(page)) { unlock_page(page); + put_page(page); continue; }