afs: Fix missing put_page()
authorDavid Howells <dhowells@redhat.com>
Thu, 16 Mar 2017 16:27:43 +0000 (16:27 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 16 Mar 2017 16:27:43 +0000 (16:27 +0000)
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 <dhowells@redhat.com>
fs/afs/write.c

index c83c1a0e851fb34051c026bcea8e2a561299cf95..e919e64cd4e0dfb457b62aaa400a580cb211f613 100644 (file)
@@ -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;
                }