> > Note that this will have to touch the FS anyway, since the O_CREAT thing
> > forces a call down to the FS to actually create the file.
>
> yep. the only case where it could provide some in-core "caching"
> positive effect is:
>
> unlink
> open(w/o creat)
>
> but I don't see it as a common case.
Guys, how about tracing the damn thing and checking what actually
happens? Or, at least, checking the prototypes and noticing that ->create()
takes (hashed) dentry as an argument, so if unlinked on had been freed we _must_
call ->lookup().
-
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/