RAMFS

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri Feb 02 2001 - 10:51:53 EST


Random quick poking

Does this fix the ramfs problem in -ac ?

--- fs/ramfs/inode.c~ Wed Jan 31 22:02:16 2001
+++ fs/ramfs/inode.c Fri Feb 2 14:51:47 2001
@@ -174,7 +174,6 @@
                 inode->i_blocks += IBLOCKS_PER_PAGE;
                 rsb->free_pages--;
                 SetPageDirty(page);
- UnlockPage(page);
         } else {
                 ClearPageUptodate(page);
                 ret = 0;
@@ -264,6 +263,7 @@
 
         if (! ramfs_alloc_page(inode, page))
                 return -ENOSPC;
+ UnlockPage(page);
         return 0;
 }
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 07 2001 - 21:00:15 EST