mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
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: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
2d32b29a1c
commit
3abdb60712
1 changed files with 52 additions and 29 deletions
Loading…
Add table
Add a link
Reference in a new issue