diff options
author | David Howells <dhowells@redhat.com> | 2017-03-16 16:27:43 +0000 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-03-16 16:27:43 +0000 |
commit | 29c8bbbd6e21daa0997d1c3ee886b897ee7ad652 (patch) | |
tree | a9c31e12685dee469b3b9e9d1c90f4d6ab9baa76 /fs/afs/write.c | |
parent | 69eea5a4ab9c705496e912b55a9d312325de19e6 (diff) |
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/write.c')
-rw-r--r-- | fs/afs/write.c | 1 |
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; } |