xfs
[Top] [All Lists]

TAKE - clean up vmalloc'd memory handling

Subject: TAKE - clean up vmalloc'd memory handling
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Sat, 27 Jul 2002 17:17:14 -0500
Sender: owner-linux-xfs@xxxxxxxxxxx
v2 logs with logbsize > 64k were failing, because xfs vmalloc'd these,
and pagebuf subsequently used virt_to_page on them, which is only valid
for kmalloc'd memory.

New inline f'n mem_to_page() which does the right thing after testing
for vmalloc'd memory.

Also clean up kmem_free to make the vfree/kfree choice in the same
manner as above; a bit more direct than it was.

Date:  Sat Jul 27 15:16:05 PDT 2002
Workarea:  
stout.americas.sgi.com:/localhome/src/sandeen/2.4.x-xfs/workarea-alwaysclean

The following file(s) were checked into:
  bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs


Modid:  2.4.x-xfs:slinx:123793a
linux/fs/xfs/support/kmem.c - 1.15
        - Use more direct test for vfree vs. kfree in kmem_free

linux/fs/xfs/pagebuf/page_buf.c - 1.46
        - Add mem_to_page() so we can get pages from vmalloc'd memory as well
          change virt_to_page to use mem_to_page



<Prev in Thread] Current Thread [Next in Thread>
  • TAKE - clean up vmalloc'd memory handling, Eric Sandeen <=