diff options
author | Tim Gardner <tim.gardner@canonical.com> | 2009-03-15 13:38:17 -0600 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2011-09-23 08:45:14 -0600 |
commit | 5d5af54875c578a9e3ef35b02d72a3f21e1f27bb (patch) | |
tree | c835b41a0a2b0b9bb6b2a037121433244d960b2f /include | |
parent | 8a19e3867bfe39db028ceb04e7431ad268689c8c (diff) |
UBUNTU: SAUCE: (no-up) swap: Add notify_swap_entry_free callback for compcache
Code is required for ubuntu/compcache
Signed-off-by: Ben Collins <ben.collins@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/swap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index a273468f828..8f2401cf4fa 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -194,6 +194,7 @@ struct swap_info_struct { struct block_device *bdev; /* swap device or bdev of swap file */ struct file *swap_file; /* seldom referenced */ unsigned int old_block_size; /* seldom referenced */ + void (*notify_swap_entry_free_fn) (unsigned long); }; struct swap_list_t { @@ -343,6 +344,7 @@ extern sector_t swapdev_block(int, pgoff_t); extern int reuse_swap_page(struct page *); extern int try_to_free_swap(struct page *); struct backing_dev_info; +extern void set_notify_swap_entry_free(unsigned, void (*) (unsigned long)); /* linux/mm/thrash.c */ extern struct mm_struct *swap_token_mm; |