Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1596343
| From | David Howells <dhowells@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 01/27] afs: Fix missing put_page() |
| Date | 2017-03-09 20:10 +0100 |
| Message-ID | <tjbs6-I0-7@gated-at.bofh.it> (permalink) |
| Organization | Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 |
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 | 1 +
1 file changed, 1 insertion(+)
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;
}
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 01/27] afs: Fix missing put_page() David Howells <dhowells@redhat.com> - 2017-03-09 20:10 +0100 [PATCH 02/27] afs: Fix page overput in afs_fill_page() David Howells <dhowells@redhat.com> - 2017-03-09 20:10 +0100
csiph-web