Andrei Vagin <avagin@xxxxxxxxxxxxx> wrote: > > I can do this two ways: (1) stick a flag in the context that says if > > ->free() needs calling, (2) make all the ->free() routines aware that they > > may see the reset state. I think (1) is less error prone. > > Does it mean that fc->fs_type->init_fs_context() should not be called > contexts which are created from fspick()? No. I've put a flag in the context that is set when ->init_fs_context() is called and cleared when ->free() is called. ->free() isn't called in the put routine if the flag isn't set. David