Browse Source

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>
David Howells 8 years ago
parent
commit
29c8bbbd6e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      fs/afs/write.c

+ 1 - 0
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;
 		}