[PATCH 18/21] staging: lustre: fid: remove seq_fid_alloc_fini() and simplify

2018-02-19 Thread NeilBrown
seq_fid_alloc_fini() is tiny and only called from two places in the one function. We can move both those calls earlier and merge them so only one call is needed. At that point, there is no value added by having a separate function. Also instead of using ++ and -- on ->lcs_update to toggle

[PATCH 18/21] staging: lustre: fid: remove seq_fid_alloc_fini() and simplify

2018-02-19 Thread NeilBrown
seq_fid_alloc_fini() is tiny and only called from two places in the one function. We can move both those calls earlier and merge them so only one call is needed. At that point, there is no value added by having a separate function. Also instead of using ++ and -- on ->lcs_update to toggle