projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69eea5a
)
afs: Fix missing put_page()
author
David Howells
<dhowells@redhat.com>
Thu, 16 Mar 2017 16:27:43 +0000
(16:27 +0000)
committer
David Howells
<dhowells@redhat.com>
Thu, 16 Mar 2017 16:27:43 +0000
(16:27 +0000)
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>
fs/afs/write.c
patch
|
blob
|
history
diff --git
a/fs/afs/write.c
b/fs/afs/write.c
index c83c1a0e851fb34051c026bcea8e2a561299cf95..e919e64cd4e0dfb457b62aaa400a580cb211f613 100644
(file)
--- 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;
}