Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1587630 > unrolled thread

[PATCH 01/14] afs: Fix missing put_page()

Started byDavid Howells <dhowells@redhat.com>
First post2017-02-24 14:20 +0100
Last post2017-02-24 14:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 01/14] afs: Fix missing put_page() David Howells <dhowells@redhat.com> - 2017-02-24 14:20 +0100

#1587630 — [PATCH 01/14] afs: Fix missing put_page()

FromDavid Howells <dhowells@redhat.com>
Date2017-02-24 14:20 +0100
Subject[PATCH 01/14] afs: Fix missing put_page()
Message-ID<tenWX-FB-51@gated-at.bofh.it>
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;
 		}
 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web