How to replace an old wake_up_page call?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am trying to port the e2compr (transparent file compression on ext2 - see 
http://www.alizt.com/) patch to the linux-2.4.20rc2. The original patch 
applies to 2.4.17, and uses
	wake_up(&page->wait);
in fs/ext2/inode.c

The problem is that there was a patch included in 2.4.19pre2  which removed  
page->wait, and replaced the above call with
	wake_up_page(page);
Then shortly aftewards (also 2.4.19pre*) wake_up_page was removed...

So I replaced the two    wake_up(&page->wait)  in inode.c  by the old 
definition of wake_up_page, which was:
	wake_up(page_waitqueue(page));
(and I also added EXPORT_SYMBOL(page_waitqueue)   in mm/filemap.c)
but still doesn't work, i get an error:

inode.c:61: multiple storage classes in declaration of `page_waitqueue'
inode.c:61: warning: `page_waitqueue' used but never defined

Ok, i am doing something stupid with the declarations (don't know what 
anyway), but i would also like to know which is the correct way to replace 
that call because i guess the data integrity could depend on it  ;-)

Thanks for your help, and please CC me as i am not subscribed presently.

Ariel
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux