Messages in this thread | | | Date | Wed, 10 Sep 2014 15:40:10 -0400 | From | Theodore Ts'o <> | Subject | Re: [PATCH] mm/sl[aou]b: make kfree() aware of error pointers |
| |
On Wed, Sep 10, 2014 at 06:53:56PM +0300, Dan Carpenter wrote: > On Wed, Sep 10, 2014 at 05:28:11PM +0200, Jiri Kosina wrote: > > > > Too late for this now, yes. > > We could still introduce a __kfree_fast_path() which doesn't have > checking.
Well, there certainly is precedence for that sort of thing. There is a bunch of code which uses __brelse(bh) instead of brelse(bh) when the caller is sure that bh is a valid non-NULL pointer.
- Ted
| |