summaryrefslogtreecommitdiffstats
path: root/fs/afs
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2017-03-16 16:27:43 +0000
committerDavid Howells <dhowells@redhat.com>2017-03-16 16:27:43 +0000
commit29c8bbbd6e21daa0997d1c3ee886b897ee7ad652 (patch)
treea9c31e12685dee469b3b9e9d1c90f4d6ab9baa76 /fs/afs
parent69eea5a4ab9c705496e912b55a9d312325de19e6 (diff)
downloadlinux-stable-29c8bbbd6e21daa0997d1c3ee886b897ee7ad652.tar.gz
linux-stable-29c8bbbd6e21daa0997d1c3ee886b897ee7ad652.tar.bz2
linux-stable-29c8bbbd6e21daa0997d1c3ee886b897ee7ad652.zip
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/afs')
-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;
}