Skip to contentSkip to conversation

2.4.1 find_page_nolock fixes

PATCH Rajagopal Ananthanarayanan 1 participant 1 message Feb 28, 2001

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 7 lines · Rik van Riel

3. add a __find_page_simple(), which is like __find_page_nolock() but only needs 2 arguments and doesn't touch the page ... this can be used by IO clustering and other things that really don't want to influence page aging, removing the 3rd argument also keeps things simple

We've used an exported version of __find_page_simple in XFS to good effect. Following is a patch against 2.4.2 which is an extension of Rik's patch to export find_get_page_simple(). Alan, if you want a patch against the ac series please let me know.

thanks,

ananth.

include/linux/pagemap.h renamed from ../linux-2.4.2/linux/include/linux/pagemap.h +2 -0
diff -Naur ../../linux-2.4.2/linux/include/linux/pagemap.h ./include/linux/pagemap.h
@@ -71,6 +71,8 @@
 				     unsigned long offset, struct page **hash);
 extern struct page * __find_lock_page (struct address_space * mapping,
 				unsigned long index, struct page **hash);
+extern struct page * find_get_page_simple (struct address_space * mapping,
+				unsigned long index);
 extern void lock_page(struct page *page);
 #define find_lock_page(mapping, index) \
 		__find_lock_page(mapping, index, page_hash(mapping, index))
kernel/ksyms.c renamed from ../linux-2.4.2/linux/kernel/ksyms.c +1 -0
diff -Naur ../../linux-2.4.2/linux/kernel/ksyms.c ./kernel/ksyms.c
@@ -241,6 +241,7 @@
 EXPORT_SYMBOL(poll_freewait);
 EXPORT_SYMBOL(ROOT_DEV);
 EXPORT_SYMBOL(__find_lock_page);
+EXPORT_SYMBOL(find_get_page_simple);
 EXPORT_SYMBOL(grab_cache_page);
 EXPORT_SYMBOL(read_cache_page);
 EXPORT_SYMBOL(vfs_readlink);
mm/filemap.c renamed from ../linux-2.4.2/linux/mm/filemap.c +52 -9

92 lines not on this page · raw message