From: Jeff Layton Date: Wed, 27 Mar 2013 14:15:37 +0000 (-0400) Subject: nfsd: eliminate one of the DRC cache searches X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~48^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b9ea37f24e247ed69baabf27fb211aa6a3e7622;p=pandora-kernel.git nfsd: eliminate one of the DRC cache searches The most common case is to do a search of the cache, followed by an insert. In the case where we have to allocate an entry off the slab, then we end up having to redo the search, which is wasteful. Better optimize the code for the common case by eliminating the initial search of the cache and always preallocating an entry. In the case of a cache hit, we'll end up just freeing that entry but that's preferable to an extra search. Signed-off-by: Jeff Layton Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed