Skip to contentSkip to conversation

shmem fixes for 2.4.1-pre7

PATCH In review Christoph Rohland 1 participant 2 messages Jan 16, 2001

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 shmem fixes for 2.4.1-pre7

Hi Linus,

Here is a patch against 2.4.1-pre7 which

1) Adds prototype for shmem_lock to mm.h
2) Again brings the fixes for the accounting. I still think it should be applied.

Greetings
Christoph

include/linux/mm.h +1 -0
diff -uNr 1-pre7/include/linux/mm.h m1-pre7/include/linux/mm.h
@@ -386,6 +386,7 @@
 
 struct page * shmem_nopage(struct vm_area_struct * vma, unsigned long address, int no_share);
 struct file *shmem_file_setup(char * name, loff_t size);
+void shmem_lock(struct file * file, int lock);
 extern int shmem_zero_setup(struct vm_area_struct *);
 
 extern void zap_page_range(struct mm_struct *mm, unsigned long address, unsigned long size);
mm/shmem.c +38 -19

87 lines not on this page · raw message

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw
Quoted 5 lines · Christoph Rohland

Here is a patch against 2.4.1-pre7 which

1) Adds prototype for shmem_lock to mm.h
2) Again brings the fixes for the accounting. I still think it should be applied.

And of course the prototype should be extern...

Greetings
Christoph

include/linux/mm.h +1 -0
diff -uNr 1-pre7/include/linux/mm.h m1-pre7/include/linux/mm.h
@@ -386,6 +386,7 @@
 
 struct page * shmem_nopage(struct vm_area_struct * vma, unsigned long address, int no_share);
 struct file *shmem_file_setup(char * name, loff_t size);
+extern void shmem_lock(struct file * file, int lock);
 extern int shmem_zero_setup(struct vm_area_struct *);
 
 extern void zap_page_range(struct mm_struct *mm, unsigned long address, unsigned long size);
mm/shmem.c +38 -19

87 lines not on this page · raw message

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/