On Wed, 7 Feb 2001, Christoph Hellwig wrote: > On Tue, Feb 06, 2001 at 12:59:02PM -0800, Linus Torvalds wrote: > > > > Actually, they really aren't. > > > > They kind of _used_ to be, but more and more they've moved away from that > > historical use. Check in particular the page cache, and as a really > > extreme case the swap cache version of the page cache. > > Yes. And that exactly why I think it's ugly to have the left-over > caching stuff in the same data sctruture as the IO buffer. I do agree. I would not be opposed to factoring out the "pure block IO" part from the bh struct. It should not even be very hard. You'd do something like struct block_io { .. here is the stuff needed for block IO .. }; struct buffer_head { struct block_io io; .. here is the stuff needed for hashing etc .. } and then you make "generic_make_request()" and everything lower down take just the "struct block_io". You'd still leave "ll_rw_block()" and "submit_bh()" operating on bh's, because they knoa about bh semantics (ie things like scaling the sector number to the bh size etc). Which means that pretty much all the code outside the block layer wouldn't even _notice_. Which is a sign of good layering. If you want to do this, please do go ahead. But do realize that this is not exactly a 2.4.x thing ;) Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Jamie Lokier
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Christoph Hellwig
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Ingo Molnar
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Marcelo Tosatti
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Ingo Molnar
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Steve Lord
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Christoph Hellwig
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Christoph Hellwig
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Christoph Hellwig
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Neil Brown
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Ingo Molnar
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Ben LaHaise
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Ingo Molnar
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Roman Zippel
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... David S. Miller
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound ev... Ingo Molnar