diff options
author | David Howells <dhowells@redhat.com> | 2017-03-16 17:27:43 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-03-16 17:27:43 +0100 |
commit | 29c8bbbd6e21daa0997d1c3ee886b897ee7ad652 (patch) | |
tree | a9c31e12685dee469b3b9e9d1c90f4d6ab9baa76 /fs/afs/write.c | |
parent | Merge branch 'for-linus' of git://git.kernel.dk/linux-block (diff) | |
download | linux-29c8bbbd6e21daa0997d1c3ee886b897ee7ad652.tar.xz linux-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 '')
-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; } |