Skip to content
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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment