From fec0d3bfd2b14f0a7997c51c407f7483c6ed8dba Mon Sep 17 00:00:00 2001 From: Tim Gardner Date: Sun, 15 Mar 2009 13:38:17 -0600 Subject: UBUNTU: SAUCE: (no-up) swap: Add notify_swap_entry_free callback for compcache Code is required for ubuntu/compcache Signed-off-by: Ben Collins Signed-off-by: Tim Gardner --- include/linux/swap.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/linux/swap.h b/include/linux/swap.h index b1fd5c7925f..acf2ae80729 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -197,6 +197,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 { @@ -354,6 +355,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; -- cgit v1.2.3