diff options
author | David Howells <dhowells@redhat.com> | 2017-03-16 19:27:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-20 12:04:55 +0300 |
commit | 1c277e9ebba6ee648b70e4dc4794e67c3d2d80cd (patch) | |
tree | ec0cf6fd8059b53fc74949a2f9ff73a66e0eddf7 | |
parent | fec8348008b5b7ab934b1553e34dfff37a03ade2 (diff) | |
download | linux-1c277e9ebba6ee648b70e4dc4794e67c3d2d80cd.tar.xz |
afs: Fix missing put_page()
[ Upstream commit 29c8bbbd6e21daa0997d1c3ee886b897ee7ad652 ]
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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 0714abcd7f32..777ea2bbf401 100644 --- a/fs/afs/write.c +++ b/fs/afs/write.c @@ -503,6 +503,7 @@ static int afs_writepages_region(struct address_space *mapping, if (PageWriteback(page) || !PageDirty(page)) { unlock_page(page); + put_page(page); continue; } |