Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164449
b: refs/heads/master
c: ceddc3a
h: refs/heads/master
i:
  164447: 2f36e9a
v: v3
  • Loading branch information
Johannes Weiner authored and Linus Torvalds committed Sep 22, 2009
1 parent e8affc1 commit 27f9875
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: edcf4748cd56adcdf0856cc99ef108a4ea3ac7fe
refs/heads/master: ceddc3a52d783fabbf1ba623601419b9d6337194
5 changes: 5 additions & 0 deletions trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ static inline int page_mapping_inuse(struct page *page)

static inline int is_page_cache_freeable(struct page *page)
{
/*
* A freeable page cache page is referenced only by the caller
* that isolated the page, the page cache radix tree and
* optional buffer heads at page->private.
*/
return page_count(page) - page_has_private(page) == 2;
}

Expand Down

0 comments on commit 27f9875

Please sign in to comment.