[linux-mm-cc] Is swap notify in 2.6.34?
Nitin Gupta
ngupta at vflare.org
Mon May 31 00:09:26 EDT 2010
On 05/31/2010 09:02 AM, John McCabe-Dansted wrote:
> On Sat, May 22, 2010 at 3:01 PM, Nitin Gupta <ngupta at vflare.org> wrote:
>>>> First of all a big thank you work working on compcache!
>>>> Is sawp notify support already in 2.6.34
> ...
>> Its now in mainline. So, it will be part of 2.6.35 :)
>
> Weird I have updated to the latest kernel but I cannot find
> swap_slot_free_notify in swap.h.
>
> $ git pull
> Already up-to-date.
> $ grep url .git/config
> url = git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> $ grep notify include/linux/swap.h
> $
>
> Am I looking in the "wrong" mainline?
>
You are looking at the right tree but the wrong file.
Changes are in include/linux/blkdev.h, mm/swapfile.c
and ramzswap_drv.c. See these three commits:
(git show <commit_no>)
commit b27256439568950f30864ccecaeb6dfb588089d5
swap: Add flag to identify block swap devices
commit b3a27d0529c6e5206f1b60f60263e3ecfd0d77cb
swap: Add swap slot free callback to block_device_operations
commit 107c161b7ddeeb7da43509cc6b29211885ccd9af
Staging: ramzswap: Handler for swap slot free callback
Thanks,
Nitin
More information about the linux-mm-cc
mailing list