Hi,
I had to modify 2 files to integrate ext3 patch with lvs patch..
(ext3-2.4-0.9.14-2414p8.gz and ipvs 0.8.2)
--- drivers/block/loop.c.orig Tue Nov 6 10:13:48 2001
+++ drivers/block/loop.c Tue Nov 6 10:17:55 2001
@@ -218,14 +218,16 @@ static int lo_send(struct loop_device *l
index++;
pos += size;
UnlockPage(page);
- deactivate_page(page);
+ /* deactivate_page(page);
+ */
page_cache_release(page);
}
return 0;
unlock:
UnlockPage(page);
- deactivate_page(page);
+ /*deactivate_page(page);
+ */
page_cache_release(page);
fail:
return -1;
and
--- fs/buffer.c.orig Tue Oct 30 11:15:43 2001
+++ fs/buffer.c Tue Oct 30 11:03:31 2001
@@ -2529,8 +2529,8 @@ busy_buffer_page:
return 0;
}
EXPORT_SYMBOL(try_to_free_buffers);
-EXPORT_SYMBOL(buffermem_pages);
-
+/* EXPORT_SYMBOL(buffermem_pages);
+*/
/* ================== Debugging =================== */
void show_buffers(void)
This make all compile and work basically..
Since I am not a real kernel hacker, I dont really know what is the
impact of modifications (especially for loop.c)..
Can a "Guru" tell me if all is ok ?
Regards.
Hervé
PS : I did not yet suscribe to the mailing list.. please answer directly
to me too :)
Hervé Guehl wrote:> > Hi, > I had to modify 2 files to integrate ext3 patch with lvs patch.. > (ext3-2.4-0.9.14-2414p8.gz and ipvs 0.8.2) > > --- drivers/block/loop.c.orig Tue Nov 6 10:13:48 2001 > +++ drivers/block/loop.c Tue Nov 6 10:17:55 2001 > @@ -218,14 +218,16 @@ static int lo_send(struct loop_device *l > index++; > pos += size; > UnlockPage(page); > - deactivate_page(page); > + /* deactivate_page(page); > + */ > page_cache_release(page); > } > return 0; > > unlock: > UnlockPage(page); > - deactivate_page(page); > + /*deactivate_page(page); > + */ > page_cache_release(page); > fail: > return -1; > > and > --- fs/buffer.c.orig Tue Oct 30 11:15:43 2001 > +++ fs/buffer.c Tue Oct 30 11:03:31 2001 > @@ -2529,8 +2529,8 @@ busy_buffer_page: > return 0; > } > EXPORT_SYMBOL(try_to_free_buffers); > -EXPORT_SYMBOL(buffermem_pages); > - > +/* EXPORT_SYMBOL(buffermem_pages); > +*/ > /* ================== Debugging =================== */ > > void show_buffers(void) > > This make all compile and work basically.. > Since I am not a real kernel hacker, I dont really know what is the > impact of modifications (especially for loop.c).. >The loop.c changes are fine. What went wrong with buffermem_pages? Does lvs export it as well?