Linus Torvalds wrote: > > On Sat, 6 Jan 2001, Adam J. Richter wrote: > > > > This sounds like a bug that I posted a fix for a long time ago. > > cramfs calls bforget on the superblock area, destroying that block of > > the ramdisk, even when the ramdisk does not contain a cramfs file system. > > Normally, bforget is called on block that really can be trashed, > > such as blocks release by truncate or unlink. > > I'd really prefer just not letting bforget() touch BH_Protected buffers. > bforget() is also used by other things than unlink/truncate: it's used by > various partition codes etc, and it's used by the raid logic. Yup, I backed out Adam's one-liner in favor of the attached one-liner. Tested on 2.4.0, but should patch cleanly to just about anything. ;-) BTW Linus - you were of course right on the cramfs wanting 4096 blocksize... but without this fix, that doesn't matter much. ;-) regards, David -- David L. Parsley Network Administrator Roanoke College