diff options
author | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-01-06 17:14:53 +0000 |
---|---|---|
committer | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-01-06 17:14:53 +0000 |
commit | 31142917aa357f0d7d6b82812a1dd48a84d992a7 (patch) | |
tree | 3e96ab43258fe3047f06d90c6828ee31d903b84b /package/compcache/patches/003-kernel-3.x-compat.patch | |
parent | 38cc3e47f517a509152186069c45d20f52e90835 (diff) |
compcache: remove package, use zram-swap instead
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35026 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/compcache/patches/003-kernel-3.x-compat.patch')
-rw-r--r-- | package/compcache/patches/003-kernel-3.x-compat.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/package/compcache/patches/003-kernel-3.x-compat.patch b/package/compcache/patches/003-kernel-3.x-compat.patch deleted file mode 100644 index 70996ebe71..0000000000 --- a/package/compcache/patches/003-kernel-3.x-compat.patch +++ /dev/null @@ -1,31 +0,0 @@ -Index: compcache-0.6.2/ramzswap_drv.c -=================================================================== ---- compcache-0.6.2.orig/ramzswap_drv.c 2012-07-25 01:02:39.000000000 +0200 -+++ compcache-0.6.2/ramzswap_drv.c 2012-07-25 01:04:29.270750850 +0200 -@@ -525,7 +525,7 @@ - - if (S_ISBLK(inode->i_mode)) { - bdev = I_BDEV(inode); -- ret = bd_claim(bdev, setup_backing_swap); -+ ret = blkdev_get(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL, setup_backing_swap); - if (ret < 0) { - bdev = NULL; - goto bad_param; -@@ -557,7 +557,7 @@ - - bad_param: - if (bdev) -- bd_release(bdev); -+ blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); - filp_close(swap_file, NULL); - - out: -@@ -1097,7 +1097,7 @@ - /* Close backing swap device, if present */ - if (rzs->backing_swap) { - if (is_backing_blkdev) -- bd_release(rzs->backing_swap); -+ blkdev_put(rzs->backing_swap, FMODE_READ | FMODE_WRITE | FMODE_EXCL); - filp_close(rzs->swap_file, NULL); - rzs->backing_swap = NULL; - memset(rzs->backing_swap_name, 0, MAX_SWAP_NAME_LEN); |