提交 29c8bbbd 编写于 作者: D David Howells

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: NDavid Howells <dhowells@redhat.com>
上级 69eea5a4
...@@ -513,6 +513,7 @@ static int afs_writepages_region(struct address_space *mapping, ...@@ -513,6 +513,7 @@ static int afs_writepages_region(struct address_space *mapping,
if (PageWriteback(page) || !PageDirty(page)) { if (PageWriteback(page) || !PageDirty(page)) {
unlock_page(page); unlock_page(page);
put_page(page);
continue; continue;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册