Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356598
b: refs/heads/master
c: 2a6e3eb
h: refs/heads/master
v: v3
  • Loading branch information
Cody P Schafer authored and Linus Torvalds committed Feb 24, 2013
1 parent 1242954 commit 334fc04
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 108bcc96ef7047c02cad4d229f04da38186a3f3f
refs/heads/master: 2a6e3ebee2edcade56f836390a5f0c7b76ff5f9e
10 changes: 10 additions & 0 deletions trunk/include/linux/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,16 @@ static inline bool zone_spans_pfn(const struct zone *zone, unsigned long pfn)
return zone->zone_start_pfn <= pfn && pfn < zone_end_pfn(zone);
}

static inline bool zone_is_initialized(struct zone *zone)
{
return !!zone->wait_table;
}

static inline bool zone_is_empty(struct zone *zone)
{
return zone->spanned_pages == 0;
}

/*
* The "priority" of VM scanning is how much of the queues we will scan in one
* go. A value of 12 for DEF_PRIORITY implies that we will scan 1/4096th of the
Expand Down

0 comments on commit 334fc04

Please sign in to comment.