> > compression or encryption must sit below the pagecache to work nicely, > > and this hint things that usually sit at the pagecache level. But let's > > assume you have a valid use for different file_operations, why don't you > > simply add in different file_operations instead of adding another > > internal dispatch layer? > > I don't know, ask Hans. How could the VFS know it a filesystem wants to > do something specific with a file that is completely transparent to the > VFS?
The VFS shouldn't, that the whole point. That's why it allows the filesystem to register different method tables for each object.
