mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* RAMFS
@ 2001-02-02 15:51 Alan Cox
  2001-02-02 17:57 ` RAMFS Ingo Oeser
  0 siblings, 1 reply; 6+ messages in thread
From: Alan Cox @ 2001-02-02 15:51 UTC (permalink / raw)
  To: linux-kernel

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-02-03  7:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-02 15:51 RAMFS Alan Cox
2001-02-02 17:57 ` RAMFS Ingo Oeser
2001-02-02 19:24   ` RAMFS Mike Galbraith
2001-02-02 20:41     ` RAMFS Ingo Oeser
2001-02-02 21:03       ` RAMFS Mike Galbraith
2001-02-03  7:13         ` RAMFS Mike Galbraith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®