2.3.26 romfs patch

Keith Owens (kaos@ocs.com.au)
Sun, 07 Nov 1999 18:41:22 +1100


romfs still refers to old page offset. Untested patch but "obviously
correct" (I hope).

Index: 26.1/fs/romfs/inode.c
--- 26.1/fs/romfs/inode.c Thu, 28 Oct 1999 09:57:17 +1000 keith (linux-2.3/J/b/5_inode.c 1.6 644)
+++ 26.1(w)/fs/romfs/inode.c Sun, 07 Nov 1999 18:29:29 +1100 keith (linux-2.3/J/b/5_inode.c 1.6 644)
@@ -404,7 +404,7 @@
get_page(page);
buf = page_address(page);

- offset = page->offset;
+ offset = page->index << PAGE_CACHE_SHIFT;
if (offset < inode->i_size) {
avail = inode->i_size-offset;
readlen = min(avail, PAGE_SIZE);

-
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/