Re: Linux 2.4.10-pre11

Alexander Viro (viro@math.psu.edu)
Thu, 20 Sep 2001 19:11:46 -0400 (EDT)


On Fri, 21 Sep 2001, Andrea Arcangeli wrote:

> 1) I am tentated to fix the initrd bug by just killing initrd blkdev,
> completly instead of going to mark PageSecure all the initrd pages.

Just put initrd_read(), initrd_release() and initrd_fops back and
switch file->f_op on rd_open() as it was in -pre10. Maybe you
want to replace blkdev_put(inode->i_bdev, BDEV_FILE) in initrd_release()
with blkdev_close(inode, file), but that will be the same pretty soon.

It's really the simplest way to deal with that and it has a benefit
of being both straightforward and well-tested.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/