Skip to content
Snippets Groups Projects
Commit 3abdb607 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4: simplify idr allocation


We don't really need to preallocate at all; just allocate and initialize
everything at once, but leave the sc_type field initially 0 to prevent
finding the stateid till it's fully initialized.

Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 2d32b29a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment