Skip to content

Commit

Permalink
Update compcache to 0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ABAAKOUK Mehdi committed Jul 19, 2010
1 parent f77cfe2 commit b431a9f
Show file tree
Hide file tree
Showing 9 changed files with 919 additions and 151 deletions.
2 changes: 1 addition & 1 deletion compat.h
Expand Up @@ -2,7 +2,7 @@
#define _RAMZSWAP_COMPAT_H_

/* Uncomment this if you are using swap free notify patch */
//#define CONFIG_SWAP_FREE_NOTIFY
#define CONFIG_SWAP_FREE_NOTIFY

#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31))
#define blk_queue_physical_block_size(q, size) \
Expand Down
10 changes: 3 additions & 7 deletions patches/patch_swap_notify_core_support_2.6.33.diff
@@ -1,17 +1,13 @@
include/linux/blkdev.h | 2 ++
mm/swapfile.c | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 5c80189..af027de 100644
index 5c80189..2232051 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1301,6 +1301,8 @@ struct block_device_operations {
unsigned long long);
int (*revalidate_disk) (struct gendisk *);
int (*getgeo)(struct block_device *, struct hd_geometry *);
+ /* this callback is with swap_lock and sometimes page table lock held */
+ void (*swap_slot_free_notify) (struct block_device *, unsigned long);
+ /* this callback is with swap_lock and sometimes page table lock held */
+ void (*swap_slot_free_notify) (struct block_device *, unsigned long);
struct module *owner;
};

Expand Down

0 comments on commit b431a9f

Please sign in to comment.