projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b29c7b7
)
afs: Fix missing put_page()
author
David Howells
<dhowells@redhat.com>
Thu, 16 Mar 2017 16:27:43 +0000
(16:27 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:07:23 +0000
(10:07 +0100)
[ 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>
fs/afs/write.c
patch
|
blob
|
history
diff --git
a/fs/afs/write.c
b/fs/afs/write.c
index
f865c3f
..
26d809a
100644
(file)
--- a/
fs/afs/write.c
+++ b/
fs/afs/write.c
@@
-502,6
+502,7
@@
static int afs_writepages_region(struct address_space *mapping,
if (PageWriteback(page) || !PageDirty(page)) {
unlock_page(page);
+ put_page(page);
continue;
}