summaryrefslogtreecommitdiffstats
path: root/fs/adfs/dir_fplus.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2013-03-27 10:15:37 -0400
committerJ. Bruce Fields <bfields@redhat.com>2013-04-03 11:47:22 -0400
commit0b9ea37f24e247ed69baabf27fb211aa6a3e7622 (patch)
tree95f9d8ad7f80cfcb82d175f02e1171537a883e4b /fs/adfs/dir_fplus.h
parent64a817cfbded8674f345d1117b117f942a351a69 (diff)
downloadlinux-0b9ea37f24e247ed69baabf27fb211aa6a3e7622.tar.bz2
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 <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/adfs/dir_fplus.h')
0 files changed, 0 insertions, 0 deletions