summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2017-03-16 19:27:43 +0300
committerDavid Howells <dhowells@redhat.com>2017-03-16 19:27:43 +0300
commit29c8bbbd6e21daa0997d1c3ee886b897ee7ad652 (patch)
treea9c31e12685dee469b3b9e9d1c90f4d6ab9baa76 /fs
parent69eea5a4ab9c705496e912b55a9d312325de19e6 (diff)
downloadlinux-29c8bbbd6e21daa0997d1c3ee886b897ee7ad652.tar.xz
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 <dhowells@redhat.com>
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 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;
}