On Tuesday May 1, hch@xxxxxxxxxxxxx wrote: > On Fri, Mar 30, 2007 at 01:34:53PM +1000, Neil Brown wrote: > > On Saturday March 17, hch@xxxxxxxxxxxxx wrote: > > > > less that 2 weeks later.... > > more than one month later.... :) > Thanks for your explanations. > - the calling conversion on the decode side where we first call > ->decode_fh to split the filehandle into two blobs only to > recurse back into exportfs and then recurse back into the filesystem > seems rather odd. By having two methods to get the dentry and > parent directly from the on the wire file handle this big callstack > collapses to a very simple one. This is the bit I was particularly missing. I see now how this aspect was awkward before, and how your changes make the flow clearer. Getting rid of s_export_op->find_exported_dentry is something I'm very happy about. There was actually bug lurking there that I never got around to fixing. The code: - /* Ok, we can export it */; - if (!inode->i_sb->s_export_op->find_exported_dentry) - inode->i_sb->s_export_op->find_exported_dentry = - find_exported_dentry; assumes that the address of find_exported_dentry will never change. But if you unload nfsd.ko, then re-load it. it could be different, yet a filesystem could still have to old value in it's s_export_op. That would be bad. I'm glad it is gone. Thanks, NeilBrown - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html