Skip to contentSkip to conversation

2.6 fixes in symlink.c

PATCH In review Rusty Lynch 2 participants 2 messages Feb 19, 2004 – Feb 23, 2004 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.6 fixes in symlink.c

The following patch ports symlink.c to 2.6 by converting to the newer wait_on_page_locked() and PageUpdate() functions.

    --rusty
symlink.c +7 -0
Index: src/symlink.c
===================================================================
@@ -154,8 +154,15 @@
 				NULL);
 	if (IS_ERR(page))
 		goto sync_fail;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+	wait_on_page_locked(page);
+	if (!PageUptodate(page))
+
+#else
 	wait_on_page(page);
 	if (!Page_Uptodate(page))
+
+#endif
 		goto async_fail;
 	*ppage = page;
 	return kmap(page);
#1 lore raw

Committed.

	--Mark
Quoted 15 lines · Rusty Lynch

The following patch ports symlink.c to 2.6 by converting to the newer wait_on_page_locked() and PageUpdate() functions.

    --rusty

Index: src/symlink.c
===================================================================

symlink.c +2 -0
@@ -154,8 +154,15 @@
 				NULL);
 	if (IS_ERR(page))
 		goto sync_fail;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+	wait_on_page_locked(page);

symlink.c line 168

Quoted 10 lines
symlink.c +5 -0
+	if (!PageUptodate(page))
+
+#else
 	wait_on_page(page);
 	if (!Page_Uptodate(page))
+
+#endif
 		goto async_fail;
 	*ppage = page;
 	return kmap(page);

--
Mark Fasheh
Software Developer, Oracle Corp
[email protected]