search for: config_pages

Displaying 4 results from an estimated 4 matches for "config_pages".

2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...I_DIRTY_PAGES); +} + +static inline void update_stat(struct virtio_balloon *vb, int idx, + u64 val) +{ + BUG_ON(idx >= VIRTIO_BALLOON_S_NR); + vb->stats[idx].tag = idx; + vb->stats[idx].val = val; +} + +#define pages_to_bytes(x) ((u64)(x) << PAGE_SHIFT) + +static inline u32 config_pages(struct virtio_balloon *vb); +static void update_balloon_stats(struct virtio_balloon *vb) +{ + unsigned long events[NR_VM_EVENT_ITEMS]; + struct sysinfo i; + + all_vm_events(events); + si_meminfo(&i); + + update_stat(vb, VIRTIO_BALLOON_S_SWAP_IN, + pages_to_bytes(events[PSWPIN])); + update_...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...I_DIRTY_PAGES); +} + +static inline void update_stat(struct virtio_balloon *vb, int idx, + u64 val) +{ + BUG_ON(idx >= VIRTIO_BALLOON_S_NR); + vb->stats[idx].tag = idx; + vb->stats[idx].val = val; +} + +#define pages_to_bytes(x) ((u64)(x) << PAGE_SHIFT) + +static inline u32 config_pages(struct virtio_balloon *vb); +static void update_balloon_stats(struct virtio_balloon *vb) +{ + unsigned long events[NR_VM_EVENT_ITEMS]; + struct sysinfo i; + + all_vm_events(events); + si_meminfo(&i); + + update_stat(vb, VIRTIO_BALLOON_S_SWAP_IN, + pages_to_bytes(events[PSWPIN])); + update_...
2012 Jul 25
0
No subject
...t; + BUG_ON(idx >= VIRTIO_BALLOON_S_NR); > >> + vb->stats[idx].tag = idx; > >> + vb->stats[idx].val = val; > >> +} > >> + > >> +#define pages_to_bytes(x) ((u64)(x) << PAGE_SHIFT) > >> + > >> +static inline u32 config_pages(struct virtio_balloon *vb); > >> +static void update_balloon_stats(struct virtio_balloon *vb) > >> +{ > >> + unsigned long events[NR_VM_EVENT_ITEMS]; > >> + struct sysinfo i; > >> + > >> + all_vm_events(events); > >> + s...
2012 Jul 25
0
No subject
...t; + BUG_ON(idx >= VIRTIO_BALLOON_S_NR); > >> + vb->stats[idx].tag = idx; > >> + vb->stats[idx].val = val; > >> +} > >> + > >> +#define pages_to_bytes(x) ((u64)(x) << PAGE_SHIFT) > >> + > >> +static inline u32 config_pages(struct virtio_balloon *vb); > >> +static void update_balloon_stats(struct virtio_balloon *vb) > >> +{ > >> + unsigned long events[NR_VM_EVENT_ITEMS]; > >> + struct sysinfo i; > >> + > >> + all_vm_events(events); > >> + s...