patch-2.4.0-test12 linux/include/linux/mm.h
Next file: linux/include/linux/module.h
Previous file: linux/include/linux/kernelcapi.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Mon Dec 11 16:26:39 2000
- Orig file:
v2.4.0-test11/linux/include/linux/mm.h
- Orig date:
Sun Nov 19 18:44:22 2000
diff -u --recursive --new-file v2.4.0-test11/linux/include/linux/mm.h linux/include/linux/mm.h
@@ -204,7 +204,7 @@
*/
#define UnlockPage(page) do { \
smp_mb__before_clear_bit(); \
- clear_bit(PG_locked, &(page)->flags); \
+ if (!test_and_clear_bit(PG_locked, &(page)->flags)) BUG(); \
smp_mb__after_clear_bit(); \
if (waitqueue_active(&page->wait)) \
wake_up(&page->wait); \
@@ -454,11 +454,9 @@
extern void truncate_inode_pages(struct address_space *, loff_t);
/* generic vm_area_ops exported for stackable file systems */
-extern int filemap_swapout(struct page * page, struct file *file);
-extern int filemap_sync(struct vm_area_struct * vma, unsigned long address,
- size_t size, unsigned int flags);
-extern struct page *filemap_nopage(struct vm_area_struct * area,
- unsigned long address, int no_share);
+extern int filemap_swapout(struct page *, struct file *);
+extern int filemap_sync(struct vm_area_struct *, unsigned long, size_t, unsigned int);
+extern struct page *filemap_nopage(struct vm_area_struct *, unsigned long, int);
/*
* GFP bitmasks..
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)