Patch: linux-2.3.31/fs/hpfs/file.c: grab_page_cache should be grab_cache_page (?)

Adam J. Richter (adam@yggdrasil.com)
Sun, 12 Dec 1999 07:45:16 -0800


Hello Mikulas,

I think I have an hpfs patch for you.

linux-2.3.31/fs/hpfs/file.c attempts to call grab_page_cache,
which is not defined anywhere in the kernel. However, there is a
routine named grab_cache_page that matches the parameters being
passed. I believe the call to grab_page_cache was supposed to
grab_cache_page, but I am not completely sure and I do not have
an hpfs partition on which I could test the resulting code, so I
leave it to you to email it directly to Linus if you think my patch
is correct.

Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."

------------------------------CUT HERE----------------------------------

Index: linux-2.3/fs/hpfs/file.c
===================================================================
RCS file: /usr/src.repository/repository/linux-2.3/fs/hpfs/file.c,v
retrieving revision 1.3
diff -u -r1.3 file.c
--- file.c 1999/11/28 17:50:48 1.3
+++ file.c 1999/12/12 14:31:55
@@ -96,7 +96,7 @@
pgpos = ((inode->i_blocks - 1) * 512) >> PAGE_CACHE_SHIFT;
while (pgpos < page->index) {
status = -ENOMEM;
- new_page = grab_page_cache(&inode->i_data, pgpos);
+ new_page = grab_cache_page(&inode->i_data, pgpos);
if (!new_page)
goto out;
status = block_write_cont_page(file, new_page, PAGE_SIZE, 0, NULL);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/